:root {
  --page: #f3f5f8;
  --screen: #fbfcfe;
  --panel: #ffffff;
  --soft: #f7f9fc;
  --ink: #182033;
  --muted: #667085;
  --quiet: #8a94a6;
  --line: #dfe5ee;
  --blue: #235cff;
  --blue-soft: #eef3ff;
  --orange: #e66a1a;
  --orange-soft: #fff1e8;
  --green: #16845b;
  --green-soft: #eaf7f1;
  --amber: #a15c00;
  --amber-soft: #fff7e6;
  --shadow: 0 26px 70px rgba(15, 23, 42, .18);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone {
  width: min(390px, 100%);
  height: min(812px, calc(100vh - 48px));
  min-height: 720px;
  background: var(--screen);
  border: 12px solid #101522;
  border-radius: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: 34px 1fr 76px;
  position: relative;
}

.statusbar {
  padding: 10px 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 760;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: 0;
  color: #101522;
}

.brand-h {
  font-weight: 900;
}

.brand-i {
  color: #101522;
  font-weight: 520;
}

.brand-ai {
  color: #d64545;
  font-weight: 620;
}

.view {
  display: none;
  min-height: 0;
  overflow: hidden;
}

.app-booting .view,
.app-booting .bottom-nav {
  visibility: hidden;
}

.view.active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.phone.page-transitioning .view.active {
  position: absolute;
  top: 34px;
  right: 0;
  bottom: 76px;
  left: 0;
  z-index: 2;
  background: var(--screen);
  will-change: transform, opacity;
}

.phone.page-dragging .view.active {
  position: absolute;
  top: 34px;
  right: 0;
  bottom: 76px;
  left: 0;
  z-index: 2;
  background: var(--screen);
  will-change: transform, opacity;
  transition: none;
}

.phone.page-dragging .swipe-drag-current {
  z-index: 3;
}

.phone.page-dragging .swipe-drag-next {
  z-index: 2;
}

.view.slide-in-right {
  animation: pageInRight 260ms cubic-bezier(.22, .75, .2, 1) both;
}

.view.slide-in-left {
  animation: pageInLeft 260ms cubic-bezier(.22, .75, .2, 1) both;
}

.view.slide-out-left {
  animation: pageOutLeft 260ms cubic-bezier(.22, .75, .2, 1) both;
}

.view.slide-out-right {
  animation: pageOutRight 260ms cubic-bezier(.22, .75, .2, 1) both;
}

@keyframes pageInRight {
  from { transform: translateX(26%); opacity: .72; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pageInLeft {
  from { transform: translateX(-26%); opacity: .72; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pageOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-18%); opacity: .72; }
}

@keyframes pageOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(18%); opacity: .72; }
}

.view[data-view="login"].active {
  display: block;
}

.view[data-view="voice"].active {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.login {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 26px 22px 42px;
  text-align: center;
  gap: 12px;
}

.slogan {
  max-width: 284px;
  margin: 0 auto 2px;
  color: #344054;
  font-weight: 680;
  line-height: 1.58;
  font-size: 14px;
}

.sunflower-mark {
  align-self: center;
  display: grid;
  place-items: center;
  min-height: 198px;
}

.sunflower-mark svg {
  width: 112px;
  height: 218px;
  overflow: visible;
}

.sunflower-mark .stem,
.sunflower-mark .leaf {
  fill: none;
  stroke: #50724d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sunflower-mark .leaf {
  fill: rgba(80, 114, 77, .08);
}

.sunflower-mark .flower path {
  fill: rgba(240, 180, 41, .75);
  stroke: #d69a18;
  stroke-width: 2;
  stroke-linejoin: round;
}

.sunflower-mark .flower circle {
  fill: #6f4a22;
  stroke: #4f351d;
  stroke-width: 2;
}

.login-card {
  width: 100%;
  max-width: 304px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  gap: 8px;
}

.login-card label {
  display: grid;
  gap: 5px;
}

.login-card label span,
.top span,
.quiet {
  color: var(--quiet);
  font-size: 12px;
}

.login-card input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 9px 11px;
  font-size: 13px;
}

.phone-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.phone-code-row input {
  border: 0;
  border-radius: 0;
}

.phone-code-row button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.login-code-status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.login-code-status[data-tone="success"] {
  color: #18794e;
}

.login-code-status[data-tone="error"] {
  color: #b42318;
}

.login-card .primary,
.login-card .ghost {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 12px 13px;
  line-height: 1.35;
  text-align: center;
}

.profile-reminder {
  display: grid;
  gap: 10px;
}

.profile-reminder.collapsed {
  display: none;
}

.settings-section-title {
  margin: 10px 4px 2px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
}

.profile-fields {
  display: grid;
  gap: 8px;
}

.profile-fields label {
  display: grid;
  gap: 5px;
}

.profile-fields label span {
  color: var(--quiet);
  font-size: 12px;
}

.profile-fields input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 9px 11px;
  font-size: 13px;
}

.settings-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
}

.settings-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  text-align: left;
  padding: 12px;
  color: var(--ink);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row span {
  font-size: 14px;
  font-weight: 760;
}

.settings-row::after {
  content: "›";
  color: var(--quiet);
  font-size: 22px;
  line-height: 1;
  margin-left: 2px;
}

.settings-row em {
  color: var(--quiet);
  font-size: 11px;
  font-style: normal;
  text-align: right;
  line-height: 1.35;
  max-width: 138px;
}

.settings-row {
  grid-template-columns: 1fr minmax(96px, auto) 16px;
}

.settings-row.logout-row span {
  color: #b42318;
}

.reminder-preference {
  display: grid;
  gap: 10px;
  border-top: 1px solid #edf1f5;
  background: var(--soft);
  padding: 12px;
}

.reminder-preference h2 {
  margin: 0;
  font-size: 15px;
}

.reminder-preference p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.reminder-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reminder-channel-grid label,
.reminder-default {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.reminder-center {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  padding: 12px;
}

.reminder-center h2 {
  margin: 0;
  font-size: 15px;
}

.reminder-center article {
  display: grid;
  grid-template-columns: 1fr minmax(96px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 9px 10px;
}

.reminder-center strong,
.reminder-center span,
.reminder-center em {
  display: block;
}

.reminder-center strong {
  font-size: 13px;
}

.reminder-center span,
.reminder-center p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.reminder-center em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
  text-align: right;
}

.reminder-action-cell {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.reminder-action-cell .inline-action {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.provider-status-panel {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  padding: 12px;
}

.provider-status-panel h2 {
  margin: 0;
  font-size: 15px;
}

.provider-status-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.provider-status-grid {
  display: grid;
  gap: 8px;
}

.provider-status-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 10px;
}

.provider-status-grid article.ready {
  border-color: #bfe6d2;
  background: var(--green-soft);
}

.provider-status-grid strong,
.provider-status-grid span,
.provider-status-grid em,
.provider-status-grid p,
.provider-status-grid small {
  display: block;
}

.provider-status-grid strong {
  font-size: 13px;
}

.provider-status-grid span,
.provider-status-grid p,
.provider-status-grid small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.provider-status-grid em {
  align-self: start;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.provider-status-grid article.ready em {
  background: var(--green);
  color: #fff;
}

.provider-status-grid p,
.provider-status-grid small {
  grid-column: 1 / -1;
}

.reminder-default {
  justify-content: space-between;
}

.reminder-default select {
  min-height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.top {
  padding: 14px 20px 10px;
}

.mine-top {
  padding-bottom: 4px;
}

.top.compact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bell-button {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}

.bell-button svg {
  width: 17px;
  height: 17px;
}

.bell-button span {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 50%;
  background: #d64545;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.bell-button span.empty {
  display: none;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.18;
}

h2 {
  font-size: 15px;
  line-height: 1.3;
}

.content {
  overflow: auto;
  min-height: 0;
  padding: 8px 16px 16px;
}

.voice-content {
  padding-bottom: 8px;
}

.card,
.confirm-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.card.soft {
  background: var(--soft);
  box-shadow: none;
}

.voice-entry-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .08);
}

.voice-entry-card strong,
.voice-entry-card em {
  display: block;
}

.voice-entry-card strong {
  font-size: 16px;
}

.voice-entry-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.voice-entry-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  position: relative;
}

.voice-entry-icon::before {
  content: "";
  position: absolute;
  inset: 11px 15px;
  border: 2px solid #fff;
  border-radius: 10px;
}

.voice-entry-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 8px;
  width: 2px;
  height: 8px;
  background: #fff;
  box-shadow: -5px 7px 0 -3px #fff, 5px 7px 0 -3px #fff;
}

.invite-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.invite-card strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

.invite-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.identity-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}

.identity-strip span {
  color: var(--quiet);
  font-size: 12px;
}

.identity-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.identity-strip p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.identity-strip .ghost {
  min-height: 34px;
  padding: 7px 9px;
  white-space: nowrap;
}

.identity-picker {
  display: grid;
  gap: 10px;
}

.identity-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  padding: 12px;
  color: var(--ink);
}

.identity-option.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.identity-option span {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  margin-bottom: 4px;
}

.identity-option strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.identity-option em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.code-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  background: var(--soft);
}

.code-row span {
  color: var(--quiet);
  font-size: 12px;
}

.code-row strong {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: 0;
}

.mini-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.mini-row span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.mini-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.stack {
  display: grid;
  gap: 9px;
}

.item,
.contact,
.message {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 11px;
}

.item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
}

.item.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.num,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f6;
  color: var(--ink);
  font-weight: 820;
}

.num {
  width: 26px;
  height: 26px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
}

.avatar {
  width: 44px;
  height: 44px;
  border: 1px solid #dbe2eb;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.item strong,
.contact strong,
.person-card strong,
.message strong {
  display: block;
  font-size: 14px;
  line-height: 1.36;
}

.item span,
.contact span,
.person-card span,
.message span {
  display: block;
  margin-top: 3px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.35;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 7px;
}

.inline-action {
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 12px;
  font-weight: 760;
}

.inline-actions .inline-action {
  margin-top: 0;
}

.inline-action.muted {
  color: var(--muted);
}

.empty-note {
  margin: 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.45;
}

.mini-row small {
  color: var(--quiet);
  font-size: 12px;
}

.tick {
  width: 30px;
  height: 30px;
  border: 1px solid #c7d3e1;
  background: #fff;
  border-radius: 50%;
  color: var(--green);
  font-weight: 900;
}

.tick.active {
  background: var(--green-soft);
  border-color: #bfe6d2;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.metrics div {
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.metrics strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px 12px;
  margin-bottom: 10px;
  color: var(--quiet);
}

.search-with-action {
  grid-template-columns: 20px 1fr auto auto;
}

.search-submit,
.search-clear {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  padding: 4px 0 4px 8px;
}

.search-submit {
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 5px 9px;
}

.search-status {
  margin: -4px 2px 10px;
  color: var(--quiet);
  font-size: 12px;
}

svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.global-search-entry {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  padding: 8px 9px 8px 10px;
  margin: 0;
  color: var(--quiet);
}

.global-search-entry input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.global-search-entry button {
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink);
  min-height: 30px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.global-search-entry:focus-within {
  border-color: rgba(37, 99, 235, .38);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.global-search-entry button:active {
  background: #111827;
  color: #fff;
}

.global-search-page {
  padding-top: 2px;
}

.global-search-box {
  margin-bottom: 12px;
}

.global-answer h2 {
  margin-top: 10px;
}

.global-result-actions {
  margin-top: 12px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 720;
}

.chip.active,
.tag.blue {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #cad7ff;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.tag.green {
  color: var(--green);
  background: var(--green-soft);
  border-color: #bfe6d2;
}

.tag.amber {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #f5d48a;
}

.contact {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
}

.contact-actions {
  grid-column: 2;
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.person-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.plan-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.plan-card span {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  margin-bottom: 4px;
}

.plan-card strong {
  display: block;
  font-size: 14px;
}

.plan-actions {
  display: flex;
  gap: 7px;
}

.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.primary,
.ghost,
.back,
.icon-button {
  border-radius: var(--radius);
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 10px;
  font-weight: 780;
  font-size: 13px;
}

.primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.ghost,
.back {
  color: var(--ink);
  background: #fff;
}

.back {
  min-height: 34px;
  padding: 7px 9px;
  color: var(--muted);
}

.icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.full {
  width: 100%;
}

.message.me {
  border-left: 4px solid var(--blue);
}

.message.other {
  border-left: 4px solid var(--green);
}

.message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--quiet);
  font-size: 11px;
  margin-bottom: 6px;
}

.message p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.52;
}

.message-audio {
  width: 100%;
  height: 34px;
  margin: 2px 0 8px;
  display: block;
}

.record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.record-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c7d3e1;
  flex: 0 0 auto;
}

.record.recording .record-dot {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(35, 92, 255, .12);
}

.record strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.record span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.capture-hero {
  min-height: auto;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 10px;
  align-items: stretch;
  text-align: center;
  padding: 0 0 2px;
}

.capture-actions {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
  align-items: stretch;
}

.home-capture-shell {
  min-height: 414px;
  align-content: start;
}

.listening-stage {
  grid-column: 1 / -1;
  min-height: 128px;
  display: grid;
  align-items: end;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48)),
    repeating-linear-gradient(90deg, rgba(22, 132, 91, .08) 0 1px, transparent 1px 28px),
    #f7faf8;
  padding: 16px;
  text-align: left;
}

.home-listening-stage {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 112px;
  padding: 12px 6px 2px;
  align-items: center;
  text-align: center;
}

.listening-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.listening-copy span {
  width: max-content;
  border: 1px solid rgba(22, 132, 91, .22);
  border-radius: 999px;
  background: rgba(22, 132, 91, .08);
  color: var(--green);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.listening-copy strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
}

.listening-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
  max-width: 292px;
}

.capture-action {
  min-height: 116px;
  position: relative;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "icon"
    "title"
    "note"
    "action";
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 12px;
  color: var(--ink);
  text-align: center;
  box-shadow: none;
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.capture-action::after {
  content: none;
}

.capture-action:active {
  transform: scale(.98);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.capture-action.active {
  border-color: rgba(15, 23, 42, .24);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
}

.capture-action.recording {
  border-color: rgba(214, 69, 69, .42);
  background: #fff5f5;
  box-shadow: 0 12px 32px rgba(214, 69, 69, .14);
}

.capture-action.processing {
  border-color: rgba(230, 106, 26, .38);
  background: #fff7ed;
  box-shadow: 0 12px 32px rgba(230, 106, 26, .13);
}

.capture-action.recording small {
  color: #d64545;
  font-weight: 760;
}

.capture-action.recording em,
.capture-action.processing em {
  background: #fff0f0;
  color: #d64545;
}

.capture-action.processing small {
  color: #e66a1a;
  font-weight: 760;
}

.capture-action.processing em {
  background: #fff1e5;
  color: #e66a1a;
}

.capture-action strong {
  grid-area: title;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 860;
}

.capture-action em {
  grid-area: action;
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink);
  padding: 4px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  line-height: 1;
}

.capture-action small {
  grid-area: note;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.25;
}

.capture-action.primary-capture {
  width: 184px;
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, .22),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  padding: 16px;
}

.home-primary-capture {
  margin-top: 8px;
}

.capture-action.primary-capture strong {
  font-size: 22px;
  color: #fff;
}

.capture-action.primary-capture em {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.capture-action.primary-capture small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.capture-action.primary-capture .capture-icon {
  width: 48px;
  height: 48px;
}

.capture-icon {
  grid-area: icon;
  width: 38px;
  height: 38px;
  display: block;
  position: relative;
}

.home-relation-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0 0;
}

.home-relation-chip {
  min-height: 64px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 8px 4px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.home-relation-chip span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef6f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 860;
}

.home-relation-chip strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 820;
}

.home-relation-chip.active {
  border-color: rgba(22, 132, 91, .34);
  background: #f0faf5;
  box-shadow: 0 10px 24px rgba(22, 132, 91, .1);
}

.home-relation-chip.more span {
  background: #f2f4f7;
  color: var(--ink);
}

.listen-button-icon {
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) 50% 24% / 10px 22px no-repeat,
    linear-gradient(#fff, #fff) 50% 64% / 24px 4px no-repeat,
    linear-gradient(#fff, #fff) 50% 72% / 4px 12px no-repeat;
}

.listen-button-icon::before,
.listen-button-icon::after {
  content: "";
  position: absolute;
  inset: 7px 10px 13px;
  border: 3px solid #fff;
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.listen-button-icon::after {
  inset: 2px 15px 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

.note-icon {
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.note-icon::before,
.note-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #e66a1a;
}

.note-icon::before {
  top: 13px;
}

.note-icon::after {
  top: 24px;
}

.talk-icon {
  border: 0;
  border-radius: 0;
  transform: rotate(-8deg);
  background:
    radial-gradient(circle at 50% 65%, transparent 0 5px, var(--ink) 5px 7px, transparent 7px),
    radial-gradient(circle at 38% 64%, var(--ink) 0 1.8px, transparent 2px),
    radial-gradient(circle at 50% 55%, var(--ink) 0 1.8px, transparent 2px),
    radial-gradient(circle at 62% 64%, var(--ink) 0 1.8px, transparent 2px);
}

.talk-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 32px;
  height: 12px;
  border: 3px solid var(--ink);
  border-radius: 14px 14px 8px 8px;
  transform: rotate(-7deg);
  box-shadow: inset 8px 0 0 -5px var(--ink), inset -8px 0 0 -5px var(--ink);
}

.talk-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 19px;
  width: 28px;
  height: 17px;
  border: 3px solid var(--ink);
  border-radius: 7px 7px 11px 11px;
  transform: rotate(2deg);
}

.phone-cord {
  position: absolute;
  left: 28px;
  top: 31px;
  width: 14px;
  height: 10px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 0 14px;
  transform: rotate(22deg);
}

.listen-icon {
  display: grid;
  place-items: center;
}

.listen-icon svg {
  width: 42px;
  height: 42px;
}

.listen-icon path {
  fill: none;
  stroke: #d64545;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listen-icon .ear-inner,
.listen-icon .ear-fold {
  stroke-width: 2.3;
}

.listen-icon .hand-line {
  stroke-width: 2.4;
  opacity: .92;
}

.capture-record {
  padding: 0;
  display: grid;
  grid-template-rows: 96px 38px;
  gap: 8px;
  text-align: left;
}

.live-transcript {
  width: 100%;
  min-height: 96px;
  height: 100%;
  max-height: 96px;
  border: 1px solid #edf1f5;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  outline: 0;
  resize: none;
  padding: 13px 12px;
  line-height: 1.55;
  font-size: 13px;
}

.capture-record-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  height: 38px;
}

.capture-record-controls .ghost,
.capture-ai-toggle {
  width: 100%;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 8px 10px;
  line-height: 1.2;
}

.capture-ai-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 780;
  font-size: 13px;
}

.capture-ai-toggle.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.capture-record-controls .ghost.resume {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.capture-panel {
  display: grid;
  gap: 8px;
  align-self: end;
}

.voice-feed {
  display: grid;
  gap: 9px;
  text-align: left;
}

.agent-desk {
  display: grid;
  gap: 8px;
  text-align: left;
}

.agent-desk:empty {
  display: none;
}

.capture-receipt {
  width: 100%;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 0;
  border-left: 3px solid var(--green);
  border-radius: 0;
  background: transparent;
  padding: 5px 0 5px 13px;
  color: var(--ink);
  text-align: left;
}

.capture-receipt span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.capture-receipt i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.capture-receipt strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-receipt em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.capture-receipt.processing i {
  animation: receipt-pulse 1.4s ease-in-out infinite;
}

.capture-receipt.needs_confirmation,
.capture-receipt.retrying {
  border-left-color: var(--amber);
}

.capture-receipt.needs_confirmation i,
.capture-receipt.retrying i {
  background: var(--amber);
}

.capture-receipt.failed {
  border-left-color: #b42318;
}

.capture-receipt.failed i {
  background: #b42318;
}

@keyframes receipt-pulse {
  50% {
    opacity: .35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capture-receipt.processing i {
    animation: none;
  }
}

.push-status-prompt {
  display: flex;
  align-items: center;
}

.push-status-prompt[hidden] {
  display: none;
}

.push-status-prompt button {
  min-height: 30px;
  border: 1px solid #e5b852;
  border-radius: 6px;
  background: #fff8e8;
  color: #765500;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.agent-desk-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px;
  align-items: baseline;
  padding: 0 2px;
}

.agent-desk-head strong {
  color: var(--ink);
  font-size: 14px;
}

.agent-desk-head em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  white-space: nowrap;
}

.agent-service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  padding: 11px 12px;
  text-align: left;
  color: var(--ink);
}

.agent-service-card > span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
}

.agent-service-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.agent-service-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-service-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.agent-service-card small {
  color: var(--green);
  font-size: 10px;
  font-weight: 760;
  font-style: normal;
  white-space: nowrap;
}

.agent-service-card.needs-attention {
  border-color: rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .08);
}

.activity-drawer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.activity-drawer summary {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  padding: 10px 11px;
}

.activity-drawer summary span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.activity-drawer summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.activity-drawer[open] {
  padding-bottom: 10px;
}

.activity-drawer[open] .voice-feed,
.activity-drawer[open] .agent-status-panel {
  padding: 0 10px 9px;
}

.agent-status-panel {
  display: grid;
  gap: 9px;
  text-align: left;
}

.agent-status-panel:empty {
  display: none;
}

.agent-status-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.agent-status-head span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.agent-status-head strong,
.agent-pending-item strong {
  font-size: 13px;
  color: var(--ink);
}

.agent-status-head em,
.agent-pending-item em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.agent-steps span {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px;
}

.agent-steps b {
  font-size: 12px;
  color: var(--ink);
}

.agent-steps em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.agent-steps .done {
  border-color: rgba(22, 163, 74, .26);
  background: rgba(22, 163, 74, .06);
}

.agent-steps .warn {
  border-color: rgba(245, 158, 11, .32);
  background: rgba(245, 158, 11, .08);
}

.agent-pending-list {
  display: grid;
  gap: 7px;
}

.agent-pending-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: var(--radius);
  background: rgba(245, 158, 11, .08);
  padding: 9px;
}

.agent-pending-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.agent-trace {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
}

.agent-trace summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agent-trace div {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.agent-trace p {
  margin: 0;
  display: grid;
  gap: 2px;
  border-left: 3px solid #dbe4ee;
  padding-left: 8px;
}

.agent-trace b {
  color: var(--ink);
  font-size: 12px;
}

.agent-trace span,
.agent-trace em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.voice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 9px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.voice-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.voice-card-head strong,
.voice-card-head span {
  display: block;
}

.voice-card-head strong {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
}

.voice-card-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.voice-card-head .voice-audio-status {
  margin-top: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 760;
}

.voice-card audio {
  width: 100%;
  height: 34px;
  display: block;
}

.voice-card-preview {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.voice-result {
  display: grid;
  gap: 8px;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 10px;
}

.voice-result p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.voice-result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.relationship-draft-card {
  display: grid;
  gap: 10px;
  border: 1px solid #cfd7e4;
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.relationship-draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.relationship-draft-card strong,
.relationship-draft-card span {
  display: block;
}

.relationship-draft-card strong {
  color: var(--ink);
  font-size: 13px;
}

.relationship-draft-card span,
.relationship-draft-card details {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.relationship-draft-card p,
.relationship-draft-card label,
.relationship-draft-card small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.relationship-draft-card textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 9px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.relationship-draft-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.relationship-draft-actions button {
  min-height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.relationship-draft-actions button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.voice-transcript {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
}

.voice-transcript summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.voice-transcript p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.voice-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.voice-card-actions button,
.voice-card-actions select {
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  padding: 6px 9px;
}

.voice-card-actions select {
  flex: 1;
}

.organize-button {
  min-height: 38px;
  padding: 8px 10px;
  line-height: 1.2;
  background: #e66a1a;
  border-color: #e66a1a;
}

.organize-button:active {
  background: #cc5711;
  border-color: #cc5711;
}

.result-content {
  padding-bottom: 16px;
}

.self-note-input {
  width: 100%;
  min-height: 76px;
  max-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: 0;
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
  font-size: 14px;
  overflow: auto;
}

.self-note-input:focus {
  border-color: #c7d3e1;
  background: #fff;
}

.self-note-input.hidden-transcript {
  display: none;
}

.self-note-result {
  margin-bottom: 10px;
}

.self-note-result .inline-actions {
  margin-top: 10px;
}

.self-note-buckets {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.self-bucket {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.self-bucket summary,
.self-bucket-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
}

.self-bucket summary::-webkit-details-marker {
  display: none;
}

.self-bucket summary strong,
.self-bucket summary em,
.self-bucket-summary strong,
.self-bucket-summary em {
  display: block;
}

.self-bucket summary strong,
.self-bucket-summary strong {
  font-size: 14px;
  margin-bottom: 3px;
}

.self-bucket summary em,
.self-bucket-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-bucket-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.self-bucket textarea {
  width: 100%;
  min-height: 62px;
  border: 1px solid #edf1f5;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  outline: 0;
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.5;
  font-size: 13px;
}

.self-bucket .inline-action {
  display: block;
  width: calc(100% - 20px);
  min-height: 38px;
  margin: 0 10px 10px;
  border-radius: 12px;
  background: #e66a1a;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 5px 0 #b94f10;
}

.self-bucket .inline-action:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b94f10;
}

.calendar-card {
  display: grid;
  gap: 10px;
}

.schedule-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.schedule-day {
  position: relative;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  padding: 6px 2px;
  display: grid;
  place-items: center;
  gap: 1px;
}

.schedule-day span {
  font-size: 10px;
  line-height: 1;
}

.schedule-day strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.schedule-day em {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.schedule-day.active {
  border-color: #cad7ff;
  background: var(--blue-soft);
}

.schedule-day.has-event strong {
  color: var(--blue);
}

.schedule-details {
  display: grid;
  gap: 8px;
}

.ai-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  margin-bottom: 10px;
}

.ai-toggle strong,
.ai-toggle em {
  display: block;
}

.ai-toggle strong {
  font-size: 14px;
}

.ai-toggle em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ai-toggle input {
  width: 44px;
  height: 24px;
  accent-color: var(--blue);
}

.transcript {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.transcript span {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  margin-bottom: 7px;
}

.transcript textarea {
  width: 100%;
  min-height: 96px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: var(--ink);
  line-height: 1.55;
  font-size: 13px;
  background: transparent;
}

.attach-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.attach-row button,
.attach-row label {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 760;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.task-overview {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding: 0 2px;
  margin-bottom: 14px;
  color: var(--quiet);
  font-size: 12px;
}

.task-overview strong {
  margin-left: 3px;
  color: var(--ink);
  font-size: 14px;
}

.task-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 9px;
}

.task-list-head div {
  display: grid;
  gap: 2px;
}

.task-list-head span,
.task-list-head p {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
}

.task-list-head strong {
  color: var(--ink);
  font-size: 15px;
}

.task-empty {
  margin-top: 0;
}

.task-calendar-card,
.task-day-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.task-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.task-calendar-actions {
  display: grid;
  grid-template-columns: minmax(76px, .9fr) minmax(58px, .75fr) auto;
  gap: 6px;
  align-items: center;
}

.task-calendar-actions select,
.calendar-mini {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 720;
}

.task-calendar-actions select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--quiet) 50%) right 10px top 12px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--quiet) 50%, transparent 50%) right 6px top 12px / 5px 5px no-repeat,
    #fff;
  padding-right: 20px;
}

.task-calendar-head span,
.task-day-card span {
  color: var(--quiet);
  font-size: 12px;
}

.task-calendar-head strong,
.task-day-card strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.task-calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 6px;
}

.task-calendar-strip.month {
  grid-template-columns: repeat(7, minmax(34px, 1fr));
}

.task-calendar-day {
  min-height: 66px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  padding: 6px 4px;
  display: grid;
  place-items: center;
  gap: 1px;
}

.task-calendar-day span,
.task-calendar-day em {
  color: var(--quiet);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.task-calendar-day strong {
  font-size: 16px;
  line-height: 1;
}

.task-calendar-day b {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

.task-calendar-day.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.task-calendar-day.has-event strong {
  color: var(--green);
}

.task-calendar-day.muted-month {
  opacity: .48;
}

.task-day-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.task-schedule-voice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-schedule-voice img {
  width: 14px;
  height: 14px;
}

.task-schedule-voice.recording {
  border-color: #e05252;
  color: #b52c2c;
  background: #fff4f4;
}

.top3-composer {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 11px;
  margin-bottom: 10px;
}

.top3-composer label {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid #edf1f5;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
}

.top3-composer label span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.top3-composer input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
}

.memory-answer {
  margin-bottom: 10px;
}

.task-composer label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.task-composer span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 720;
}

.task-composer input,
.task-composer select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
  background: #fff;
  padding: 8px 10px;
}

.task-composer select {
  min-height: 36px;
  color: var(--muted);
  font-weight: 720;
}

.task-reminder {
  display: inline-grid;
  width: fit-content;
  margin-top: 5px;
  border: 1px solid #bfe6d2;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 760;
}

.task-edit-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.task-edit-panel label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.task-edit-panel textarea {
  width: 100%;
  min-height: 112px;
  border: 1px solid #cfd7e4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: 0;
  resize: vertical;
  padding: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.task-edit-panel textarea:focus {
  border-color: var(--blue);
}

.task-edit-panel p {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.5;
}

.item.notification-target {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 92, 255, .1);
}


.task-composer .primary {
  min-height: 36px;
  padding: 8px 10px;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .task-composer {
    grid-template-columns: 1fr 1fr;
  }

  .task-composer label:first-child,
  .task-composer .primary {
    grid-column: 1 / -1;
  }
}

.share-composer,
.knowledge-composer {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.share-composer label,
.knowledge-composer label {
  display: grid;
  gap: 7px;
}

.share-composer span,
.knowledge-composer span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 720;
}

.share-composer input,
.share-composer textarea,
.knowledge-composer input,
.knowledge-composer textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
  background: transparent;
}

.share-composer textarea,
.knowledge-composer textarea {
  min-height: 58px;
  resize: vertical;
  line-height: 1.5;
}

.share-type-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
}

.thumb-actions {
  padding: 8px 16px 14px;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(251,252,254,0), #fbfcfe 18%);
}

.confirm-card {
  border-color: #cdd8ff;
  background: #fbfdff;
  display: grid;
  gap: 12px;
}

.confirm-card h2 {
  font-size: 18px;
}

.summary,
.fields {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px;
}

.summary strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.share-comments {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  background: var(--soft);
}

.share-comments b {
  color: var(--ink);
  font-weight: 760;
}

.ai-note {
  border-color: #f5d48a;
  background: #fffaf0;
}

.ai-note strong {
  color: var(--amber);
}

.fields {
  display: grid;
  gap: 8px;
}

.fields div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 8px;
  font-size: 13px;
}

.fields div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fields span {
  color: var(--quiet);
}

.bottom-nav {
  height: 76px;
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 12px 14px;
  backdrop-filter: blur(10px);
}

.nav {
  border: 0;
  background: transparent;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 720;
}

.nav.active {
  color: var(--blue);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  background: rgba(17, 24, 39, .92);
  color: #fff;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 760;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.view:not([data-view="today"]) .primary,
.view:not([data-view="today"]) .search-submit,
.view:not([data-view="today"]) .capture-ai-toggle.active {
  background: var(--orange);
  border-color: var(--orange);
}

.view:not([data-view="today"]) .tag.blue,
.view:not([data-view="today"]) .chip.active,
.view:not([data-view="today"]) .task-calendar-day.active {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #f3c7a9;
}

.view:not([data-view="today"]) .tag.blue,
.view:not([data-view="today"]) .search-clear,
.view:not([data-view="today"]) .phone-code-row button,
.view:not([data-view="today"]) .nav.active {
  color: var(--orange);
}

.view:not([data-view="today"]) .task-calendar-day b {
  background: var(--orange);
}

.view[data-view="tasks"] .task-calendar-day.active {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: #f3c7a9;
}

.view[data-view="tasks"] .task-calendar-day.has-event strong {
  color: var(--orange);
}

.view[data-view="tasks"] .task-calendar-day b {
  background: var(--orange);
}

.view[data-view="tasks"] .tag[data-action="toggleTaskCalendarMode"] {
  color: var(--green);
  background: var(--green-soft);
  border-color: #bfe6d2;
}

.view[data-view="tasks"] .task-composer .primary {
  background: var(--orange);
  border-color: var(--orange);
}

.view[data-view="tasks"] #taskList .num {
  color: var(--orange);
  background: var(--orange-soft);
}

.view[data-view="tasks"] [data-complete-task] {
  color: var(--green);
}

.view[data-view="knowledge"] .inline-action {
  color: var(--orange);
}

.view[data-view="knowledge"] .inline-action.muted {
  color: var(--muted);
}

.bottom-nav .nav.active {
  color: var(--orange);
}

.view[data-view="today"].active ~ .bottom-nav .nav.active {
  color: var(--green);
}

.view[data-view="today"].active ~ .bottom-nav .nav.active img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(24%) saturate(1298%) hue-rotate(107deg) brightness(91%) contrast(93%);
}

/* Fusion home: one light entrance, visible service, stable four-page navigation. */
.home-top {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 6px;
}

.phone:has(.view[data-view="today"].active) .statusbar .brand-mini {
  visibility: hidden;
}

.home-brand {
  display: flex;
  align-items: baseline;
  font-size: 25px;
  letter-spacing: 0;
}

.home-brand span {
  font-size: 22px;
}

.home-brand .brand-h,
.home-brand .brand-i {
  color: #101522;
}

.home-brand .brand-ai {
  color: #d64545;
}

.home-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.home-status em {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-style: normal;
}

.home-status em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.home-status .bell-button {
  width: 30px;
  height: 30px;
}

.profile-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  padding: 0;
}

.profile-button img {
  width: 16px;
  height: 16px;
}

.bell-button img {
  width: 16px;
  height: 16px;
}

.view[data-view="today"] .content {
  overflow: hidden;
  padding: 0 20px 8px;
}

.view[data-view="today"] .capture-hero {
  height: 100%;
  display: block;
}

.home-capture-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 15% 29% 12% minmax(170px, 1fr);
  align-content: stretch;
  gap: 10px;
  position: relative;
}

.home-capture-shell > .home-listening-stage {
  grid-row: 1;
}

.home-capture-shell > .agent-desk {
  grid-row: 2;
  align-self: end;
}

.home-capture-shell > .home-relation-rail {
  grid-row: 3;
}

.home-capture-shell > .home-primary-capture {
  grid-row: 4;
}

.home-listening-stage {
  min-height: 72px;
  padding: 2px 0 0;
  text-align: left;
}

.home-listening-stage .listening-copy {
  justify-items: start;
  gap: 4px;
}

.home-listening-stage .listening-copy span {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--green);
  font-size: 12px;
}

.home-listening-stage .listening-copy strong {
  max-width: 100%;
  font-size: 24px;
  line-height: 1.18;
}

.home-listening-stage .listening-copy em {
  max-width: 100%;
  color: var(--quiet);
  font-size: 12px;
}

.home-focus {
  width: 100%;
  min-height: 78px;
  display: grid;
  gap: 5px;
  border: 0;
  border-left: 3px solid var(--green);
  border-radius: 0;
  background: transparent;
  padding: 5px 0 5px 13px;
  color: var(--ink);
  text-align: left;
  align-self: start;
  margin-top: clamp(28px, 7vh, 60px);
}

.home-focus strong {
  font-size: 16px;
  line-height: 1.38;
}

.home-focus strong b {
  color: var(--green);
  font-size: inherit;
}

.home-focus span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.home-focus span b {
  margin-right: 2px;
  color: var(--orange);
  font-size: 16px;
}

.home-focus em {
  overflow: hidden;
  color: var(--quiet);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-relation-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 2px 0 0;
}

.home-relation-chip {
  min-height: 66px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 2px;
}

.home-relation-chip span {
  width: 36px;
  height: 36px;
  border: 1px solid #dce5e0;
  background: #eef5f1;
  font-size: 14px;
}

.home-relation-chip strong {
  font-size: 11px;
  color: var(--muted);
}

.home-relation-chip.active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-relation-chip.active span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(22, 132, 91, .1);
}

.home-relation-chip.more span {
  background: #f2f4f7;
}

.home-relation-chip.more img {
  width: 18px;
  height: 18px;
}

.capture-action.primary-capture.home-primary-capture {
  align-self: start;
  width: 158px;
  aspect-ratio: 1;
  margin: clamp(16px, 4vh, 35px) 0 0;
  gap: 7px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .24), inset 0 1px 0 rgba(255,255,255,.14);
}

.capture-action.primary-capture.home-primary-capture .capture-icon {
  width: 34px;
  height: 34px;
  filter: invert(1);
}

.capture-action.primary-capture.home-primary-capture strong {
  font-size: 22px;
}

.capture-action.primary-capture.home-primary-capture small {
  font-size: 11px;
}

.home-keyboard-entry {
  position: absolute;
  right: 2px;
  bottom: 58px;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 32px;
  height: 32px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 720;
}

.home-keyboard-entry img {
  width: 17px;
  height: 17px;
  opacity: .62;
}

.home-keyboard-entry span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.view[data-view="today"] .capture-record {
  position: absolute;
  top: 92px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: var(--screen);
  box-shadow: none;
  padding: 22px 24px 42px;
  text-align: left;
}

.view[data-view="today"] .capture-panel {
  display: none;
}

.phone:has(.capture-active) .bottom-nav {
  visibility: hidden;
}

.capture-active .home-capture-shell {
  visibility: hidden;
}

.capture-record-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
}

.capture-record-head strong {
  font-size: 14px;
}

.capture-record-head em {
  justify-self: end;
  color: var(--quiet);
  font-size: 11px;
  font-style: normal;
}

.recording-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d64545;
  box-shadow: 0 0 0 5px rgba(214, 69, 69, .1);
}

.view[data-view="today"] .live-transcript {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.72;
  resize: none;
}

.view[data-view="today"] .live-transcript::placeholder {
  color: #aab2bf;
}

.capture-record-controls {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 46px;
}

.record-control {
  width: 76px;
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.record-control-disc {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.record-control-disc img {
  width: 23px;
  height: 23px;
}

.record-control strong {
  font-size: 12px;
}

.record-control.stop-control .record-control-disc {
  border-color: #121827;
  background: #121827;
}

.record-control.stop-control img {
  filter: invert(1);
}

.record-control.resume .record-control-disc {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 132, 91, .08);
}

.memory-voice-section {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.memory-voice-section .section-head {
  align-items: end;
}

.memory-voice-section .section-head div {
  display: grid;
  gap: 3px;
  text-align: left;
}

.memory-voice-section .section-head strong {
  font-size: 15px;
}

.memory-voice-section .section-head span {
  color: var(--quiet);
  font-size: 11px;
}

.memory-voice-section .inline-action {
  min-height: 32px;
  margin: 0;
  padding: 6px 9px;
}

.memory-range-chips {
  margin-bottom: 8px;
}

.memory-voice-search.active {
  background: #111827;
}

.memory-day-group,
.memory-library {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.memory-day-group + .memory-day-group {
  margin-top: 8px;
}

.memory-day-group > summary,
.memory-library > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}

.memory-day-group > summary::-webkit-details-marker,
.memory-library > summary::-webkit-details-marker {
  display: none;
}

.memory-day-group > summary span {
  color: var(--quiet);
  font-size: 12px;
}

.memory-day-records {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 8px;
}

.memory-day-records .voice-card {
  margin: 0;
  box-shadow: none;
}

.memory-library {
  margin-top: 12px;
}

.memory-library[open] > summary {
  border-bottom: 1px solid var(--line);
}

.memory-library > .chips,
.memory-library > .stack {
  margin: 10px;
}

.bottom-nav {
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 18px 13px;
}

.nav {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}

.nav img {
  width: 21px;
  height: 21px;
  opacity: .55;
}

.nav span {
  font-size: 10px;
}

.nav.active::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav.active img {
  opacity: .95;
}

@media (max-width: 520px) {
  .shell {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Relationship conversations use the same one-tap recording flow as Home. */
.view[data-view="space"].active {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.relationship-content {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding-bottom: 10px;
}

.relationship-person-bar {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
}

.relationship-person-bar .avatar.large {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.relationship-person-bar strong,
.relationship-person-bar span {
  display: block;
}

.relationship-person-bar strong {
  font-size: 14px;
}

.relationship-person-bar span {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 11px;
}

.relationship-conversation {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.relationship-conversation-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 8px;
}

.relationship-conversation-head strong {
  font-size: 14px;
}

.relationship-conversation-head span {
  color: var(--quiet);
  font-size: 11px;
}

.relationship-thread {
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 2px;
}

.relationship-thread .message {
  width: fit-content;
  max-width: 84%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  box-shadow: none;
}

.relationship-thread .message.me {
  justify-self: end;
  border-left: 1px solid #bdd8f5;
  background: #eaf4ff;
}

.relationship-thread .message.other {
  justify-self: start;
  border-left: 1px solid var(--line);
  background: #fff;
}

.relationship-thread .message-head {
  margin-bottom: 5px;
}

.relationship-thread .message-date {
  margin-bottom: 3px;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.relationship-thread .message p {
  font-size: 14px;
  line-height: 1.46;
}

.message-voice-button {
  width: min(230px, 64vw);
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
}

.voice-confirmation {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.voice-confirmation label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.voice-confirmation textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.voice-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.message-voice-button img {
  width: 20px;
  height: 20px;
}

.message-voice-button span,
.message-voice-button strong,
.message-voice-button em {
  display: block;
}

.message-voice-button strong {
  font-size: 13px;
}

.message-voice-button em {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 10px;
  font-style: normal;
}

.message-voice-button.playing {
  background: #fff;
}

.message-transcript {
  margin-top: 7px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.message-source {
  display: block;
  margin-top: 6px;
  color: var(--quiet);
  font-size: 10px;
}

.relationship-empty {
  width: 100%;
  max-width: 100%;
  align-self: center;
  justify-self: stretch;
  padding: 0 12px;
  text-align: center;
  overflow-wrap: anywhere;
}

.relationship-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.relationship-details summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.relationship-details[open] summary {
  margin-bottom: 9px;
}

.relationship-compose {
  padding: 10px 18px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.relationship-record-button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfd7e4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 7px 11px;
  text-align: left;
}

.relationship-record-button img {
  width: 22px;
  height: 22px;
  justify-self: center;
}

.relationship-record-button strong,
.relationship-record-button em {
  display: block;
}

.relationship-record-button strong {
  font-size: 14px;
}

.relationship-record-button em {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 11px;
  font-style: normal;
}

.contact-direct {
  position: relative;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  color: var(--ink);
  text-align: left;
}

.contact-direct.has-message-state {
  padding-right: 42px;
}

.contact-unread-badge {
  position: absolute;
  top: 12px;
  right: 30px;
  min-width: 20px;
  height: 20px;
  display: grid !important;
  place-items: center;
  border-radius: 10px;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 820;
  line-height: 20px;
}

.contact-unread-badge.incoming {
  background: #d33f3f;
}

.contact-unread-badge.outgoing {
  background: var(--blue);
}

.message-delivery {
  display: block;
  margin-top: 5px;
  color: var(--quiet);
  font-size: 10px;
  text-align: right;
}

.contact-chevron {
  margin: 0 !important;
  color: var(--quiet) !important;
  font-size: 25px !important;
  line-height: 1 !important;
  text-align: right;
}

.relationship-filter-chips {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.relationship-filter-chips::-webkit-scrollbar {
  display: none;
}

.contact-relation-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.contact-relation-tags b {
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f7f8fa;
  color: #596273;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.3;
}

.phone > .capture-record {
  position: absolute;
  top: 34px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: var(--screen);
  box-shadow: none;
  padding: 22px 24px 42px;
  text-align: left;
}

.phone > .capture-record .live-transcript {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.72;
}

.phone.capture-active .bottom-nav {
  visibility: hidden;
}
