@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-latin-ext-400-normal.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  --forest: #214e41;
  --forest-dark: #183d33;
  --ink: #20352d;
  --muted: #58665e;
  --line: #dde3d9;
  --paper: #f7f8f4;
  --sage: #e9f2e3;
  --surface: #fff;
  --gold: #79501e;
  --heading: "Instrument Serif", Georgia, serif;
  --side-width: clamp(208px, 16vw, 252px);
  --gutter: clamp(22px, 2.7vw, 52px);
  --nav-height: 65px;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: var(--forest);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #28775d;
  outline-offset: 3px;
}
.sidebar :focus-visible,
.bottom-nav :focus-visible {
  outline-color: #e0ebaa;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
button,
input,
textarea,
select {
  border-radius: 0;
}
::selection {
  background: #d6e8a9;
  color: #1b392c;
}
.icon {
  flex: 0 0 auto;
  vertical-align: middle;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  z-index: 30;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.65rem 1rem;
  color: var(--forest);
  background: #fff;
  border-radius: 0.45rem;
}
.loading,
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  width: var(--side-width);
  display: flex;
  flex-direction: column;
  overflow: auto;
  isolation: isolate;
  scrollbar-width: thin;
  color: #f4f7ee;
  background: var(--forest);
  padding: 36px 18px 19px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.brand img {
  display: block;
  flex: 0 0 auto;
}
.sidebar .brand {
  margin: 0 0 49px 1px;
}
.brand b,
.brand small {
  display: block;
}
.brand b {
  font-family: var(--heading);
  font-size: 1.63rem;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}
.brand small {
  font-size: 0.745rem;
  letter-spacing: 0.035em;
  opacity: 0.82;
  line-height: 1.7;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  color: #e5eee5;
  font-size: 0.875rem;
  font-weight: 530;
  text-align: left;
}
.sidebar .nav-item:hover {
  background: #305f50;
}
.sidebar .nav-item.current {
  background: #dce9c8;
  color: #213e30;
  font-weight: 680;
}
.side-bottom {
  position: relative;
  margin-top: auto;
  padding-top: 18vh;
}
.side-bottom::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -65px;
  right: -19px;
  width: 117px;
  height: 130px;
  opacity: 0.4;
  overflow: hidden;
  background: repeating-radial-gradient(
    ellipse at 102% 110%,
    transparent 0 13px,
    #7a9b7e 14px,
    transparent 15px 23px
  );
  mask-image: linear-gradient(to top, transparent, black 30%, transparent);
}
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #47705e;
  margin-top: 11px;
  padding: 20px 8px 0;
}
.operator-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #e5edcc;
  background: #416957;
  font-family: var(--heading);
  font-size: 1.32rem;
}
.operator b,
.operator small {
  display: block;
}
.operator b {
  font-size: 0.83rem;
  font-weight: 630;
}
.operator small {
  color: #c1d3c2;
  font-size: 0.73rem;
}
.operator .icon-btn {
  margin-left: auto;
  color: #d9e7d9;
}
.operator .icon-btn:hover {
  background: #39634e;
}
.mobile-brand,
.bottom-nav {
  display: none;
}

.workspace {
  margin-left: var(--side-width);
  padding: 0 var(--gutter) 22px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workspace:has(.inbox-layout) {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.page-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 29px 0 25px;
  flex: none;
}
.page-head h1,
.login h1 {
  font: 400 clamp(2.4rem, 3.25vw, 3.6rem) / 1.03 var(--heading);
  letter-spacing: -0.035em;
}
.page-head p,
.login-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 0.88rem;
}
.mode-chip,
.mini-tag,
.badge,
.count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1.2;
  white-space: nowrap;
}
.mode-chip {
  gap: 7px;
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf2e7;
  border: 1px solid #d6e1cb;
  color: #3a5839;
}
.mode-chip:hover {
  background: #e2ecd6;
}
.body-content {
  min-height: 0;
  min-width: 0;
  flex: 1;
}
.inbox-layout {
  height: 100%;
  display: grid;
  grid-template-columns: clamp(266px, 26vw, 378px) minmax(0, 1fr);
}
.inbox-layout,
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 3px 10px #233d2810;
}
.inbox-layout {
  overflow: hidden;
}
.list-pane,
.detail-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.list-pane {
  border-right: 1px solid var(--line);
}
.list-tools {
  padding: 19px 19px 13px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.list-heading,
.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.list-heading h2,
.card-title h2,
.settings-card h2 {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  font-weight: 660;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 7px;
  background: #edf1e8;
  color: #435741;
}
.search-box,
input,
select,
textarea {
  border: 1px solid #cbd4c7;
  background: var(--surface);
}
.search-box {
  margin-top: 14px;
  background: #f8f9f5;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-radius: 8px;
}
.search-box input {
  width: 100%;
  min-width: 0;
  height: 37px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  outline: none;
  font-size: 0.84rem;
}
input::placeholder,
textarea::placeholder {
  color: #69766e;
  opacity: 1;
}
.search-box:focus-within,
.composer:focus-within {
  border-color: #588869;
  box-shadow: 0 0 0 2px #6a99792c;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.tabs button {
  padding: 5px 11px;
  min-height: 30px;
  font-size: 0.76rem;
  line-height: 1.15;
  color: var(--muted);
  font-weight: 570;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
}
.tabs button:hover {
  background: #f3f5ef;
}
.tabs .on {
  border-color: #d4dfcc;
  background: #ebf1e4;
  color: #365439;
  font-weight: 680;
}
.conversation-list,
.message-stream {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c8d4c5 transparent;
}
.conversation-list {
  flex: 1;
}
.conversation-row {
  width: 100%;
  display: flex;
  text-align: left;
  align-items: flex-start;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid #e9ede6;
  position: relative;
  padding: 15px 18px;
  background: #fff;
}
.conversation-row:hover {
  background: #f6f8f2;
}
.conversation-row.selected {
  background: #edf3e7;
}
.conversation-row.selected::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #577b50;
}
.conversation-row:focus-visible {
  outline-offset: -4px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.85rem;
  letter-spacing: -0.035em;
  font-weight: 690;
  color: var(--avatar-fg);
  background: var(--avatar-bg);
}
.avatar.large {
  width: 42px;
  height: 42px;
  font-size: 0.94rem;
}
.sage {
  --avatar-bg: #d8e7cf;
  --avatar-fg: #365740;
}
.lilac {
  --avatar-bg: #e6dff0;
  --avatar-fg: #5c4878;
}
.clay {
  --avatar-bg: #efe1cd;
  --avatar-fg: #715137;
}
.ochre {
  --avatar-bg: #eddeaf;
  --avatar-fg: #685025;
}
.blue {
  --avatar-bg: #dce9ed;
  --avatar-fg: #385563;
}
.rose {
  --avatar-bg: #f0dfe0;
  --avatar-fg: #744d55;
}
.stone {
  --avatar-bg: #e6e6db;
  --avatar-fg: #545d4d;
}
.row-body {
  display: block;
  flex: 1;
  min-width: 0;
}
.row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.row-title b,
.snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-title b {
  font-size: 0.91rem;
  line-height: 1.4;
  font-weight: 670;
}
.row-title time {
  font-size: 0.72rem;
  color: var(--muted);
  flex: none;
  font-variant-numeric: tabular-nums;
}
.snippet {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.795rem;
}
.row-state {
  display: flex;
  margin-top: 6px;
}
.badge {
  font-size: 0.67rem;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 20px;
}
.badge.assistant,
.btn.positive {
  color: #375d3f;
  background: #e6efdc;
}
.badge.waiting,
.btn.warning {
  color: #77511d;
  background: #fbebc7;
}
.badge.human {
  color: #3c5869;
  background: #e5edf2;
}

.chat-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 11px;
  padding: 16px clamp(15px, 2vw, 30px);
  min-height: 77px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.chat-head > [data-action="back"] {
  display: none;
}
.chat-id {
  flex: 1;
  min-width: 0;
}
.chat-id h2 {
  font-size: 1.04rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}
.chat-head .badge {
  vertical-align: middle;
}
.message-stream {
  flex: 1;
  padding: 18px clamp(14px, 2vw, 32px) 22px;
  background-color: #f4f6ef;
  background-image: radial-gradient(#abbd9c60 0.65px, transparent 0.85px);
  background-size: 15px 15px;
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #e6d7ac;
  border-radius: 9px;
  background: #fff7df;
  color: #725124;
}
.callout > .icon {
  margin-top: 2px;
}
.callout b {
  display: block;
  font-size: 0.795rem;
}
.callout p {
  margin: 2px 0 0;
  font-size: 0.77rem;
}
.date-sep {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.69rem;
  margin: 14px 0;
}
.date-sep::before,
.date-sep::after {
  content: "";
  width: 36px;
  height: 1px;
  background: #d4dccc;
}
.date-sep span {
  border-radius: 999px;
  padding: 2px 6px;
  background: #edf1e7;
}
.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0;
}
.message.assistant,
.message.operator {
  align-items: flex-end;
}
.bubble {
  max-width: min(84%, 43rem);
  min-width: 7.5rem;
  border: 1px solid #dee5d8;
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  padding: 9px 13px 6px;
  box-shadow: 0 1px 2px #243a2910;
}
.assistant .bubble,
.operator .bubble {
  border-radius: 12px 12px 4px 12px;
  border-color: #cfdec3;
  background: #e6efdc;
}
.operator .bubble {
  background: #e4efe9;
  border-color: #c9ded1;
}
.bubble-who {
  color: #4f6556;
  font-weight: 660;
  font-size: 0.665rem;
  margin-bottom: 3px;
}
.bubble-text,
.draft-text,
.reply-rule p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble-text {
  font-size: 0.88rem;
  line-height: 1.48;
}
.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  font-size: 0.64rem;
  color: #56685a;
}
.composer-wrap {
  flex: none;
  padding: 13px clamp(13px, 1.6vw, 24px) 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.draft-link {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  border: 1px solid #e0dbc9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: #685639;
  background: #f8f5ed;
  text-align: left;
  margin-bottom: 9px;
}
.draft-link:hover {
  background: #f2eddf;
}
.draft-link b {
  font-weight: 660;
}
.draft-link span {
  font-size: 0.69rem;
  color: #74654c;
}
.draft-link .icon:last-child {
  margin-left: auto;
}
.composer {
  border: 1px solid #cbd5c6;
  border-radius: 10px;
  padding: 9px 10px 8px;
}
.composer textarea {
  display: block;
  width: 100%;
  max-height: 16vh;
  min-height: 32px;
  resize: vertical;
  border: 0;
  padding: 2px;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  line-height: 1.4;
}
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.67rem;
  line-height: 1.3;
  color: var(--muted);
}
.btn,
.text-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.25;
  font-weight: 620;
}
.btn {
  min-height: 39px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  border: 1px solid #cbd7c6;
  color: var(--forest);
  background: #fff;
}
.btn:hover:not(:disabled),
.icon-btn:hover {
  background: #f0f4ea;
}
.btn.primary {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.btn.primary:hover:not(:disabled) {
  background: var(--forest-dark);
}
.btn.compact,
.btn.tiny {
  font-size: 0.755rem;
  min-height: 32px;
  padding: 6px 9px;
}
.btn.tiny {
  margin-top: 4px;
}
.btn.subtle {
  color: #53654f;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 0.81rem;
  text-decoration: none;
  padding: 5px 0;
}
.text-btn:hover {
  text-decoration: underline;
}
.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  flex: none;
}
.empty {
  display: flex;
  min-height: 180px;
  flex: 1;
  padding: 25px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.empty-icon,
.venue-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  color: #466549;
}
.empty-icon {
  width: 47px;
  height: 47px;
  background: #edf3e6;
  border-radius: 50%;
  margin-bottom: 13px;
}
.empty h3 {
  font-size: 1rem;
  font-weight: 620;
}
.empty p,
.form-error {
  font-size: 0.8rem;
  margin-top: 6px;
}
.empty p {
  color: var(--muted);
  max-width: 310px;
}
.form-error {
  color: #923d2c;
}
.form-error:empty {
  display: none;
}
.form-error.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-layout,
.program-grid,
.program-lower,
.settings-grid {
  display: grid;
  align-items: start;
  gap: 18px;
  min-width: 0;
}
.review-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
}
.program-grid,
.program-lower,
.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.program-lower {
  margin-top: 18px;
}
.card {
  min-width: 0;
  padding: clamp(17px, 2vw, 29px);
}
.card-title {
  margin-bottom: 16px;
}
.card-title .btn {
  margin-left: auto;
}
.card-note,
.settings-card p {
  color: var(--muted);
  font-size: 0.875rem;
}
.mini-tag {
  color: #6e5b35;
  background: #f2ecdc;
  padding: 4px 8px;
  border-radius: 6px;
}
.draft-card {
  border-top: 1px solid var(--line);
  padding: 17px 0 18px;
}
.draft-card:last-child {
  padding-bottom: 0;
}
.draft-meta,
.review-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.draft-meta {
  font-size: 0.72rem;
  color: var(--muted);
}
.draft-card h3 {
  font-size: 0.98rem;
  margin: 12px 0 5px;
}
.question {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}
.draft-text {
  margin: 12px 0;
  background: #f0f5eb;
  border-left: 3px solid #99b18b;
  border-radius: 3px 8px 8px 3px;
  padding: 10px 13px;
  font-size: 0.87rem;
}
.review-actions .text-btn {
  margin-left: auto;
}
.metric,
.baseline,
.exception-row,
.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.metric span,
.baseline span,
.setting-line span,
.exception-row p {
  color: var(--muted);
  font-size: 0.8rem;
}
.metric b,
.hours {
  font: 400 2.25rem/1 var(--heading);
  color: var(--forest);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.baseline {
  align-items: flex-start;
  font-size: 0.78rem;
}
.venue {
  position: relative;
  padding-top: 25px;
}
.venue-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf1e3;
  margin-bottom: 15px;
}
.venue h2 {
  font: 400 clamp(1.65rem, 2.35vw, 2.3rem) / 1.08 var(--heading);
  letter-spacing: -0.02em;
}
.venue-days {
  margin: 16px 0 4px;
  color: var(--muted);
  font-weight: 580;
  font-size: 0.85rem;
}
.hours {
  display: block;
  font-size: 1.8rem;
}
.venue-address {
  margin: 19px 0 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.81rem;
}
.exception-row {
  font-size: 0.85rem;
}
.reply-rule {
  border-top: 1px solid var(--line);
}
.reply-rule summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  font-size: 0.84rem;
  font-weight: 580;
  list-style: none;
  cursor: pointer;
}
.reply-rule summary::-webkit-details-marker {
  display: none;
}
.reply-rule[open] summary .icon {
  transform: rotate(180deg);
}
.reply-rule p {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.83rem;
}
.settings-card h2 {
  margin-bottom: 12px;
}
.settings-card > .btn,
.settings-card > .text-btn {
  margin: 13px 8px 0 0;
}
.setting-line {
  margin-top: 14px;
  padding: 12px 0;
  font-size: 0.84rem;
}
.settings-card .fine {
  font-size: 0.755rem;
  margin-top: 14px;
}
.push-steps {
  padding-inline-start: 1.5rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.push-steps li + li {
  margin-top: 0.5rem;
}
.demo-card {
  grid-column: 1/-1;
}
.demo-card .card-title h2 {
  margin: 0;
}
#simulate-form {
  display: flex;
  flex-wrap: wrap;
  margin: 14px 0;
  align-items: flex-end;
  gap: 12px;
}
form label:not(.search-box):not(.sr-only),
.checkbox {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
}
form input:not([type="checkbox"]),
form select {
  border-radius: 7px;
  padding: 9px 11px;
  min-height: 40px;
  max-width: 100%;
  min-width: 0;
}
#simulate-form label {
  min-width: 0;
  flex: 1 1 10rem;
}
.checkbox {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.checkbox input {
  accent-color: var(--forest);
  width: 16px;
  height: 16px;
}

.login {
  padding: 24px;
  background:
    radial-gradient(ellipse at 5% 5%, #e4ecd9, transparent 52%), var(--paper);
}
.login-card {
  width: min(100%, 400px);
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 60px #29472c10;
}
.login-card .brand {
  color: var(--forest);
}
.login-heading {
  margin: 32px 0 20px;
}
.login h1 {
  font-size: 2.45rem;
}
#login-form {
  display: grid;
  gap: 14px;
}
dialog {
  width: min(32rem, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #d3dccd;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 80px #142c2538;
  overflow: auto;
}
dialog::backdrop {
  background: #172d248c;
}
dialog h2 {
  font: 400 2rem/1.1 var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
dialog p {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
dialog form,
#open-fields {
  display: grid;
  gap: 13px;
}
.time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.toast {
  position: fixed;
  z-index: 15;
  left: calc(50% + var(--side-width) / 2);
  bottom: 24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(32rem, 90vw);
  border-radius: 9px;
  padding: 10px 15px;
  color: #fff;
  background: #223e31;
  box-shadow: 0 5px 18px #1734232b;
  font-size: 0.86rem;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.toast:empty,
.toast:not(.visible):not(.show) {
  display: none;
}

@media (min-width: 1750px) {
  .workspace {
    max-width: 1630px;
    margin-right: auto;
  }
}
@media (min-width: 821px) and (max-width: 1050px) {
  :root {
    --side-width: 184px;
    --gutter: 17px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand b {
    font-size: 1.45rem;
  }
  .sidebar .brand img {
    width: 38px;
    height: 38px;
  }
  .sidebar .brand {
    gap: 5px;
  }
  .inbox-layout {
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  }
  .conversation-row,
  .list-tools {
    padding-left: 13px;
    padding-right: 13px;
  }
  .hint {
    max-width: 95px;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(205px, 1fr);
  }
}
@media (max-width: 820px) {
  :root {
    --side-width: 0px;
    --gutter: clamp(16px, 4vw, 26px);
  }
  .shell {
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
    padding: 0 var(--gutter) 16px;
    min-height: calc(100dvh - var(--nav-height) - env(safe-area-inset-bottom));
  }
  .workspace:has(.inbox-layout) {
    height: calc(100dvh - var(--nav-height) - env(safe-area-inset-bottom));
    min-height: 0;
  }
  .mobile-brand {
    flex: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: calc(7px + env(safe-area-inset-top))
      max(var(--gutter), env(safe-area-inset-right)) 7px
      max(var(--gutter), env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--forest);
    background: #fff;
  }
  .mobile-brand .brand img {
    width: 35px;
    height: 35px;
  }
  .mobile-brand .brand b {
    font-size: 1.29rem;
  }
  .mobile-brand .brand small {
    font-size: 0.65rem;
    line-height: 1.3;
  }
  .mobile-brand .icon-btn {
    min-height: 42px;
    min-width: 42px;
  }
  .page-head {
    gap: 10px;
    padding: 18px 0 16px;
  }
  .page-head h1 {
    font-size: 2.35rem;
  }
  .page-head p {
    margin-top: 5px;
    font-size: 0.8rem;
  }
  .mode-chip {
    font-size: 0.69rem;
    min-height: 39px;
    gap: 5px;
    padding: 6px 9px;
  }
  .inbox-layout {
    display: flex;
  }
  .list-pane {
    flex: 1;
    border: 0;
  }
  .detail-pane {
    display: none;
  }
  .list-tools {
    padding: 13px 15px 9px;
  }
  .list-heading h2 {
    font-size: 1rem;
  }
  .search-box {
    margin-top: 9px;
  }
  .tabs {
    margin-top: 6px;
  }
  .tabs button {
    min-height: 39px;
  }
  .conversation-row {
    padding: 13px 16px;
  }
  .detail-open .workspace {
    padding: max(env(safe-area-inset-top), 0px) env(safe-area-inset-right) 0
      env(safe-area-inset-left);
  }
  .detail-open .workspace .mobile-brand,
  .detail-open .workspace .page-head,
  .detail-open .list-pane {
    display: none;
  }
  .detail-open .inbox-layout {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .detail-open .detail-pane {
    display: flex;
    flex: 1;
  }
  .chat-head {
    padding: 8px 13px 8px 7px;
    min-height: 62px;
    gap: 8px;
  }
  .chat-head > [data-action="back"] {
    display: inline-flex;
    width: 40px;
    height: 44px;
    color: var(--forest);
  }
  .chat-head .btn {
    min-height: 40px;
  }
  .avatar.large {
    width: 35px;
    height: 35px;
    font-size: 0.82rem;
  }
  .chat-id h2 {
    font-size: 0.94rem;
  }
  .message-stream {
    padding: 12px 13px;
  }
  .composer-wrap {
    padding: 9px 11px;
  }
  .composer textarea {
    resize: none;
  }
  .draft-link {
    min-height: 40px;
    margin-bottom: 7px;
  }
  .btn,
  .text-btn,
  .reply-rule summary {
    min-height: 44px;
  }
  .bottom-nav {
    z-index: 5;
    position: fixed;
    inset: auto 0 0;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    border-top: 1px solid #d2dcca;
    background: var(--forest);
    padding: 6px max(7px, env(safe-area-inset-right))
      calc(5px + env(safe-area-inset-bottom))
      max(7px, env(safe-area-inset-left));
  }
  .bottom-nav .nav-item {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border-radius: 8px;
    padding: 2px 3px;
    text-align: center;
    font-size: 0.65rem;
    color: #deeadc;
  }
  .bottom-nav .nav-item.current {
    color: #f2f8dc;
    background: #365f4e;
  }
  .bottom-nav .nav-item.current .icon {
    stroke-width: 2;
  }
  .toast {
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 9px);
  }
  input,
  textarea,
  select,
  .composer textarea,
  .search-box input {
    font-size: 16px;
  }
}
@media (max-width: 620px) {
  .review-layout,
  .settings-grid,
  .program-lower {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .program-grid {
    gap: 10px;
  }
  .venue {
    padding: 14px;
  }
  .venue h2 {
    font-size: 1.55rem;
  }
  .venue .hours {
    white-space: normal;
    font-size: 1.45rem;
  }
  .venue-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  .venue-days {
    margin-top: 12px;
    font-size: 0.765rem;
  }
  .venue-address {
    margin-top: 13px;
    font-size: 0.75rem;
  }
  .program-lower {
    margin-top: 13px;
  }
  .review-actions .text-btn {
    margin-left: 0;
  }
  .card {
    border-radius: 12px;
  }
  #simulate-form label {
    flex-basis: 100%;
  }
  .composer-actions .btn {
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 11px;
  }
  .page-head h1 {
    font-size: 2rem;
  }
  .page-head p {
    font-size: 0.74rem;
  }
  .mode-chip {
    padding: 5px 7px;
  }
  .program-grid {
    grid-template-columns: 1fr;
  }
  .hint {
    max-width: 105px;
  }
  .chat-head .btn {
    font-size: 0.7rem;
  }
}
@media (max-height: 580px) {
  .sidebar {
    padding-top: 15px;
  }
  .sidebar .brand {
    margin-bottom: 20px;
  }
  .side-bottom {
    padding-top: 12px;
  }
  .page-head {
    padding-top: 10px;
    padding-bottom: 12px;
  }
  .composer {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .composer textarea {
    height: 32px;
  }
  .message-stream {
    padding-top: 6px;
  }
}
@media (max-width: 820px) and (max-height: 540px) {
  .detail-open:has(.composer:focus-within) {
    padding-bottom: 0;
  }
  .detail-open:has(.composer:focus-within) .bottom-nav {
    display: none;
  }
  .detail-open:has(.composer:focus-within) .workspace {
    height: 100dvh;
  }
  .detail-open:has(.composer:focus-within) .draft-link {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav-item,
  .conversation-row,
  .mode-chip,
  .tabs button {
    transition: background-color 0.13s ease;
  }
}
