: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;
}

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

.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-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;
}

.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;
}

.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;
}

.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: #fff;
  padding: 10px 11px;
  margin: 0 0 12px;
  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: #111827;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 760;
}

.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;
}

.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: calc(100% - 63px);
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  gap: 11px;
  align-items: stretch;
  text-align: center;
  padding: 98px 0 2px;
}

.capture-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  align-self: end;
}

.capture-action {
  min-height: 112px;
  position: relative;
  border: 2px solid #111827;
  border-bottom-width: 6px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f2f4f7 100%);
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  place-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  color: var(--ink);
  box-shadow:
    0 14px 0 #c8ced8,
    0 22px 28px rgba(15, 23, 42, .16),
    inset 0 2px 0 rgba(255, 255, 255, .95);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.capture-action::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(24, 32, 51, .08);
}

.capture-action:active {
  transform: translateY(8px);
  box-shadow:
    0 5px 0 #aeb6c3,
    0 10px 16px rgba(15, 23, 42, .14),
    inset 0 1px 0 rgba(255, 255, 255, .78);
}

.capture-action.active {
  border-color: #111827;
  box-shadow:
    0 14px 0 #b9c1ce,
    0 22px 28px rgba(15, 23, 42, .14),
    inset 0 2px 0 rgba(255, 255, 255, .95);
}

.capture-action.recording {
  border-color: #d64545;
  background: linear-gradient(180deg, #fff7f7 0%, #ffe8e8 100%);
  box-shadow:
    0 14px 0 #b83232,
    0 22px 28px rgba(214, 69, 69, .18),
    inset 0 2px 0 rgba(255, 255, 255, .9);
}

.capture-action.processing {
  border-color: #e66a1a;
  background: linear-gradient(180deg, #fff8f1 0%, #ffe9d6 100%);
  box-shadow:
    0 14px 0 #c75914,
    0 22px 28px rgba(230, 106, 26, .18),
    inset 0 2px 0 rgba(255, 255, 255, .9);
}

.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 {
  font-size: 16px;
  line-height: 1;
  font-weight: 860;
}

.capture-action em {
  display: inline-grid;
  place-items: center;
  min-height: 18px;
  border-radius: 999px;
  background: #f1f3f6;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
}

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

.capture-icon {
  width: 42px;
  height: 42px;
  display: block;
  position: relative;
}

.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;
}

.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 {
  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 {
  display: block;
}

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

.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-stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px;
  margin-bottom: 10px;
}

.task-stats-card div {
  display: grid;
  gap: 5px;
  min-height: 58px;
  align-content: center;
  border-radius: 12px;
  background: #f8fafc;
  padding: 8px;
}

.task-stats-card span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
}

.task-stats-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.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-day-composer {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.task-day-composer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

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

.task-day-composer-head span {
  color: var(--quiet);
  font-size: 11px;
  white-space: nowrap;
}

.task-day-composer textarea {
  width: 100%;
  min-height: 118px;
  border: 1px solid #edf1f5;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  outline: 0;
  resize: none;
  padding: 11px 12px;
  line-height: 1.5;
  font-size: 13px;
}

.task-day-options,
.task-day-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.task-day-options label {
  display: grid;
  gap: 6px;
}

.task-day-options span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
}

.task-day-options select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  outline: 0;
  font-weight: 720;
}

.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-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(--blue);
}

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

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