:root {
  --ink: #1a1d29;
  --ink-3: #9098a8;
  --muted: #9098a8;
  --line: #e8edf5;
  --panel: #ffffff;
  --panel-strong: rgba(255, 255, 255, 0.92);
  --indigo: #3b38b8;
  --indigo-soft: #eeeffb;
  --shadow: 0 4px 18px rgba(40, 55, 100, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #8a8e96;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus,
input:focus {
  outline: none;
}

button:focus-visible,
input:focus-visible {
  box-shadow: 0 0 0 3px rgba(130, 153, 255, 0.24);
}

svg {
  display: block;
}

.demo-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  justify-content: center;
  align-content: center;
  gap: 14px;
  padding: 18px;
}

.scenario-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 13px;
  background: #e6ecf5;
  box-shadow: 0 8px 28px rgba(20, 30, 60, 0.22);
}

.scenario-tab {
  min-width: 82px;
  padding: 7px 13px;
  border-radius: 10px;
  color: #5a6072;
  background: transparent;
  font-size: 13px;
  font-weight: 620;
}

.scenario-tab.is-active {
  color: var(--indigo);
  background: #fff;
  box-shadow: 0 1px 3px rgba(40, 55, 100, 0.12);
}

.summary-state-tabs {
  width: min(430px, calc(100vw - 36px));
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 3px;
  overflow: visible;
  padding: 3px;
  border-radius: 13px;
  background: #e6ecf5;
  box-shadow: 0 8px 28px rgba(20, 30, 60, 0.22);
}

.summary-state-tab {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding: 7px 8px;
  border-radius: 10px;
  color: #5a6072;
  background: transparent;
  font-size: 12px;
  font-weight: 620;
  text-align: center;
}

.summary-state-tab.is-active {
  color: var(--indigo);
  background: #fff;
  box-shadow: 0 1px 3px rgba(40, 55, 100, 0.12);
}

.phone {
  position: relative;
  width: min(calc(100vw - 36px), 430px);
  height: min(860px, calc(100vh - 58px));
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px 17px 30px;
  border-radius: clamp(30px, 8vw, 58px);
  background:
    linear-gradient(180deg, #f3f7fc 0%, #e9f0fa 100%),
    #f3f7fc;
  box-shadow: 0 24px 60px rgba(20, 30, 60, 0.35);
}

.phone::after {
  content: "";
  display: none;
}

.phone-scroll {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 224px;
  scrollbar-width: none;
}

.phone-scroll::-webkit-scrollbar {
  display: none;
}

.phone.scenario-inbox .app-strip,
.phone.scenario-inbox .vote-nudge-row,
.phone.scenario-new .app-strip,
.phone.scenario-new .vote-nudge-row {
  display: none;
}

.phone.scenario-dropdown .inbox-card {
  display: none;
}

.status-bar {
  height: 42px;
  padding: 0 34px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 17px;
}

.signal i {
  width: 4px;
  border-radius: 5px;
  background: #000;
}

.signal i:nth-child(1) {
  height: 7px;
}

.signal i:nth-child(2) {
  height: 10px;
}

.signal i:nth-child(3) {
  height: 13px;
}

.signal i:nth-child(4) {
  height: 16px;
}

.wifi {
  width: 22px;
  height: 17px;
  position: relative;
  overflow: hidden;
}

.wifi::before,
.wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.wifi::before {
  bottom: -11px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 7px, #000 7.5px 10px, transparent 10.5px 14px, #000 14.5px 17px, transparent 17.5px);
}

.wifi::after {
  bottom: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
}

.battery {
  position: relative;
  width: 29px;
  height: 15px;
  border: 2px solid #000;
  border-radius: 5px;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 3px;
  background: #000;
}

.battery::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 4px;
  width: 3px;
  height: 7px;
  border-radius: 0 3px 3px 0;
  background: #000;
}

.top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 6px 18px;
}

.chat-detail-header,
.chat-history {
  display: none;
}

.chat-detail-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 2px 14px;
}

.chat-back,
.chat-files {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #394154;
  background: rgba(255, 255, 255, 0.72);
}

.chat-back svg,
.chat-files svg {
  width: 23px;
  height: 23px;
}

.chat-back path,
.chat-files path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-assistant-title {
  min-width: 0;
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 640;
}

.chat-assistant-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 5px 14px rgba(58, 143, 211, 0.15);
}

.chat-assistant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-history {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  flex-direction: column;
  gap: 11px;
  padding: 8px 1px 18px;
  scrollbar-width: none;
}

.chat-history::-webkit-scrollbar {
  display: none;
}

.flow-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 32;
  background: rgba(42, 55, 75, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.flow-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 33;
  width: min(356px, calc(100% - 46px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 22px;
  padding: 54px 24px 34px;
  border-radius: 0 34px 34px 0;
  background: rgba(240, 246, 253, 0.96);
  box-shadow: 18px 0 48px rgba(42, 55, 75, 0.16);
  transform: translateX(calc(-100% - 18px));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.24, 1);
}

.phone.flow-drawer-open .flow-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.phone.flow-drawer-open .flow-drawer {
  transform: translateX(0);
}

.flow-search {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  color: #8f9bad;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 400;
}

.flow-search svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.flow-search path,
.flow-search circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.flow-drawer-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.flow-drawer-tabs::-webkit-scrollbar {
  display: none;
}

.flow-drawer-tabs button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #7f8a9b;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(126, 143, 164, 0.18);
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
}

.flow-drawer-tabs button.is-active {
  color: #141824;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 55, 75, 0.08);
}

.flow-drawer-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 22px;
  overflow-y: auto;
  padding: 6px 2px 92px;
  scrollbar-width: none;
}

.flow-drawer-list::-webkit-scrollbar {
  display: none;
}

.flow-drawer-list button {
  width: 100%;
  min-width: 0;
  display: block;
  color: #101523;
  background: transparent;
  text-align: left;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-new-flow {
  position: absolute;
  right: 22px;
  bottom: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: #16171a;
  box-shadow: 0 12px 28px rgba(22, 23, 26, 0.22);
  font-size: 14px;
  font-weight: 560;
}

.drawer-new-flow svg {
  width: 17px;
  height: 17px;
}

.drawer-new-flow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.chat-day {
  align-self: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #98a2b4;
  background: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 650;
}

.chat-bubble {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 19px;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 470;
  box-shadow: 0 3px 14px rgba(40, 55, 100, 0.05);
}

.chat-bubble-ai {
  align-self: flex-start;
  color: #2b3040;
  background: rgba(255, 255, 255, 0.9);
  border-top-left-radius: 7px;
}

.chat-bubble-user {
  align-self: flex-end;
  color: #fff;
  background: var(--indigo);
  border-top-right-radius: 7px;
}

.workspace-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #7a8496;
  background: transparent;
  font-size: 15px;
  font-weight: 470;
  margin-top: 8px;
}

.workspace-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #4c5b72;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 8px rgba(40, 55, 100, 0.08);
  font-size: 11px;
  font-weight: 620;
}

.workspace-button svg {
  width: 14px;
  height: 14px;
}

.workspace-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon::before,
.icon::after {
  content: "";
  display: block;
}

.app-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
  max-height: 0;
  overflow: hidden;
  margin: 0 -2px;
  padding: 0 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: max-height 280ms ease, opacity 190ms ease, padding 280ms ease, transform 280ms ease;
}

.phone.apps-open .app-strip {
  max-height: 186px;
  padding: 10px 14px 22px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.app-shortcut {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #596579;
  background: transparent;
  font-size: 11px;
  font-weight: 560;
}

.app-shortcut:focus-visible {
  box-shadow: none;
}

.app-shortcut span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 6px rgba(40, 55, 100, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.app-shortcut:active .app-icon,
.app-shortcut.is-active .app-icon,
.app-shortcut:focus-visible .app-icon {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(40, 55, 100, 0.1);
}

.app-shortcut.has-alert .app-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b4f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.94);
}

.assistant-card,
.inbox-card,
.latest-message-card,
.new-todo-card,
.new0-summary-card,
.flow-card,
.message-bar,
.tab-bar {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.latest-message-card {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 15px 16px;
  border-radius: 20px;
  text-align: left;
}

.phone.scenario-new .latest-message-card {
  display: flex;
}

.phone.scenario-new0 .latest-message-card {
  display: none;
}

.phone.scenario-new2 .latest-message-card {
  display: none;
}

.new2-message-thread {
  display: none;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  flex-direction: column;
  gap: 11px;
  padding: 6px 1px 222px;
  scrollbar-width: none;
}

.new2-message-thread::-webkit-scrollbar {
  display: none;
}

.thread-day {
  align-self: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #98a2b4;
  background: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 650;
}

.thread-message {
  max-width: 84%;
  display: grid;
  gap: 5px;
}

.thread-message p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 19px;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 470;
  box-shadow: 0 3px 14px rgba(40, 55, 100, 0.05);
}

.thread-message.assistant {
  align-self: flex-start;
}

.thread-message.assistant p {
  color: #2b3040;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.thread-message.user {
  align-self: flex-end;
}

.thread-message.user p {
  color: #fff;
  background: var(--indigo);
  border-top-right-radius: 7px;
}

.thread-name {
  padding-left: 4px;
  color: #8a95a8;
  font-size: 11px;
  font-weight: 650;
}

.thread-message.assistant .thread-name {
  display: none;
}

.new-todo-card {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 24px;
}

.phone.scenario-new .new-todo-card {
  display: grid;
}

.phone.scenario-new0 .new-todo-card {
  display: none;
}

.phone.scenario-new .inbox-card {
  display: none;
}

.new-todo-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 18px;
  align-items: center;
  column-gap: 12px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.new-todo-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

.new-todo-icon svg {
  width: 24px;
  height: 24px;
}

.new-todo-icon path,
.new-todo-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-calendar {
  color: #ff9f1a;
}

.icon-flag {
  color: #18bfd2;
}

.icon-check {
  color: #16a7f2;
}

.new-todo-title {
  min-width: 0;
  color: #121624;
  font-size: 16px;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: 0;
}

.new-todo-meta {
  color: #9299a8;
  font-size: 16px;
  line-height: 1.16;
  font-weight: 470;
  white-space: nowrap;
}

.new-todo-count,
.new-todo-tag {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #7d8797;
  background: #eef2f7;
  font-size: 12px;
  line-height: 1;
  font-weight: 720;
}

.new-todo-tag {
  min-width: auto;
  white-space: nowrap;
}

.new-todo-arrow {
  margin-left: -7px;
  width: 16px;
  height: 16px;
  color: #8d97a7;
}

.latest-message-copy {
  min-width: 0;
}

.latest-message-card h2 {
  margin: 0;
  color: #919cad;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
}

.latest-message-card p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.24;
  font-weight: 620;
}

.latest-message-card p span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.32;
  font-weight: 620;
}

.latest-message-card p span:first-child {
  margin-top: 0;
}

.latest-unread {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  display: none;
  place-items: center;
  margin: 0 -4px 0 2px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #2f7dff;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
}

.phone.scenario-new0 .latest-unread,
.phone.scenario-new1 .latest-unread {
  display: grid;
}

.latest-message-card svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #9aa5b6;
}

.latest-message-card path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-module {
  display: grid;
  padding-top: 0;
  margin-top: 14px;
}

.phone.scenario-new .assistant-module {
  display: none;
}

.assistant-profile {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.flow-menu-button {
  display: none;
}

.phone.scenario-new0 .flow-menu-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #000;
  background: transparent;
}

.flow-menu-button svg {
  width: 21px;
  height: 21px;
}

.flow-menu-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.assistant-card {
  position: relative;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 2px 6px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.assistant-avatar {
  flex: 0 0 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 11px 26px rgba(58, 143, 211, 0.18);
}

.assistant-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.assistant-unread {
  display: none;
}

.assistant-copy {
  min-width: 0;
}

.assistant-title {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.assistant-title h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 700;
}

.phone.scenario-new0 .top-header {
  padding-left: 0;
  padding-right: 0;
}

.phone.scenario-new0 .assistant-profile,
.phone.scenario-new1 .assistant-profile {
  gap: 10px;
}

.phone.scenario-new0 .assistant-avatar,
.phone.scenario-new1 .assistant-avatar {
  flex-basis: 52px;
  height: 52px;
  box-shadow: 0 9px 22px rgba(58, 143, 211, 0.15);
}

.phone.scenario-new0 .assistant-avatar {
  flex-basis: 48px;
  height: 48px;
}

.phone.scenario-new0 .assistant-title h1 {
  font-size: 17px;
  font-weight: 500;
}

.phone.scenario-new0:not(.summary-v999) .flow-menu-button {
  display: none;
}

.phone.scenario-new2 .top-header {
  align-items: flex-start;
  padding-bottom: 10px;
}

.phone.scenario-new2 .workspace-button {
  order: 1;
  margin-top: 7px;
}

.phone.scenario-new2 .assistant-profile {
  order: 2;
  gap: 0;
  cursor: pointer;
}

.phone.scenario-new2 .assistant-avatar {
  flex-basis: 42px;
  height: 42px;
  box-shadow: 0 7px 18px rgba(58, 143, 211, 0.14);
}

.phone.scenario-new2 .assistant-unread {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #ff3b4f;
  box-shadow: 0 0 0 2px #eef4fb;
  font-size: 10px;
  line-height: 1;
  font-weight: 720;
}

.phone.scenario-new2 .assistant-title {
  display: none;
}

.vote-nudge {
  display: inline-flex;
  width: min(100%, 282px);
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 16px;
  color: var(--indigo);
  background: #fff;
  box-shadow: 0 2px 12px rgba(40, 55, 100, 0.05);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

.vote-nudge-row {
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 0;
  cursor: pointer;
}

.vote-nudge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b4f;
  box-shadow: 0 0 0 3px rgba(255, 59, 79, 0.1);
}

.phone.no-updates .vote-nudge {
  display: none;
}

.phone.no-updates .vote-nudge-row {
  min-height: 6px;
  padding-top: 0;
}

.online {
  display: inline-flex;
  width: fit-content;
  justify-self: start;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  color: #2bb573;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.online i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.assistant-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 480;
}

.inbox-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.inbox-card-copy {
  min-width: 0;
}

.inbox-card h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #919cad;
}

.inbox-card p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 560;
}

.inbox-card-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b4f;
  box-shadow: 0 0 0 3px rgba(255, 59, 79, 0.1);
}

.inbox-card.is-empty .inbox-card-dot {
  display: none;
}

.inbox-card.is-empty p {
  color: #2bb573;
}

.review-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(26, 29, 41, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.calendar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 38;
  background: rgba(26, 29, 41, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.calendar-sheet {
  position: absolute;
  left: 17px;
  right: 17px;
  top: 50%;
  z-index: 39;
  max-height: min(470px, calc(100% - 170px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 44px rgba(20, 30, 60, 0.16);
  opacity: 0;
  transform: translateY(-44%) scale(0.96);
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.24, 1), opacity 160ms ease;
}

.phone.calendar-open .calendar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.phone.calendar-open .calendar-sheet {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.calendar-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.calendar-sheet-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 720;
}

.calendar-sheet-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.calendar-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7a8496;
  background: #f2f5fa;
}

.calendar-close svg {
  width: 18px;
  height: 18px;
}

.calendar-close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.calendar-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  padding-right: 2px;
  scrollbar-width: none;
}

.calendar-list::-webkit-scrollbar {
  display: none;
}

.calendar-event {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
}

.calendar-event.is-next {
  border-color: rgba(59, 56, 184, 0.18);
  background: #f6f7ff;
}

.event-time {
  color: var(--indigo);
  font-size: 13px;
  font-weight: 760;
}

.calendar-event h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.calendar-event p {
  margin: 6px 0 0;
  color: #5f697b;
  font-size: 12.5px;
  line-height: 1.4;
}

.calendar-event div span {
  display: block;
  margin-top: 8px;
  color: #8a95a8;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 600;
}

.review-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-height: 72%;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: 8px 18px 18px;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -18px 44px rgba(20, 30, 60, 0.18);
  transform: translateY(104%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.24, 1);
}

.phone.review-open .review-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.phone.review-open .review-sheet {
  transform: translateY(0);
}

.phone.chat-detail .top-header,
.phone.chat-detail .flow-card,
.phone.chat-detail .inbox-card,
.phone.chat-detail .latest-message-card,
.phone.chat-detail .new-todo-card,
.phone.chat-detail .new2-message-thread,
.phone.chat-detail .assistant-module,
.phone.chat-detail .vote-nudge-row,
.phone.chat-detail .app-strip {
  display: none;
}

.phone.chat-detail .chat-detail-header {
  display: grid;
  animation: chatSlideIn 220ms ease both;
}

.phone.chat-detail .chat-history {
  display: flex;
  animation: chatSlideIn 220ms ease both;
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.phone.chat-detail .review-backdrop {
  display: none;
}

.phone.chat-detail .review-sheet {
  left: 17px;
  right: 17px;
  bottom: 108px;
  max-height: min(500px, calc(100% - 176px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 44px rgba(20, 30, 60, 0.18);
  transform: translateY(calc(100% + 128px));
}

.phone.chat-detail.review-open .review-sheet {
  transform: translateY(0);
}

.phone.chat-detail .sheet-handle {
  display: none;
}

.phone.chat-detail .action-card {
  min-height: 238px;
}

.review-sheet.is-complete .queue-status,
.review-sheet.is-complete .sheet-actions {
  display: none;
}

.review-sheet.is-complete .action-card-wrap {
  margin-top: 16px;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #d7deeb;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sheet-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 720;
}

.sheet-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.sheet-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7a8496;
  background: #f2f5fa;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
}

.sheet-close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.queue-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.queue-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.queue-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.queue-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #d5ddeb;
  transition: width 180ms ease, background 180ms ease;
}

.queue-dots span.is-active {
  width: 16px;
  background: var(--indigo);
}

.action-card-wrap {
  min-height: 0;
  display: grid;
  align-items: stretch;
  margin-top: 12px;
}

.action-card {
  display: none;
  min-height: 256px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%),
    #fff;
  box-shadow: 0 4px 16px rgba(40, 55, 100, 0.07);
}

.action-card.is-active {
  display: flex;
  flex-direction: column;
}

.action-card.is-processing {
  border-color: rgba(59, 56, 184, 0.22);
}

.action-kicker {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--indigo);
  background: var(--indigo-soft);
  font-size: 11px;
  font-weight: 760;
}

.action-card h3 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.18;
  font-weight: 740;
}

.action-card p {
  margin: 10px 0 0;
  color: #5a6072;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 480;
}

.action-context {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.action-context span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #687386;
  background: #f2f5fa;
  font-size: 11.5px;
  font-weight: 650;
}

.action-context span.is-positive {
  color: #1f8f5f;
  background: rgba(43, 181, 115, 0.14);
}

.action-context .action-meta {
  padding: 6px 0;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
}

.action-context .action-meta b {
  color: var(--ink);
  font-weight: 700;
}

.action-feedback {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 13px;
  color: var(--indigo);
  background: var(--indigo-soft);
  font-size: 12.5px;
  font-weight: 650;
}

.action-card.is-processing .action-feedback {
  display: flex;
}

.action-feedback::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(59, 56, 184, 0.22);
  border-top-color: var(--indigo);
  animation: spin 0.9s linear infinite;
}

.send-confirm-card {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dfe6f2;
  border-radius: 16px;
  background: #f7f9fd;
}

.send-label {
  margin-bottom: 8px;
  color: #8a95a8;
  font-size: 11px;
  font-weight: 720;
}

.send-draft {
  color: #242938;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 480;
}

.send-draft:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(130, 153, 255, 0.18);
}

.done-card {
  min-height: 190px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.done-check {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2bb573;
  box-shadow: 0 10px 24px rgba(43, 181, 115, 0.24);
}

.done-check svg {
  width: 31px;
  height: 31px;
}

.done-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.done-card h3 {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 740;
}

.sheet-result {
  margin-top: 12px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 650;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sheet-actions button {
  min-height: 44px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 700;
}

.sheet-actions button:disabled {
  cursor: default;
  opacity: 0.62;
}

.sheet-secondary {
  color: #5a6072;
  background: #f2f5fa;
}

.sheet-primary {
  color: #fff;
  background: var(--indigo);
}

.sheet-actions.is-done {
  grid-template-columns: 1fr;
}

.sheet-actions.is-done .sheet-secondary {
  display: none;
}

.flow-card {
  margin-top: 0;
  padding: 16px 16px 10px;
  border-radius: 20px;
}

.phone.scenario-new .flow-card {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  overflow: visible;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.phone.scenario-new0 .flow-card {
  margin-bottom: 0;
  padding-bottom: 16px;
}

.new0-greeting {
  display: none;
  margin: 8px 2px 18px;
  color: #171b27;
  font-weight: 400;
}

.phone.scenario-new0 .new0-greeting {
  display: grid;
  gap: 6px;
}

.greeting-avatar {
  display: none;
}

.greeting-profile-copy {
  display: none;
}

.greeting-copy {
  display: grid;
  gap: 6px;
}

.greeting-copy strong {
  color: #171b27;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 400;
}

.greeting-copy small {
  color: #8e98a8;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 400;
}

.new0-summary-card {
  display: none;
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 20px;
}

.phone.scenario-new0 .new0-summary-card {
  display: grid;
  gap: 0;
}

.summary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(126, 143, 164, 0.14);
}

.summary-card-title {
  margin: 0;
  color: #919cad;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

.summary-assistant-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.summary-assistant-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.summary-assistant-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 18px rgba(58, 143, 211, 0.12);
}

.summary-assistant-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.summary-assistant-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.summary-assistant-title strong {
  color: #16171a;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 500;
}

.summary-assistant-title span {
  color: #8e98a8;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 400;
}

.summary-notify-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #65686f;
  background: #f5f7fb;
  transition: color 160ms ease, background 160ms ease;
}

.summary-notify-toggle svg {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
}

.summary-notify-toggle .notify-icon-off {
  display: none;
}

.summary-notify-toggle.is-off {
  color: #a2a9b6;
  background: #eef1f6;
}

.summary-notify-toggle.is-off .notify-icon-on {
  display: none;
}

.summary-notify-toggle.is-off .notify-icon-off {
  display: block;
}

.summary-notify-toggle path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.greeting-notify-toggle {
  display: none;
}

.phone.summary-v999 .top-header {
  justify-content: space-between;
  min-height: 40px;
}

.phone.summary-v999 .assistant-profile {
  order: 2;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 0;
}

.phone.summary-v999 .workspace-button {
  order: 1;
}

.phone.summary-v999 .assistant-avatar,
.phone.summary-v999 .assistant-unread,
.phone.summary-v999 .assistant-title {
  display: none;
}

.phone.summary-v999 .flow-menu-button {
  width: 36px;
  height: 36px;
  display: none;
}

.phone.summary-v999 .new0-greeting {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 16px;
}

.phone.summary-v999 .greeting-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 18px rgba(58, 143, 211, 0.12);
}

.phone.summary-v999 .greeting-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.phone.summary-v999 .greeting-profile-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.phone.summary-v999 .greeting-profile-copy strong {
  color: #16171a;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 500;
}

.phone.summary-v999 .greeting-profile-copy small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8e98a8;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 400;
}

.phone.summary-v999 .greeting-profile-copy small i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: #27b06e;
}

.phone.summary-v999 .greeting-copy {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.phone.summary-v999 .greeting-copy small {
  display: none;
}

.phone.summary-v999 .greeting-notify-toggle {
  display: grid;
  justify-self: end;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(126, 143, 164, 0.22);
}

.phone.summary-v999 .summary-card-header > .summary-notify-toggle {
  display: none;
}

.phone.summary-v999 .new0-summary-card {
  padding-top: 14px;
}

.phone.summary-v999 .summary-assistant-row {
  display: none;
}

.phone.summary-v999 .flow-drawer {
  right: 0;
  left: auto;
  border-radius: 34px 0 0 34px;
  box-shadow: -18px 0 48px rgba(42, 55, 75, 0.16);
  transform: translateX(calc(100% + 18px));
}

.phone.summary-v999.flow-drawer-open .flow-drawer {
  transform: translateX(0);
}

.phone.summary-bare .new0-summary-card,
.phone.summary-bare .flow-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.phone.summary-bare {
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 44%, #f8fbff 58%, #eef5fd 78%, #e9f0fa 100%),
    #e9f0fa;
}

.phone.summary-bare .new0-summary-card {
  margin-top: 4px;
  margin-bottom: 34px;
  padding: 0 2px;
}

.phone.summary-bare .new0-greeting {
  margin-bottom: 4px;
}

.phone.summary-bare .flow-card {
  padding: 0 2px 18px;
}

.phone.summary-bare .summary-card-header,
.phone.summary-bare .section-head {
  padding-bottom: 4px;
  border-bottom: 0;
}

.phone.summary-bare .summary-card-header {
  margin-bottom: 26px;
}

.phone.summary-bare .flow-filter-tabs {
  margin-top: 2px;
}

.phone.summary-bare .summary-message-list {
  gap: 24px;
}

.phone.summary-bare .summary-message-row {
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 0;
}

.phone.summary-bare .summary-message-row .summary-type {
  display: none;
}

.phone.summary-bare .summary-kicker svg {
  grid-row: 1;
  width: 17px;
  height: 17px;
  margin-top: 4px;
}

.phone.summary-bare .summary-message-row .summary-main {
  grid-row: 1;
}

.phone.summary-bare.summary-clear .summary-clear-state {
  grid-template-columns: 26px minmax(0, 1fr);
  justify-items: start;
  column-gap: 12px;
  row-gap: 6px;
  padding: 0 2px;
  text-align: left;
}

.phone.summary-bare.summary-clear .clear-check {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  margin-top: 0;
  color: #1fa66c;
  background: rgba(31, 166, 108, 0.1);
}

.phone.summary-bare.summary-clear .clear-check svg {
  width: 21px;
  height: 21px;
}

.phone.summary-bare.summary-clear .summary-clear-state strong {
  grid-column: 2;
  margin-top: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 560;
}

.phone.summary-bare.summary-clear .summary-clear-state p {
  grid-column: 2;
  max-width: 100%;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  white-space: normal;
}

.phone.summary-bare.summary-clear .clear-archive-button {
  grid-column: 2;
  margin-top: 8px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #667085;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.phone.summary-bare.summary-clear .clear-archive-button svg {
  display: block;
  width: 14px;
  height: 14px;
}

.phone.summary-bare.summary-clear .clear-archive-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-label {
  color: #919cad;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
}

.summary-message-list {
  display: grid;
  gap: 22px;
}

.summary-clear-state {
  display: none;
  justify-items: center;
  gap: 0;
  padding: 10px 8px 2px;
  text-align: center;
}

.summary-clear-state strong {
  color: #16171a;
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 700;
}

.summary-clear-state p {
  max-width: none;
  margin: 14px 0 0;
  color: #65686f;
  font-size: 17px;
  line-height: 1.48;
  font-weight: 400;
  white-space: nowrap;
}

.summary-clear-state small {
  margin-top: 22px;
  color: #9ba1ad;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 560;
}

.clear-check {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1ea66d;
  background: #eef5f1;
}

.clear-check svg {
  width: 29px;
  height: 29px;
}

.clear-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clear-archive-button {
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 16px;
  color: #16171a;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(120, 128, 145, 0.16), 0 4px 12px rgba(40, 55, 100, 0.04);
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
}

.clear-archive-button svg {
  display: none;
}

.phone.summary-clear .summary-updates {
  display: none;
}

.phone.summary-clear .summary-clear-state {
  display: grid;
}

.summary-message-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 7px;
  align-items: start;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.summary-message-row span {
  display: inline;
  margin-right: 3px;
  padding: 0;
  border-radius: 0;
  color: #697487;
  background: transparent;
  font-size: 15px;
  line-height: 1.56;
  font-weight: 620;
  white-space: nowrap;
  vertical-align: baseline;
}

.summary-message-row .summary-kicker {
  display: contents;
  color: #8b95a6;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

.summary-message-row .summary-type {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

.summary-remind .summary-kicker {
  color: #d84545;
}

.summary-kicker svg {
  grid-column: 1;
  grid-row: 1;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.summary-kicker path,
.summary-kicker circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-progress .summary-kicker {
  color: #20a66a;
}

.summary-action .summary-kicker {
  color: #e4933a;
}

.summary-message-row strong {
  display: inline;
  color: #171b27;
  font-size: 15px;
  line-height: 1.56;
  font-weight: 400;
}

.summary-message-row .summary-main {
  grid-column: 2;
  grid-row: 2;
  display: block;
  color: #65686f;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
}

.summary-main b {
  color: #16171a;
  font-weight: 650;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(126, 143, 164, 0.14);
}

.section-head h2 {
  margin: 0;
  color: #919cad;
  font-size: 14px;
  font-weight: 400;
}

.section-head button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8f9aab;
  background: transparent;
  font-size: 13px;
  font-weight: 560;
}

.section-head svg {
  width: 19px;
  height: 19px;
}

.section-head path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-head .flow-create-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #8f9aab;
  border-radius: 50%;
}

.section-head .flow-create-button svg {
  width: 22px;
  height: 22px;
}

.section-head .flow-create-button circle,
.section-head .flow-create-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-filter-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 8px -2px 10px;
  padding: 0 2px 2px;
  scrollbar-width: none;
}

.flow-filter-tabs::-webkit-scrollbar {
  display: none;
}

.flow-filter-tabs button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #7f8a9b;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(126, 143, 164, 0.18);
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
}

.flow-filter-tabs button.is-active {
  color: #141824;
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 55, 75, 0.08);
}

.flow-list {
  display: grid;
}

.new-flow-extra {
  display: none;
}

.phone.scenario-new .new-flow-extra {
  display: grid;
}

.flow-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 2px;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 16px;
  font-weight: 520;
}

.flow-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-status {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 680;
  white-space: nowrap;
}

.status-update {
  color: #326cff;
  background: rgba(50, 108, 255, 0.1);
}

.status-confirm {
  color: #b36a00;
  background: rgba(255, 173, 55, 0.16);
}

.status-quiet {
  color: #7b8798;
  background: #f2f5fa;
}

.phone.scenario-new0 .flow-row {
  min-height: 48px;
  border-bottom: 0;
  font-weight: 400;
}

.phone.scenario-new0 .flow-status {
  position: relative;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  font-size: 0;
}

.phone.scenario-new0 .flow-status::before {
  content: "";
  display: block;
  border-radius: 50%;
}

.phone.scenario-new0 .status-update::before {
  width: 8px;
  height: 8px;
  background: #6da6ff;
}

.phone.scenario-new0 .status-confirm::before {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 178, 43, 0.28);
  border-top-color: #ffb22b;
}

.phone.scenario-new0 .status-quiet::before {
  width: 7px;
  height: 7px;
  background: #aeb7c5;
}

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

.phone.scenario-new0 .flow-row.is-last-visible {
  border-bottom: 0;
}

.dot {
  justify-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-blue {
  background: #8299ff;
}

.spinner {
  justify-self: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: conic-gradient(#ffad37 0 42deg, transparent 42deg 73deg, #ffad37 73deg 115deg, transparent 115deg 146deg, #ffad37 146deg 188deg, transparent 188deg 219deg, #ffad37 219deg 261deg, transparent 261deg 292deg, #ffad37 292deg 334deg, transparent 334deg);
  animation: spin 1.2s linear infinite;
}

.ring {
  justify-self: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #dbe5ff;
  border-top-color: #bfccff;
}

.pager {
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 7px;
}

.pager button {
  width: 14px;
  height: 4px;
  padding: 0;
  border-radius: 999px;
  background: #aebad1;
}

.pager button.is-current {
  width: 24px;
  background: #39477e;
}

.phone.scenario-new .pager {
  display: none;
}

.phone.scenario-new::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(233, 240, 250, 0) 0%,
    rgba(233, 240, 250, 0.7) 28%,
    rgba(233, 240, 250, 0.96) 58%,
    #e9f0fa 100%
  );
}

.message-bar {
  position: relative;
  z-index: 3;
  height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(40, 55, 100, 0.1);
}

.phone.scenario-new .message-bar {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 124px;
  z-index: 5;
  margin-top: 0;
}

.message-bar button {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
}

.message-bar svg {
  width: 25px;
  height: 25px;
}

.message-bar path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.message-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  font-weight: 400;
}

.message-bar input::placeholder {
  color: var(--ink-3, #9098a8);
  opacity: 1;
}

.tab-bar {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(330px, calc(100% - 72px));
  height: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 24px;
  padding: 6px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 2px 12px rgba(40, 55, 100, 0.05);
}

.phone.scenario-new .tab-bar {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  margin-top: 0;
  transform: translateX(-50%);
}

.tab {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  border-radius: 32px;
  font-size: 12px;
  font-weight: 530;
}

.tab.is-active {
  color: var(--indigo);
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 55, 100, 0.08);
}

.tab-icon {
  width: 30px;
  height: 28px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tab-icon rect,
.tab-icon path {
  vector-effect: non-scaling-stroke;
}

.tab-icon rect,
.tab-icon path:first-of-type {
  fill: currentColor;
  stroke: none;
}

.tab:nth-child(2) .tab-icon path,
.tab:nth-child(3) .tab-icon path {
  fill: none;
  stroke: currentColor;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 390px) {
  .phone {
    height: 100vh;
    min-height: 0;
    border-radius: 0;
    padding-left: 15px;
    padding-right: 15px;
  }

  .top-header {
    gap: 10px;
    padding: 16px 2px 18px;
  }

  .workspace-button {
    gap: 4px;
    font-size: 14px;
  }

  .assistant-card {
    padding-left: 6px;
    padding-right: 6px;
  }

  .assistant-card p {
    font-size: 16px;
  }

  .flow-row {
    font-size: 17px;
  }

  .message-bar input {
    font-size: 20px;
  }

  .tab-bar {
    width: min(330px, calc(100% - 44px));
  }
}

@media (max-width: 466px) {
  .demo-shell {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 8px;
  }

  .summary-state-tabs {
    width: calc(100vw - 18px);
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .summary-state-tab {
    width: auto;
    flex: 1 1 auto;
    text-align: center;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    min-height: 0;
  }
}
