:root {
  --app-width: 390px;
  --app-height: 1128px;
  --page-padding: 20px;
  --status-bar-height: 62px;
  --top-bar-height: 52px;
  --bottom-dock-height: 153px;
  --blue: #147fd9;
  --blue-strong: #176ec7;
  --blue-dark: #123c63;
  --text: #244b6e;
  --muted: #557a98;
  --muted-2: #6d8aa3;
  --line: #d8edfa;
  --soft-card: rgba(255, 255, 255, 0.72);
  --shadow-card: 0 16px 32px rgba(31, 120, 194, 0.1);
  --shadow-soft: 0 8px 18px rgba(31, 120, 194, 0.08);
  --font: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef8ff;
  font-family: var(--font);
  color: var(--blue-dark);
  -webkit-touch-callout: none;
}

button {
  border: 0;
  padding: 0;
  font: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.phone {
  position: relative;
  width: min(calc(100vw - 56px), var(--app-width));
  height: min(calc(100dvh - 56px), var(--app-height));
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(180deg, #f7fcff 0%, #e9f7ff 32%, #f8fdff 72%, #f4faff 100%);
  box-shadow: 0 30px 80px rgba(40, 86, 126, 0.24);
  --top-bar-progress: 0;
}

@supports not (height: 100dvh) {
  body,
  .demo-shell {
    min-height: 100vh;
  }

  .phone {
    height: min(calc(100vh - 56px), var(--app-height));
  }
}

.screen-scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: calc(var(--status-bar-height) + var(--top-bar-height) + env(safe-area-inset-top));
  padding-bottom: calc(var(--bottom-dock-height) + max(12px, env(safe-area-inset-bottom)) + 24px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.top-chrome {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  height: calc(var(--status-bar-height) + var(--top-bar-height) + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: 0 10px 24px rgba(31, 120, 194, calc(var(--top-bar-progress) * 0.08));
}

.top-chrome::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--top-bar-progress);
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.94) 0%, rgba(232, 247, 255, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.top-chrome::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(191, 228, 250, calc(var(--top-bar-progress) * 0.7));
  pointer-events: none;
}

.status-bar,
.top-bar {
  position: relative;
  z-index: 1;
  background: transparent;
}

.status-bar > *,
.top-bar > * {
  position: relative;
  z-index: 1;
}

.status-bar {
  height: calc(var(--status-bar-height) + env(safe-area-inset-top));
  padding: calc(18px + env(safe-area-inset-top)) 25px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1d3557;
  font-size: 15px;
  font-weight: 600;
}

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

.status-icons svg {
  width: 16px;
  height: 16px;
}

.status-icons svg:last-child {
  width: 18px;
  height: 18px;
}

.top-bar {
  height: var(--top-bar-height);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--blue-strong);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(49, 134, 207, 0.08);
}

.nav-btn svg {
  width: 19px;
  height: 19px;
}

.family-switch {
  width: min(220px, calc(100vw - 132px));
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.family-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #163a5f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.family-name svg {
  width: 14px;
  height: 14px;
  color: var(--blue-strong);
}

.hero {
  position: relative;
  z-index: 1;
  height: 178px;
  overflow: visible;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 540px;
  height: 260px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(204, 239, 255, 0.76) 0%,
    rgba(232, 248, 255, 0.52) 46%,
    rgba(255, 255, 255, 0) 78%
  );
}

.glow {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

.glow.blue {
  left: -88px;
  top: 24px;
  width: 250px;
  height: 220px;
  background: rgba(116, 201, 255, 0.18);
  filter: blur(30px);
}

.glow.white {
  left: 146px;
  top: 118px;
  width: 234px;
  height: 174px;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(24px);
}

.hero-copy {
  position: absolute;
  left: 22px;
  top: 66px;
  z-index: 2;
  width: clamp(180px, 56vw, 220px);
}

.hero-copy h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(25px, 7.4vw, 29px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ip-halo {
  position: absolute;
  z-index: 1;
  left: auto;
  right: 25px;
  top: 48px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  filter: blur(8px);
}

.ip-image {
  position: absolute;
  z-index: 2;
  left: auto;
  right: 10px;
  top: 10px;
  width: min(42vw, 165px);
  height: 247px;
  object-fit: contain;
  object-position: center top;
}

.ip-badge {
  position: absolute;
  z-index: 3;
  left: auto;
  right: 44px;
  top: 148px;
  width: 97px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dceffb;
  box-shadow: 0 8px 18px rgba(31, 120, 194, 0.08);
  font-size: 10px;
  font-weight: 700;
}

.home-content {
  position: relative;
  z-index: 3;
  min-height: 727px;
  padding: 0 var(--page-padding) 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-board {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 252, 255, 0.8) 55%, rgba(234, 247, 255, 0.72) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(31, 120, 194, 0.1);
  transition:
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.board-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--blue-dark);
}

.section-bar {
  width: 4px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blue), #756fff);
}

.board-heading strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.board-heading .sync {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease-out;
}

.sync-btn {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #8aa2b5;
}

.sync-btn svg {
  width: 14px;
  height: 14px;
}

.sync-btn.is-spinning svg {
  animation: syncSpin 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes syncSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fold-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(31, 120, 194, 0.1);
}

.fold-btn svg {
  width: 16px;
  height: 16px;
}

.expand-btn {
  display: none;
  width: 96px;
  height: 32px;
  padding: 0;
  border-radius: 16px;
  color: #315c7d;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(31, 120, 194, 0.08);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 96px;
  text-align: center;
  vertical-align: middle;
}

.expand-label {
  display: block;
  line-height: 1;
  flex: 0 0 auto;
}

.expand-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: block;
  transform: none;
  stroke-width: 2.3;
}

.expanded-body,
.collapsed-body {
  display: grid;
  overflow: hidden;
  transition:
    grid-template-rows 260ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: grid-template-rows;
}

.expanded-body {
  grid-template-rows: 1fr;
  margin-top: 18px;
}

.expanded-body-inner,
.collapsed-body-inner {
  min-height: 0;
  overflow: hidden;
}

.expanded-body-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 180ms ease-out,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.metric {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 20px;
  background: #f3faff;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.metric span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.metric strong {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.metric:nth-child(2) strong {
  color: var(--blue);
}

.service-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-lines div {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.service-lines svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: 0 0 auto;
}

.board-actions {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-btn,
.secondary-btn {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 800;
}

.primary-btn {
  color: white;
  background: var(--blue);
}

.primary-btn:disabled {
  color: rgba(255, 255, 255, 0.86);
  cursor: not-allowed;
  background: #b9d2e5;
  box-shadow: none;
}

.primary-btn.is-disabled {
  color: rgba(255, 255, 255, 0.86);
  background: #b9d2e5;
  box-shadow: none;
}

.secondary-btn {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dceffb;
}

.primary-btn svg,
.secondary-btn svg {
  width: 15px;
  height: 15px;
}

.service-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  color: var(--muted);
  background: #f3faff;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.service-tip svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: 0 0 auto;
}

.service-tip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.collapsed-body {
  grid-template-rows: 0fr;
  margin-top: 0;
  pointer-events: none;
}

.collapsed-body-inner {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 170ms ease-out,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.collapsed-actions {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-board.is-collapsed .expanded-body {
  grid-template-rows: 0fr;
  margin-top: 0;
  pointer-events: none;
}

.service-board.is-collapsed .expanded-body-inner {
  opacity: 0;
  transform: translateY(-8px);
}

.service-board.is-collapsed .fold-btn {
  display: none;
}

.service-board.is-collapsed .expand-btn {
  display: inline-flex;
}

.service-board.is-collapsed .collapsed-body {
  grid-template-rows: 1fr;
  margin-top: 10px;
  pointer-events: auto;
}

.service-board.is-collapsed .collapsed-body-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 50ms;
}

.inspiration h2 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 700;
}

.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-card {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 22px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  transition:
    transform 140ms ease-out,
    background-color 140ms ease-out,
    box-shadow 140ms ease-out;
}

.prompt-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--blue);
  background: #eaf6ff;
}

.prompt-card svg {
  width: 17px;
  height: 17px;
}

.prompt-card i {
  color: #8aa2b5;
  font-style: normal;
  font-size: 18px;
  justify-self: end;
}

.feedback {
  display: none;
  margin-top: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  color: #315c7d;
  background: rgba(237, 248, 255, 0.94);
  border: 1px solid #cdeafb;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 700;
}

.feedback.show {
  display: block;
}

.message-stack {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.message-stack.has-messages {
  display: flex;
  margin-top: 28px;
}

.user-bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 18px 18px 6px 18px;
  color: #fff;
  background: linear-gradient(90deg, #147fd9 0%, #48a8f5 100%);
  box-shadow: 0 10px 22px rgba(31, 120, 194, 0.18);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.message-stack .invoice-ai-row,
.conversation-query,
.conversation-task-card {
  width: 100%;
  align-self: stretch;
}

.conversation-task-card {
  padding-left: 0;
}

.conversation-task-card .invoice-task-card,
.conversation-task-card .invoice-progress-card {
  width: 100%;
}

.service-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: calc(var(--bottom-dock-height) + max(0px, env(safe-area-inset-bottom)));
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0) 0%, rgba(248, 253, 255, 0.96) 24%, #f8fdff 100%);
}

.quick-strip {
  position: absolute;
  left: 0;
  top: 22px;
  width: 100%;
  height: 56px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 48px 0 var(--page-padding);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--page-padding);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.quick-strip::-webkit-scrollbar {
  display: none;
}

.quick-strip button {
  flex: 0 0 76px;
  height: 34px;
  border-radius: 17px;
  color: #1769b6;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(31, 120, 194, 0.08);
  font-size: 13px;
  font-weight: 700;
  scroll-snap-align: start;
  transition:
    transform 140ms ease-out,
    background-color 140ms ease-out,
    box-shadow 140ms ease-out;
}

.voice-pill {
  position: absolute;
  left: var(--page-padding);
  right: var(--page-padding);
  bottom: max(18px, env(safe-area-inset-bottom));
  width: auto;
  height: 56px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(90deg, #1f78c2 0%, #48a8f5 100%);
  border: 1px solid #78c7ff;
  box-shadow: 0 10px 22px rgba(31, 120, 194, 0.14);
  touch-action: none;
}

.input-pill {
  position: absolute;
  left: var(--page-padding);
  right: var(--page-padding);
  bottom: max(18px, env(safe-area-inset-bottom));
  height: 56px;
  display: grid;
  grid-template-columns: 40px 1fr 32px 40px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.91);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(31, 120, 194, 0.1);
  transition:
    grid-template-columns 200ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 160ms ease-out,
    box-shadow 160ms ease-out;
}

.input-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--blue-strong);
  background: #eaf6ff;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease-out,
    background-color 180ms ease-out,
    color 180ms ease-out;
}

.input-icon svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.mic-action {
  width: 28px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.mic-action svg {
  width: 21px;
  height: 21px;
}

.input-main {
  position: relative;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-items: center;
}

.input-main input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  font: 700 14px/1.2 var(--font);
}

.input-main input::placeholder {
  color: #7a97ad;
}

.convert-label {
  display: none;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 700;
}

.voice-label {
  display: none;
  justify-self: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.input-pill .wave {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: none;
}

.input-pill .wave i {
  background: var(--blue-strong);
}

.icon-keyboard,
.icon-pause,
.icon-loading,
.icon-send {
  opacity: 0;
  transform: scale(0.86);
}

.input-pill.is-voice {
  grid-template-columns: 40px 1fr 40px;
  color: #fff;
  background: linear-gradient(90deg, #1f78c2 0%, #48a8f5 100%);
  border-color: #78c7ff;
  box-shadow: 0 10px 22px rgba(31, 120, 194, 0.14);
}

.input-pill.is-voice .input-main input,
.input-pill.is-voice .convert-label,
.input-pill.is-voice .mic-action {
  display: none;
}

.input-pill.is-voice .voice-label {
  display: block;
}

.input-pill.is-voice .input-icon {
  background: rgba(255, 255, 255, 0.92);
}

.input-pill.is-voice .icon-wave,
.input-pill.is-voice .icon-pause,
.input-pill.is-voice .icon-loading,
.input-pill.is-voice .icon-send {
  opacity: 0;
  transform: scale(0.86);
}

.input-pill.is-voice .icon-keyboard,
.input-pill.is-voice .icon-plus {
  opacity: 1;
  transform: scale(1);
}

.input-pill.is-text {
  grid-template-columns: 0 1fr 32px 40px;
}

.input-pill.is-text .left-action {
  opacity: 0;
  transform: translateX(-8px) scale(0.88);
  pointer-events: none;
}

.input-pill.is-empty .icon-keyboard,
.input-pill.is-empty .icon-pause,
.input-pill.is-empty .icon-loading,
.input-pill.is-empty .icon-send,
.input-pill.is-text .icon-keyboard,
.input-pill.is-text .icon-wave,
.input-pill.is-text .icon-pause,
.input-pill.is-text .icon-loading,
.input-pill.is-listening .icon-keyboard,
.input-pill.is-converting .icon-keyboard,
.input-pill.is-text .icon-plus,
.input-pill.is-listening .icon-plus,
.input-pill.is-converting .icon-plus {
  opacity: 0;
  transform: scale(0.86);
}

.input-pill.is-text .icon-send,
.input-pill.is-listening .icon-send,
.input-pill.is-converting .icon-send {
  opacity: 1;
  transform: scale(1);
}

.input-pill.is-text .tail-action,
.input-pill.is-listening .tail-action {
  color: #fff;
  background: var(--blue);
}

.input-pill.is-listening {
  grid-template-columns: 40px 1fr 0 40px;
}

.input-pill.is-listening .input-main,
.input-pill.is-listening .mic-action {
  opacity: 0;
  pointer-events: none;
}

.input-pill.is-listening .wave {
  display: flex;
}

.input-pill.is-listening .icon-wave,
.input-pill.is-listening .icon-loading,
.input-pill.is-converting .icon-wave,
.input-pill.is-converting .icon-pause {
  opacity: 0;
  transform: scale(0.86);
}

.input-pill.is-listening .icon-pause,
.input-pill.is-converting .icon-loading {
  opacity: 1;
  transform: scale(1);
}

.input-pill.is-converting {
  grid-template-columns: 40px 1fr 0 40px;
}

.input-pill.is-converting .input-main input,
.input-pill.is-converting .mic-action,
.input-pill.is-converting .wave {
  display: none;
}

.input-pill.is-converting .convert-label {
  display: block;
}

.input-pill.is-converting .tail-action {
  color: rgba(138, 162, 181, 0.66);
  background: #f1f7fb;
  pointer-events: none;
}

.input-pill.is-converting .icon-loading {
  animation: syncSpin 720ms linear infinite;
}

.service-dock.is-recording .quick-strip,
.service-dock.is-canceling .quick-strip {
  display: none;
}

.service-dock.is-recording .record-tip,
.service-dock.is-canceling .record-tip {
  display: block;
}

.service-dock.is-canceling .record-tip {
  color: #d85a61;
  font-weight: 700;
}

.input-pill.is-recording,
.input-pill.is-canceling {
  grid-template-columns: 1fr;
  place-items: center;
  justify-content: center;
  padding: 0;
}

.input-pill.is-recording {
  background: linear-gradient(90deg, #1f78c2 0%, #48a8f5 100%);
  border-color: #78c7ff;
}

.input-pill.is-canceling {
  background: linear-gradient(90deg, #ef5f67 0%, #ff8a8f 100%);
  border-color: #ffb0b3;
}

.input-pill.is-recording .input-icon,
.input-pill.is-canceling .input-icon,
.input-pill.is-recording .input-main,
.input-pill.is-canceling .input-main,
.input-pill.is-recording .mic-action,
.input-pill.is-canceling .mic-action,
.input-pill.is-recording .tail-action,
.input-pill.is-canceling .tail-action {
  display: none;
}

.input-pill.is-recording .wave,
.input-pill.is-canceling .wave {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  justify-content: center;
  width: 132px;
  max-width: 40%;
  display: flex;
}

.input-pill.is-recording .wave i,
.input-pill.is-canceling .wave i {
  background: rgba(255, 255, 255, 0.94);
}

.pill-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
}

.pill-icon svg {
  width: 20px;
  height: 20px;
}

.voice-copy {
  justify-self: center;
  font-size: 15px;
  font-weight: 800;
}

.record-tip {
  position: absolute;
  left: 0;
  right: 0;
  top: 47px;
  display: none;
  text-align: center;
  color: #6d8aa3;
  font-size: 12px;
  font-weight: 600;
}

.wave {
  display: none;
  justify-self: center;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.wave i {
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  animation: wavePulse 760ms ease-in-out infinite;
}

.wave i:nth-child(1) { height: 10px; animation-delay: -120ms; opacity: .72; }
.wave i:nth-child(2) { height: 18px; animation-delay: -220ms; }
.wave i:nth-child(3) { height: 24px; animation-delay: -80ms; opacity: .86; }
.wave i:nth-child(4) { height: 15px; animation-delay: -300ms; }
.wave i:nth-child(5) { height: 30px; animation-delay: -160ms; }
.wave i:nth-child(6) { height: 22px; animation-delay: -260ms; opacity: .9; }
.wave i:nth-child(7) { height: 34px; animation-delay: -40ms; }
.wave i:nth-child(8) { height: 26px; animation-delay: -190ms; opacity: .9; }
.wave i:nth-child(9) { height: 18px; animation-delay: -90ms; }
.wave i:nth-child(10) { height: 31px; animation-delay: -250ms; }
.wave i:nth-child(11) { height: 16px; animation-delay: -130ms; opacity: .86; }
.wave i:nth-child(12) { height: 22px; animation-delay: -310ms; }
.wave i:nth-child(13) { height: 12px; animation-delay: -210ms; opacity: .72; }
.wave i:nth-child(14) { height: 18px; animation-delay: -60ms; opacity: .9; }

@keyframes wavePulse {
  0%, 100% {
    transform: scaleY(0.72);
  }
  50% {
    transform: scaleY(1.12);
  }
}

.service-dock.is-recording .quick-strip,
.service-dock.is-canceling .quick-strip {
  display: none;
}

.service-dock.is-recording .record-tip,
.service-dock.is-canceling .record-tip {
  display: block;
}

.service-dock.is-recording .voice-pill,
.service-dock.is-canceling .voice-pill {
  top: auto;
  bottom: 18px;
  grid-template-columns: 1fr;
  padding: 0;
}

.service-dock.is-recording .pill-icon,
.service-dock.is-canceling .pill-icon,
.service-dock.is-recording .voice-copy,
.service-dock.is-canceling .voice-copy {
  display: none;
}

.service-dock.is-recording .wave,
.service-dock.is-canceling .wave {
  display: flex;
}

.service-dock.is-canceling .record-tip {
  color: #d85a61;
  font-weight: 700;
}

.service-dock.is-canceling .voice-pill {
  background: linear-gradient(90deg, #ef5f67 0%, #ff8a8f 100%);
  border-color: #ffb0b3;
  box-shadow: 0 10px 22px rgba(239, 95, 103, 0.15);
}

[data-feedback]:active,
.prompt-card:active {
  transform: scale(0.985);
}

.prompt-card:active {
  background: rgba(234, 246, 255, 0.92);
  box-shadow: 0 8px 18px rgba(31, 120, 194, 0.1);
}

.quick-strip button:active {
  transform: scale(0.96);
  background: #f3faff;
  box-shadow: 0 2px 6px rgba(31, 120, 194, 0.08);
}

.quick-strip.is-dragging {
  cursor: grabbing;
}

.phone.is-invoice-flow .hero,
.phone.is-invoice-flow .home-content {
  display: none;
}

.invoice-content {
  min-height: 100%;
  padding: 22px var(--page-padding) 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invoice-context-card,
.invoice-task-card,
.invoice-progress-card {
  width: 100%;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.invoice-context-card {
  padding: 14px 16px;
}

.invoice-context-card small,
.invoice-task-card small,
.invoice-progress-card small {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.invoice-context-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invoice-context-row strong {
  color: var(--blue-dark);
  font-size: 16px;
  line-height: 1.25;
}

.status-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--blue);
  background: #eaf6ff;
  font-size: 12px;
  font-weight: 800;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.invoice-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invoice-user-row {
  display: flex;
  justify-content: flex-end;
}

.invoice-ai-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 7px;
  align-items: start;
}

.invoice-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #eaf6ff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 14px rgba(31, 120, 194, 0.1);
}

.invoice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.invoice-ai-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.invoice-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 15px 15px 15px 5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 14px rgba(31, 120, 194, 0.07);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
}

.invoice-query {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 15px;
  color: var(--muted);
  background: rgba(235, 248, 255, 0.88);
  border: 1px solid #d7eefb;
  font-size: 12px;
  font-weight: 700;
}

.invoice-query::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(20, 127, 217, 0.34);
  animation: invoicePulse 1.2s ease-out infinite;
}

@keyframes invoicePulse {
  100% { box-shadow: 0 0 0 10px rgba(20, 127, 217, 0); }
}

.invoice-task-card,
.invoice-progress-card {
  padding: 12px;
}

.conversation-task-card .invoice-task-card.is-new {
  width: 100%;
  max-width: none;
  padding: 18px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(100, 176, 229, 0.2);
}

.conversation-task-card .invoice-task-card.is-submitted {
  width: 100%;
  max-width: none;
  padding: 14px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(100, 176, 229, 0.2);
}

.invoice-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invoice-card-title h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 800;
}

.conversation-task-card .invoice-task-card.is-new .invoice-card-title h3 {
  color: #123c63;
  font-size: 18px;
  line-height: 1.2;
}

.conversation-task-card .invoice-task-card.is-new .invoice-card-title {
  justify-content: flex-start;
  gap: 9px;
}

.conversation-task-card .invoice-task-card.is-submitted .invoice-card-title {
  justify-content: flex-start;
  gap: 10px;
}

.conversation-task-card .invoice-task-card.is-submitted .invoice-card-title h3 {
  color: #103b5c;
  font-size: 18px;
  line-height: 1.2;
}

.conversation-task-card .invoice-task-card.is-submitted .invoice-card-title p {
  margin-top: 2px;
  color: #6d8aa3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.32;
}

.invoice-title-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  color: var(--blue);
  background: #e9f6ff;
}

.invoice-title-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.invoice-card-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.conversation-task-card .invoice-task-card.is-new .invoice-card-title p {
  margin-top: 2px;
  color: #6f8da5;
  font-size: 12px;
  line-height: 1.32;
}

.invoice-fields {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversation-task-card .invoice-task-card.is-new .invoice-fields {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invoice-info-box {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 18px;
  color: #7195af;
  background: #f4fbff;
  border: 1px solid #e2f2fc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.invoice-info-box.is-highlight {
  background: #eaf7ff;
  border-color: #bfe4fa;
}

.invoice-info-box strong {
  color: #123c63;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.invoice-info-box.is-highlight strong {
  font-size: 16px;
}

.invoice-inline-row {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: #446b84;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.invoice-inline-row svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--blue);
  stroke-width: 2.2;
}

.invoice-support-line {
  min-height: 42px;
  justify-content: flex-start;
  padding: 11px 13px;
  border-radius: 17px;
  background: #f4fbff;
  border: 1px solid #e2f2fc;
}

.invoice-field {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f3faff;
  border: 1px solid rgba(216, 237, 250, 0.82);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field {
  min-height: 56px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(246, 251, 255, 0.92);
  border: 1px solid #cfeafa;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(3) {
  min-height: 22px;
  padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(3)::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
  background: #e9f6ff;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(2) {
  background: rgba(234, 247, 255, 0.96);
  border-color: #aee0fb;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(4) {
  min-height: 34px;
  padding: 8px 10px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  border-radius: 17px;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(4)::before {
  content: "≋";
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
}

.invoice-field strong {
  color: var(--blue-dark);
  font-size: 12px;
  text-align: right;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field strong {
  color: #123c63;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field span {
  color: #7894ad;
  font-size: 10.5px;
  line-height: 1.2;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field span::after {
  content: "：";
}

.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(3) span,
.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(4) span {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(3) strong,
.conversation-task-card .invoice-task-card.is-new .invoice-field:nth-child(4) strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.invoice-submitted-metrics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.invoice-submitted-metrics > div {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px;
  border-radius: 16px;
  background: #f6fbff;
  border: 1px solid #e2f1fa;
}

.invoice-submitted-metrics > div.is-highlight {
  background: #eaf7ff;
  border-color: #bfe4fa;
}

.invoice-submitted-metrics span {
  color: #6a8496;
  font-size: 10px;
  font-weight: 700;
}

.invoice-submitted-metrics strong {
  color: #0e2f4d;
  font-size: 16px;
  font-weight: 800;
}

.invoice-submitted-metrics .is-highlight strong {
  color: #147fd9;
}

.invoice-submitted-progress {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #f4fbff;
  border: 1px solid #e2f2fc;
}

.invoice-submitted-bars {
  height: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.invoice-submitted-bars span {
  border-radius: 3px;
  background: #d7ecfa;
}

.invoice-submitted-bars span:nth-child(1),
.invoice-submitted-bars span:nth-child(2) {
  background: #147fd9;
}

.invoice-submitted-labels {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
}

.invoice-submitted-labels span,
.invoice-submitted-labels strong {
  color: #6a8496;
  font-size: 10px;
  font-weight: 700;
}

.invoice-submitted-labels strong {
  color: #147fd9;
  font-weight: 800;
}

.invoice-submitted-details {
  margin-top: 10px;
}

.invoice-submitted-details > div {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d7ecfa;
}

.invoice-submitted-details > div:last-child {
  border-bottom: 0;
}

.invoice-submitted-details span {
  width: 86px;
  flex: 0 0 auto;
  color: #244b6e;
  font-size: 13px;
  font-weight: 800;
}

.invoice-submitted-details strong {
  min-width: 0;
  color: #446b84;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.invoice-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.invoice-actions.single {
  grid-template-columns: 1fr;
}

.conversation-task-card .invoice-task-card.is-new .invoice-actions {
  margin-top: 12px;
}

.conversation-task-card .invoice-task-card.is-submitted .invoice-actions {
  height: 42px;
  margin-top: 10px;
  gap: 9px;
}

.invoice-task-card .primary-btn,
.invoice-task-card .secondary-btn,
.invoice-progress-card .primary-btn,
.invoice-progress-card .secondary-btn {
  height: 38px;
  border-radius: 19px;
  font-size: 12px;
  font-weight: 700;
}

.conversation-task-card .invoice-task-card.is-new .primary-btn {
  height: 46px;
  border-radius: 23px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(20, 127, 217, 0.25);
}

.conversation-task-card .invoice-task-card.is-submitted .primary-btn,
.conversation-task-card .invoice-task-card.is-submitted .secondary-btn {
  height: 42px;
  border-radius: 23px;
  font-size: 13px;
  font-weight: 800;
}

.conversation-task-card .invoice-task-card.is-submitted .primary-btn {
  box-shadow: 0 10px 20px rgba(20, 127, 217, 0.25);
}

.conversation-task-card .invoice-task-card.is-submitted .secondary-btn {
  color: #147fd9;
  background: #f7fcff;
  border-color: #bfe4fa;
}

.invoice-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.conversation-task-card .invoice-task-card.is-new .invoice-note {
  min-height: 38px;
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 14px;
  color: #557a98;
  background: #f7fcff;
  border: 1px solid #e2f2fc;
  font-size: 12px;
  line-height: 1.35;
}

.conversation-task-card .invoice-task-card.is-submitted .invoice-note {
  min-height: 38px;
  margin-top: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 17px;
  color: #557a98;
  background: #f7fcff;
  border: 1px solid #e2f2fc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.conversation-task-card .invoice-task-card.is-submitted .invoice-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--blue);
}

.conversation-task-card .invoice-task-card.is-submitted .invoice-note span {
  min-width: 0;
}

.conversation-task-card .invoice-task-card.is-new .invoice-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--blue);
  stroke-width: 2;
}

.conversation-task-card .invoice-task-card.is-new .invoice-note span {
  min-width: 0;
}

.invoice-progress-steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.invoice-step {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 16px;
  color: var(--muted-2);
  background: #f3faff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.invoice-step.is-active {
  color: var(--blue);
  background: #e8f5ff;
  border: 1px solid #cdeafb;
}

.invoice-window-layer {
  position: absolute;
  inset: 0;
  z-index: 70;
}

.invoice-window-layer[hidden],
.invoice-content[hidden] {
  display: none;
}

.invoice-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 90;
  max-width: 260px;
  min-width: 168px;
  padding: 12px 16px;
  border-radius: 20px;
  color: #0e2f4d;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 238, 250, 0.96);
  box-shadow: 0 16px 34px rgba(31, 120, 194, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.invoice-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.invoice-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 36, 0.52);
}

.invoice-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: min(calc(100% - 62px), 788px);
  transform: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #f6fcff 0%, #edf8ff 42%, #f9fdff 100%);
  border: 1px solid rgba(255, 255, 255, 0.91);
  box-shadow: 0 -20px 60px rgba(6, 32, 62, 0.24);
}

.invoice-window-layer.is-opening .invoice-scrim {
  animation: invoiceScrimIn 240ms ease-out both;
}

.invoice-window-layer.is-opening .invoice-sheet {
  animation: invoiceSheetSlideUp 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes invoiceScrimIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes invoiceSheetSlideUp {
  from {
    opacity: 0.98;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.invoice-drag-handle {
  width: 46px;
  height: 5px;
  flex: 0 0 auto;
  margin: 14px auto 10px;
  border-radius: 999px;
  background: rgba(18, 60, 99, 0.2);
}

.invoice-sheet-head {
  position: relative;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.invoice-sheet-head > div {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(210px, calc(100% - 116px));
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
}

.invoice-sheet-head strong {
  display: block;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.invoice-sheet-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.sheet-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--blue-strong);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.sheet-icon-btn svg {
  width: 19px;
  height: 19px;
}

.invoice-sheet-body.is-info {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  overflow: hidden;
  overflow-y: hidden;
  padding: 12px 16px 0;
}

.invoice-info-scroll {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 12px;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 0 10px 18px;
  -webkit-overflow-scrolling: touch;
}

.invoice-sheet-body.is-info .sheet-title {
  margin: 0;
}

.invoice-sheet-body.is-info .sheet-title h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.invoice-sheet-body.is-info .sheet-title p {
  margin-top: 8px;
  color: #6a8496;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.invoice-sheet-body.is-info .sheet-card {
  margin-top: 0;
  box-shadow: none;
}

.invoice-sheet-body.is-info .sheet-summary-strip {
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 18px;
  border-color: #d8eefa;
  background: #fff;
}

.invoice-sheet-body.is-info .sheet-summary-strip strong {
  font-size: 17px;
  line-height: 1.25;
}

.invoice-sheet-body.is-info .sheet-summary-strip span {
  font-size: 12px;
}

.invoice-sheet-body.is-info .sheet-form-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border-color: #d8eefa;
  box-shadow: 0 10px 24px rgba(121, 183, 220, 0.19);
  overflow: visible;
}

.invoice-sheet-body.is-info .sheet-form-card h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.25;
}

.invoice-sheet-body.is-info .invoice-form-dynamic {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  transform-origin: top center;
}

.invoice-sheet-body.is-info .invoice-form-dynamic.is-fading-out {
  animation: invoiceFormFadeOut 90ms ease-in forwards;
}

.invoice-sheet-body.is-info .invoice-form-dynamic.is-fading-in {
  animation: invoiceFormFadeIn 160ms ease-out both;
}

@keyframes invoiceFormFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes invoiceFormFadeIn {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.invoice-sheet-body.is-info .sheet-form-card .form-row {
  min-height: 0;
  padding: 0;
  margin-bottom: 0;
  color: #557a98;
  border-bottom: 0;
}

.invoice-sheet-body.is-info .sheet-form-card .form-row:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.invoice-sheet-body.is-info .form-type-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.invoice-sheet-body.is-info .form-row > span,
.invoice-sheet-body.is-info .form-input-row > span {
  color: #0e2f4d;
  font-size: 13px;
  font-weight: 800;
}

.invoice-sheet-body.is-info .form-input-row {
  gap: 7px;
}

.invoice-sheet-body.is-info .radio-pills {
  gap: 8px;
  width: 100%;
}

.invoice-sheet-body.is-info .radio-pills span,
.invoice-sheet-body.is-info .radio-pills button {
  min-width: 58px;
  flex: 1;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 16px;
  color: #446b84;
  background: #f7fcff;
  border: 1px solid #d7ecfa;
  font-size: 13px;
  font-weight: 800;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.invoice-sheet-body.is-info .radio-pills .active {
  color: #1479ce;
  background: #eaf7ff;
  border-color: #1479ce;
  box-shadow: inset 0 0 0 1px rgba(20, 121, 206, 0.08);
  animation: invoiceHeaderTypeSelect 180ms ease-out;
}

@keyframes invoiceHeaderTypeSelect {
  0% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

.invoice-sheet-body.is-info .company-form-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-sheet-body.is-info .company-form-section h4 {
  margin: 0;
  color: #0e2f4d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.invoice-sheet-body.is-info .invoice-helper-strip {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #557a98;
  background: #f7fcff;
  border: 1px solid #e2f2fc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.invoice-sheet-body.is-info .invoice-helper-strip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #1479ce;
}

.invoice-sheet-body.is-info .invoice-helper-strip span {
  min-width: 0;
}

.invoice-sheet-body.is-info .invoice-text-input {
  height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  color: #163e5e;
  background: #f6fbff;
  border-color: #e2f1fa;
  font-size: 14px;
  font-weight: 700;
}

.invoice-sheet-body.is-info .invoice-text-input::placeholder {
  color: #98adbd;
  font-size: 13px;
  font-weight: 700;
}

.invoice-sheet-body.is-info .invoice-email-hint {
  color: #8aa2b5;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

.invoice-sheet-body.is-info .info-strip {
  min-height: 40px;
  margin-top: 0;
  padding: 10px 12px;
  align-items: center;
  border-radius: 18px;
  color: #446b84;
  background: #f7fcff;
  border: 1px solid #e2f2fc;
  font-size: 12px;
  line-height: 1.25;
}

.invoice-sheet-body.is-info .info-strip span {
  min-width: 0;
}

.invoice-sheet-body.is-info .info-strip strong {
  flex: 0 0 auto;
  color: #1479ce;
  font-weight: 800;
}

.invoice-sheet-body.is-info .agreement-strip {
  margin-top: 0;
  justify-content: flex-start;
  background: rgba(234, 247, 255, 0.6);
}

.invoice-sheet-body.is-info .agreement-strip strong {
  width: 18px;
  height: 18px;
  border-radius: 9px;
  color: transparent;
  order: 0;
}

.invoice-sheet-body.is-info .agreement-strip.is-checked strong {
  color: #fff;
  background: #1479ce;
  border-color: #1479ce;
}

.invoice-sheet-body.is-info .agreement-strip span {
  color: #163e5e;
  font-size: 13px;
  font-weight: 800;
}

.invoice-sheet-body.is-info .sheet-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 62px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 10px;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(216, 238, 250, 0.74);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 50%, #f7fcff 100%);
}

.invoice-sheet-body.is-info .sheet-bottom .primary-btn,
.invoice-sheet-body.is-info .sheet-bottom .secondary-btn {
  width: 100%;
  height: 44px;
  margin: 0;
  border-radius: 23px;
  font-size: 15px;
  white-space: nowrap;
}

.invoice-sheet-body.is-info .sheet-bottom .primary-btn {
  background: #1479ce;
  box-shadow: 0 8px 18px rgba(20, 121, 206, 0.24);
}

.invoice-sheet-body.is-info .sheet-bottom .primary-btn.is-disabled {
  background: #b9d2e5;
  box-shadow: none;
}

.invoice-sheet-body.is-info .sheet-bottom .secondary-btn {
  color: #1479ce;
  background: rgba(255, 255, 255, 0.78);
  border-color: #d8eefa;
}

.invoice-sheet-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 12px 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.invoice-sheet-body.is-step-forward {
  animation: invoiceStepForwardIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.invoice-sheet-body.is-step-back {
  animation: invoiceStepBackIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes invoiceStepForwardIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes invoiceStepBackIn {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.invoice-sheet-body > .sheet-title,
.invoice-sheet-body > .sheet-card,
.invoice-sheet-body > .info-strip {
  margin-top: 0;
}

.invoice-sheet-body.is-plan {
  padding-bottom: 0;
}

.invoice-sheet-body.is-confirm {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 12px 16px 0;
}

.invoice-confirm-scroll {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 0 0 18px;
  -webkit-overflow-scrolling: touch;
}

.invoice-sheet-body.is-confirm .sheet-title,
.invoice-sheet-body.is-confirm .sheet-card {
  margin-top: 0;
}

.invoice-sheet-body.is-confirm .sheet-title {
  margin-bottom: 0;
}

.invoice-sheet-body.is-confirm .sheet-confirm-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  box-shadow: 0 10px 24px rgba(121, 183, 220, 0.19);
}

.invoice-sheet-body.is-confirm .sheet-confirm-card h3 {
  margin: 0;
  font-size: 16px;
}

.invoice-sheet-body.is-confirm .confirm-core {
  margin: 0;
}

.invoice-sheet-body.is-confirm .confirm-line {
  min-height: 26px;
  padding: 0;
  color: #244b6e;
  font-size: 13px;
}

.invoice-sheet-body.is-confirm .confirm-line strong {
  color: #446b84;
  font-weight: 700;
}

.invoice-sheet-body.is-confirm .sheet-explain-card {
  padding: 13px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.invoice-sheet-body.is-confirm .sheet-explain-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #163e5e;
  font-size: 14px;
}

.invoice-sheet-body.is-confirm .sheet-explain-card h3 svg {
  width: 16px;
  height: 16px;
  color: #1479ce;
}

.invoice-sheet-body.is-confirm .sheet-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 62px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(216, 238, 250, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 50%, #f7fcff 100%);
}

.invoice-sheet-body.is-confirm .sheet-bottom .primary-btn,
.invoice-sheet-body.is-confirm .sheet-bottom .secondary-btn {
  width: 100%;
  height: 46px;
  margin: 0;
  border-radius: 23px;
  font-size: 15px;
}

.invoice-sheet-body.is-confirm .sheet-bottom .primary-btn {
  background: #1479ce;
  box-shadow: 0 8px 18px rgba(20, 121, 206, 0.3);
}

.invoice-sheet-body.is-confirm .sheet-bottom .secondary-btn {
  color: #1479ce;
  background: #fff;
  border-color: #1479ce;
}

.invoice-sheet-body.is-submitted {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 12px 16px 0;
}

.invoice-submitted-scroll {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 2px 0 18px;
  -webkit-overflow-scrolling: touch;
}

.invoice-sheet-body.is-submitted .sheet-title {
  margin: 0;
}

.submitted-receipt-card,
.submitted-progress-card,
.submitted-hint-card {
  width: 100%;
  border: 1px solid #d8eefa;
  box-shadow: 0 10px 22px rgba(121, 183, 220, 0.16);
}

.submitted-receipt-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
}

.submitted-check {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 21px;
  color: #1479ce;
  background: #eaf7ff;
  border: 1px solid #bfe4fa;
}

.submitted-check svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.8;
}

.submitted-receipt-card h3,
.submitted-progress-card h3,
.submitted-hint-card h3 {
  margin: 0;
  color: #0e2f4d;
  font-weight: 800;
}

.submitted-receipt-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.submitted-receipt-card p {
  margin: 4px 0 0;
  color: #6a8496;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.submitted-progress-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border-color: #d8eefa;
}

.submitted-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.submitted-card-head h3 {
  font-size: 15px;
}

.submitted-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #1479ce;
  background: #eaf7ff;
  border: 1px solid #bfe4fa;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.submitted-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1479ce;
}

.submitted-summary-pill {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  color: #0e2f4d;
  background: #f7fcff;
  border: 1px solid #d8eefa;
  font-size: 13px;
  font-weight: 800;
}

.submitted-progress-bars {
  height: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.submitted-progress-bars span {
  border-radius: 99px;
  background: #cfeaf8;
}

.submitted-progress-bars .is-done,
.submitted-progress-bars .is-current {
  background: #1479ce;
}

.submitted-progress-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  color: #8aa2b5;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.submitted-progress-labels span:nth-child(1),
.submitted-progress-labels span:nth-child(2) {
  color: #1479ce;
}

.submitted-hint-card {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.submitted-hint-card > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #1479ce;
}

.submitted-hint-card h3 {
  font-size: 13px;
}

.submitted-hint-card p {
  margin: 4px 0 0;
  color: #557a98;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.invoice-sheet-body.is-submitted .sheet-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 62px;
  margin: 0;
  padding: 8px 16px 10px;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(216, 238, 250, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 50%, #f7fcff 100%);
}

.invoice-sheet-body.is-submitted .sheet-bottom .primary-btn {
  width: 100%;
  height: 44px;
  margin: 0;
  border-radius: 23px;
  background: #1479ce;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(20, 121, 206, 0.3);
}

.sheet-title {
  margin: 2px 0 14px;
}

.sheet-title h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 23px;
  line-height: 1.2;
}

.sheet-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.sheet-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d8eefa;
  box-shadow: 0 10px 24px rgba(121, 183, 220, 0.19);
}

.sheet-card h3 {
  margin: 0 0 12px;
  color: #0e2f4d;
  font-size: 17px;
  font-weight: 800;
}

.sheet-summary-strip {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 249, 255, 0.84));
}

.sheet-summary-strip strong {
  color: #0e2f4d;
  font-size: 17px;
  font-weight: 800;
}

.sheet-summary-strip span {
  color: #557a98;
  font-size: 12px;
  font-weight: 700;
}

.sheet-plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-card-head h3 {
  margin: 0;
}

.sheet-card-head button {
  color: #1479ce;
  font-size: 12px;
  font-weight: 800;
}

.plan-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plan-summary-grid > div {
  min-height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px;
  border-radius: 18px;
  background: #f6fbff;
  border: 1px solid #e2f1fa;
}

.plan-summary-grid > div.is-highlight {
  background: #eaf7ff;
  border-color: #bfe4fa;
}

.plan-summary-grid span {
  color: #6a8496;
  font-size: 11px;
  font-weight: 700;
}

.plan-summary-grid strong {
  color: #0e2f4d;
  font-size: 17px;
  font-weight: 800;
}

.plan-summary-grid .is-highlight strong {
  color: #1479ce;
}

.plan-note {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #557a98;
  background: #f7fcff;
  border: 1px solid #e2f2fc;
  font-size: 12px;
  font-weight: 700;
}

.plan-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #1479ce;
}

.method-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.method-option.is-selected {
  padding: 13px;
  border-radius: 18px;
  background: #eaf7ff;
  border: 1px solid #1479ce;
}

.method-option:not(.is-selected) {
  min-height: 42px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f7fcff;
  border: 1px solid #d7ecfa;
}

.method-dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  border: 1px solid #bfe4fa;
}

.method-option.is-selected .method-dot {
  color: #fff;
  background: #1479ce;
  border-color: #1479ce;
}

.method-dot svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.method-option strong {
  display: block;
  color: #0e2f4d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.method-option em {
  display: block;
  margin-top: 6px;
  color: #557a98;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.summary-line,
.form-row,
.confirm-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(216, 237, 250, 0.7);
}

.sheet-form-card .form-row {
  min-height: 48px;
}

.form-input-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.invoice-text-input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 16px;
  color: #0e2f4d;
  background: #f7fcff;
  border: 1px solid #d7ecfa;
  outline: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.invoice-text-input::placeholder {
  color: #98adbd;
  font-weight: 700;
}

.invoice-text-input:focus {
  border-color: #8ed1fb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 127, 217, 0.08);
}

.form-row.is-error .invoice-text-input,
.agreement-strip.is-error {
  border-color: #ff9a9f;
  box-shadow: 0 0 0 3px rgba(239, 95, 103, 0.1);
}

.summary-line:last-child,
.form-row:last-child,
.confirm-line:last-child {
  border-bottom: 0;
}

.summary-line strong,
.form-row strong,
.confirm-line strong {
  color: var(--blue-dark);
  text-align: right;
}

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

.confirm-core > div {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: #f6fbff;
  border: 1px solid #e2f1fa;
}

.confirm-core span {
  color: #6a8496;
  font-size: 11px;
  font-weight: 700;
}

.confirm-core strong {
  color: #0e2f4d;
  font-size: 15px;
  font-weight: 800;
}

.sheet-confirm-card .secondary-btn {
  width: 100%;
  height: 38px;
  margin-top: 12px;
  border-radius: 19px;
}

.sheet-success-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 249, 255, 0.86));
}

.sheet-explain-card .invoice-note,
.sheet-success-card .invoice-note {
  margin: 0;
  color: #557a98;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.option-card {
  margin-top: 10px;
  padding: 13px;
  border-radius: 18px;
  color: var(--text);
  background: #f3faff;
  border: 1px solid #d8edfa;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.option-card.is-selected {
  background: #e9f6ff;
  border-color: #9ed7ff;
  box-shadow: inset 0 0 0 1px rgba(20, 127, 217, 0.12);
}

.option-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 15px;
  margin-bottom: 4px;
}

.radio-pills {
  display: flex;
  gap: 8px;
}

.radio-pills span {
  min-width: 58px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--muted);
  background: #f3faff;
  font-size: 13px;
  font-weight: 800;
}

.radio-pills .active {
  color: #fff;
  background: var(--blue);
}

.info-strip {
  margin-top: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(234, 246, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.agreement-strip {
  cursor: pointer;
  align-items: center;
}

.agreement-strip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agreement-strip strong {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: transparent;
  background: #fff;
  border: 1px solid #bfe4fa;
}

.agreement-strip.is-checked strong {
  color: #fff;
  background: #1479ce;
  border-color: #1479ce;
}

.sheet-bottom {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: auto -16px -20px;
  padding: 22px 16px 20px;
  background: linear-gradient(180deg, rgba(248, 253, 255, 0) 0%, rgba(248, 253, 255, 0.94) 34%, #f8fdff 100%);
}

.sheet-bottom.is-plan-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 10px;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(216, 238, 250, 0.9);
  background: linear-gradient(180deg, rgba(248, 253, 255, 0) 0%, rgba(248, 253, 255, 0.96) 18%, #f8fdff 100%);
}

.sheet-bottom.is-plan-bottom .invoice-note {
  min-height: 36px;
  margin: 0;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  color: #557a98;
  background: #f7fcff;
  border: 1px solid #e2f2fc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.sheet-bottom.is-plan-bottom .invoice-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #1479ce;
}

.sheet-bottom.is-plan-bottom .primary-btn {
  height: 46px;
  margin-top: 0;
  border-radius: 23px;
  background: #1479ce;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(20, 121, 206, 0.3);
}

.sheet-bottom-card {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: auto 0 0;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d8eefa;
  box-shadow: 0 10px 24px rgba(121, 183, 220, 0.19);
}

.sheet-bottom-card::before {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  top: -26px;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 253, 255, 0) 0%, rgba(248, 253, 255, 0.92) 100%);
  z-index: -1;
}

.sheet-bottom-card .primary-btn {
  height: 46px;
  margin-top: 0;
  border-radius: 23px;
  background: #1479ce;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(20, 121, 206, 0.3);
}

.sheet-text-btn {
  width: 100%;
  height: 26px;
  display: grid;
  place-items: center;
  color: #1479ce;
  font-size: 12px;
  font-weight: 800;
}

.sheet-bottom-card .invoice-note {
  min-height: 36px;
  margin-top: 9px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  color: #557a98;
  background: #f7fcff;
  border: 1px solid #e2f2fc;
  font-size: 11px;
  line-height: 1.3;
}

.sheet-bottom-card .invoice-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #1479ce;
}

.sheet-bottom .primary-btn,
.sheet-bottom .secondary-btn {
  width: 100%;
  margin-top: 8px;
}

.sheet-bottom .primary-btn:first-child,
.sheet-bottom .secondary-btn:first-child {
  margin-top: 0;
}


@media (max-width: 640px) {
  :root {
    --page-padding: clamp(16px, 5vw, 20px);
  }

  body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .demo-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 0;
  }

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

  .top-bar {
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
  }

  .quick-strip button {
    flex-basis: 76px;
  }
}
