/* AI Bookkeeping app styles - scoped only to this app | v20260529-aibook-loader-clean-23 */
.aibook-app,
.aibook-app * {
  box-sizing: border-box;
}

.aibook-app {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page-app-ai-bookkeeping {
  overflow-x: hidden;
}

body.page-app-ai-bookkeeping .aibook-app,
body.page-app-ai-bookkeeping .aibook-hero-banner,
body.page-app-ai-bookkeeping .aibook-shell {
  width: 100%;
  max-width: 100%;
}

/* Important: class display rules must never override HTML hidden state. */
.aibook-loader[hidden],
.aibook-paywall[hidden],
.aibook-result-card[hidden] {
  display: none !important;
}

.aibook-app button,
.aibook-app input,
.aibook-app select,
.aibook-app textarea {
  font: inherit;
}

.aibook-hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(380px, .76fr);
  grid-template-areas:
    "copy visual"
    "benefits benefits";
  gap: 26px 34px;
  overflow: hidden;
  padding: 34px 30px 28px;
  border: 1px solid rgba(207, 214, 238, .95);
  border-radius: 32px;
  background:
    radial-gradient(circle at 3% 8%, rgba(171, 141, 255, .18), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(202, 239, 255, .24), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(225, 216, 255, .16), transparent 32%),
    linear-gradient(135deg, #fbfcff 0%, #f7f8ff 48%, #f9fbff 100%);
  box-shadow: 0 16px 46px rgba(92, 101, 143, .10);
  isolation: isolate;
}

.aibook-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .24;
  pointer-events: none;
  z-index: -1;
}

.aibook-hero-glow-one {
  left: -120px;
  top: -135px;
  width: 360px;
  height: 360px;
  background: rgba(147, 51, 234, .36);
}

.aibook-hero-glow-two {
  right: -120px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  background: rgba(34, 211, 238, .30);
}

.aibook-hero-copy {
  grid-area: copy;
  min-width: 0;
}

.aibook-kicker,
.aibook-card-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4f37ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.aibook-kicker span:first-child {
  font-size: 18px;
  line-height: 1;
}

.aibook-hero-title {
  margin: 18px 0 20px;
  color: #07123d;
  line-height: .90;
  letter-spacing: -.066em;
}

.aibook-title-line {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.aibook-title-line + .aibook-title-line {
  margin-top: 7px;
}

.aibook-word {
  display: inline-block;
}

.aibook-word-turn,
.aibook-word-transactions,
.aibook-word-plan,
.aibook-word-into {
  font-weight: 900;
}

.aibook-word-turn {
  font-size: clamp(54px, 6.65vw, 93px);
  color: #07123d;
}

.aibook-word-messy,
.aibook-word-clean {
  position: relative;
  padding-bottom: 7px;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.025em;
  text-shadow: 0 8px 18px rgba(84, 67, 184, .08);
}

.aibook-word-messy {
  font-size: clamp(72px, 8.6vw, 118px);
  transform: translateY(-4px) rotate(-5deg);
  background: linear-gradient(90deg, #ff245f 0%, #f82780 24%, #cb28d7 58%, #6337ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aibook-word-messy::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 10px;
  bottom: 1px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff136e, #6a3cff);
  transform: rotate(-2deg);
}

.aibook-word-transactions {
  font-size: clamp(52px, 6.75vw, 90px);
  background: linear-gradient(180deg, #2787ff 0%, #493aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aibook-word-into {
  font-size: clamp(42px, 5.1vw, 72px);
  color: #07123d;
  letter-spacing: -.05em;
  padding-bottom: 8px;
}

.aibook-word-clean {
  font-size: clamp(76px, 8.55vw, 122px);
  transform: translateY(-2px) rotate(-4deg);
  background: linear-gradient(90deg, #12d5bf 0%, #17c9cf 44%, #25b7ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aibook-word-clean::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 18px;
  bottom: 2px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #14d4c0, #16b9c2);
  transform: rotate(-2deg);
}

.aibook-word-plan {
  font-size: clamp(38px, 4.95vw, 68px);
  color: #07123d;
  letter-spacing: -.055em;
  padding-bottom: 8px;
}

.aibook-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #394663;
  font-size: 16px;
  line-height: 1.66;
}

.aibook-hero-visual {
  grid-area: visual;
  align-self: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.aibook-hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.aibook-hero-stat-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 46%;
  align-items: center;
  gap: 8px;
  min-height: 110px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(220, 226, 244, .95);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(76, 87, 126, .08);
}

.aibook-stat-copy {
  position: relative;
  z-index: 2;
}

.aibook-stat-copy small {
  display: block;
  margin-bottom: 7px;
  color: #303b55;
  font-size: 13px;
  font-weight: 500;
}

.aibook-stat-copy strong {
  display: block;
  color: #07123d;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -.045em;
}

.aibook-stat-copy span {
  display: block;
  margin-top: 9px;
  color: #13a651;
  font-size: 13px;
  font-weight: 800;
}

.aibook-stat-copy span em {
  color: #394663;
  font-style: normal;
  font-weight: 500;
}

.aibook-hero-stat-expense .aibook-stat-copy span {
  color: #ff143d;
}

.aibook-stat-spark {
  width: 100%;
  min-width: 96px;
}

.aibook-hero-dashboard {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 11px 28px rgba(76, 87, 126, .10);
}

.aibook-hero-dashboard img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.002);
}

.aibook-benefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aibook-benefit-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 172px;
  padding: 20px 18px;
  border: 1px solid rgba(222, 228, 245, .95);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(250,251,255,.88));
  box-shadow: 0 8px 24px rgba(93, 103, 145, .07);
}

.aibook-benefit-card-import {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(250,246,255,.90));
}

.aibook-benefit-card-categories {
  background: linear-gradient(135deg, rgba(252,255,255,.96), rgba(242,255,252,.92));
}

.aibook-benefit-card-summary {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,249,255,.92));
}

.aibook-benefit-icon-wrap {
  width: 112px;
  justify-self: center;
}

.aibook-benefit-icon-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.aibook-benefit-copy {
  min-width: 0;
}

.aibook-benefit-copy strong {
  display: block;
  color: #07123d;
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.26;
  letter-spacing: -.035em;
}

.aibook-benefit-copy p {
  margin: 14px 0 0;
  color: #56627f;
  font-size: 14px;
  line-height: 1.42;
}

.aibook-benefit-arrow {
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7e47ff 0%, #296cff 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(94, 94, 218, .24);
}

.aibook-benefit-card-categories .aibook-benefit-arrow {
  background: linear-gradient(135deg, #1bd8cb 0%, #2ec7a2 100%);
}

.aibook-shell {
  width: 100%;
  max-width: 100%;
}

.aibook-app button,
.aibook-app input,
.aibook-app select,
.aibook-app textarea {
  font: inherit;
}

.aibook-hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  grid-template-areas:
    "copy visual"
    "benefits benefits";
  gap: 24px 28px;
  overflow: hidden;
  padding: 42px 30px 28px;
  border: 1px solid rgba(193, 201, 229, .85);
  border-radius: 32px;
  background:
    radial-gradient(circle at 0% 10%, rgba(188, 170, 255, .18), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(194, 233, 255, .20), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(229, 218, 255, .16), transparent 30%),
    linear-gradient(135deg, #fbfcff 0%, #f7f8fe 48%, #f9fbff 100%);
  box-shadow: 0 14px 44px rgba(98, 109, 152, .09);
  isolation: isolate;
}

.aibook-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .26;
  pointer-events: none;
  z-index: -1;
}
.aibook-hero-glow-one {
  left: -110px;
  top: -140px;
  width: 360px;
  height: 360px;
  background: rgba(147, 51, 234, .40);
}
.aibook-hero-glow-two {
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  background: rgba(34, 211, 238, .34);
}

.aibook-hero-copy {
  grid-area: copy;
  min-width: 0;
}

.aibook-kicker,
.aibook-card-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4f37ff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.aibook-kicker span:first-child {
  font-size: 18px;
  line-height: 1;
}

.aibook-hero-title {
  margin: 18px 0 22px;
  color: #09113a;
  line-height: .90;
  letter-spacing: -.065em;
}

.aibook-title-line {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.aibook-title-line + .aibook-title-line {
  margin-top: 8px;
}

.aibook-word {
  display: inline-block;
}

.aibook-word-turn,
.aibook-word-transactions,
.aibook-word-plan,
.aibook-word-into {
  font-weight: 900;
}

.aibook-word-turn {
  font-size: clamp(56px, 7vw, 96px);
  color: #051348;
}

.aibook-word-messy,
.aibook-word-clean {
  position: relative;
  padding-bottom: 6px;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.02em;
}

.aibook-word-messy {
  font-size: clamp(74px, 9.2vw, 124px);
  transform: rotate(-5deg);
  background: linear-gradient(90deg, #ff2460 0%, #ff2d7a 22%, #d428d7 58%, #7039ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aibook-word-messy::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 12px;
  bottom: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff146f, #7d3cff);
  transform: rotate(-2deg);
}

.aibook-word-transactions {
  font-size: clamp(52px, 7vw, 90px);
  background: linear-gradient(180deg, #2787ff 0%, #4739ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aibook-word-into {
  font-size: clamp(42px, 5vw, 74px);
  color: #07113d;
  letter-spacing: -.05em;
  padding-bottom: 8px;
}

.aibook-word-clean {
  font-size: clamp(78px, 9vw, 128px);
  transform: rotate(-4deg);
  background: linear-gradient(90deg, #12d5bf 0%, #16c4cf 42%, #27bcb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aibook-word-clean::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 18px;
  bottom: 3px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #14d4c0, #15b8c2);
  transform: rotate(-2deg);
}

.aibook-word-plan {
  font-size: clamp(38px, 5vw, 70px);
  color: #061341;
  letter-spacing: -.055em;
  padding-bottom: 8px;
}

.aibook-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #4a5678;
  font-size: 16px;
  line-height: 1.62;
}

.aibook-hero-visual {
  grid-area: visual;
  align-self: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(226, 230, 246, .95);
  border-radius: 28px;
  background: rgba(255,255,255,.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 24px rgba(87, 99, 139, .08);
}

.aibook-hero-stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.aibook-hero-stat-card,
.aibook-hero-dashboard {
  overflow: hidden;
  border-radius: 20px;
}

.aibook-hero-stat-card img,
.aibook-hero-dashboard img,
.aibook-benefit-icon-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.aibook-benefits {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.aibook-benefit-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  min-height: 202px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(222, 228, 245, .95);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(250,251,255,.88));
  box-shadow: 0 8px 28px rgba(93, 103, 145, .07);
}

.aibook-benefit-card-import {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(250,246,255,.90));
}

.aibook-benefit-card-categories {
  background: linear-gradient(135deg, rgba(252,255,255,.94), rgba(242,255,252,.92));
}

.aibook-benefit-card-summary {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,249,255,.92));
}

.aibook-benefit-icon-wrap {
  width: 120px;
  justify-self: center;
}

.aibook-benefit-copy {
  min-width: 0;
}

.aibook-benefit-copy strong {
  display: block;
  color: #09113a;
  font-size: 20px;
  line-height: 1.26;
  letter-spacing: -.03em;
}

.aibook-benefit-copy p {
  margin: 16px 0 0;
  color: #5d6887;
  font-size: 14px;
  line-height: 1.45;
}

.aibook-benefit-arrow {
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7e47ff 0%, #296cff 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(94, 94, 218, .24);
}

.aibook-benefit-card-categories .aibook-benefit-arrow {
  background: linear-gradient(135deg, #1bd8cb 0%, #2ec7a2 100%);
}

.aibook-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.aibook-main-card,
.aibook-result-card {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.aibook-card-head,
.aibook-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.aibook-card-head h3,
.aibook-result-head h3,
.aibook-paywall-card h3,
.aibook-loader-box h3 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.aibook-limit-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.aibook-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.aibook-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aibook-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.aibook-field {
  display: grid;
  gap: 8px;
}
.aibook-field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.aibook-field > span i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-style: normal;
}

.aibook-field input,
.aibook-field select,
.aibook-field textarea,
.aibook-output {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #d7deea;
  border-radius: 18px;
  background: #fbfdff;
  color: #0f172a;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.aibook-field textarea,
.aibook-output {
  resize: vertical;
}

.aibook-field input::placeholder,
.aibook-field textarea::placeholder {
  color: #a0aec0;
}

.aibook-field input:focus,
.aibook-field select:focus,
.aibook-field textarea:focus,
.aibook-output:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}

.aibook-wide {
  margin-bottom: 14px;
}

.aibook-safety-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}
.aibook-safety-note > span { font-size: 18px; }
.aibook-safety-note p { margin: 0; }

.aibook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.aibook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.aibook-btn:hover { transform: translateY(-1px); }
.aibook-btn:active { transform: translateY(0); }

.aibook-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  box-shadow: 0 18px 32px rgba(69, 89, 214, .28);
}

.aibook-btn-ghost {
  background: #eff6ff;
  color: #1d4ed8;
}

.aibook-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aibook-result-actions button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d7deea;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.aibook-output {
  min-height: 340px;
  margin-top: 8px;
  line-height: 1.6;
}

.aibook-output-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
}

.aibook-loader,
.aibook-paywall {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(6px);
}

.aibook-loader-box,
.aibook-paywall-card {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
  text-align: center;
}

.aibook-loader-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8b5cf6, #2563eb);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(99, 102, 241, .3);
}

.aibook-loader-box p,
.aibook-paywall-card p {
  margin: 14px 0 0;
  color: #475569;
  line-height: 1.6;
}

.aibook-loader-track {
  width: 100%;
  height: 12px;
  margin-top: 22px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.aibook-loader-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.aibook-paywall-card {
  position: relative;
}

.aibook-paywall-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
}






@media (max-width: 1180px) {
  .aibook-hero-banner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "benefits";
  }

  .aibook-hero-copy p {
    max-width: none;
  }

  .aibook-hero-visual {
    max-width: 760px;
  }

  .aibook-benefits {
    grid-template-columns: 1fr;
  }

  .aibook-benefit-card {
    grid-template-columns: 120px minmax(0, 1fr) 42px;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .aibook-mobile-host,
  .aibook-mobile-host.content-panel,
  .aibook-mobile-host.app-stage-panel {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .aibook-app {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 12px;
    padding-right: 12px;
  }

  .aibook-hero-banner,
  .aibook-main-card,
  .aibook-result-card {
    border-radius: 24px;
  }

  .aibook-hero-banner {
    padding: 24px 16px 16px;
    gap: 18px;
  }

  .aibook-kicker,
  .aibook-card-label {
    font-size: 11px;
    letter-spacing: .18em;
  }

  .aibook-hero-title {
    margin: 14px 0 18px;
  }

  .aibook-title-line {
    gap: 10px;
    margin-top: 0;
  }

  .aibook-word-turn { font-size: clamp(42px, 13vw, 60px); }
  .aibook-word-messy { font-size: clamp(56px, 17vw, 76px); }
  .aibook-word-transactions { font-size: clamp(40px, 12.6vw, 58px); }
  .aibook-word-into { font-size: clamp(30px, 9vw, 44px); }
  .aibook-word-clean { font-size: clamp(58px, 16vw, 82px); }
  .aibook-word-plan { font-size: clamp(27px, 8vw, 42px); }

  .aibook-hero-copy p {
    font-size: 15px;
  }

  .aibook-hero-copy p br {
    display: none;
  }

  .aibook-hero-stat-grid {
    gap: 8px;
    margin-bottom: 8px;
  }

  .aibook-hero-stat-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 14px 12px;
  }

  .aibook-stat-copy strong {
    font-size: 22px;
  }

  .aibook-stat-copy span {
    font-size: 12px;
  }

  .aibook-stat-spark {
    min-width: 0;
    margin-top: 8px;
  }

  .aibook-benefits {
    margin-top: 2px;
    gap: 12px;
  }

  .aibook-benefit-card {
    grid-template-columns: 84px minmax(0, 1fr) 36px;
    gap: 10px;
    padding: 16px 14px;
    border-radius: 22px;
  }

  .aibook-benefit-icon-wrap {
    width: 78px;
  }

  .aibook-benefit-copy strong {
    font-size: 17px;
  }

  .aibook-benefit-copy p {
    margin-top: 10px;
    font-size: 13px;
  }

  .aibook-benefit-arrow {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .aibook-grid,
  .aibook-grid.two,
  .aibook-grid.three {
    grid-template-columns: 1fr;
  }

  .aibook-card-head,
  .aibook-result-head {
    flex-direction: column;
    align-items: stretch;
  }

  .aibook-limit-pill {
    width: fit-content;
  }

  .aibook-field,
  .aibook-wide,
  .aibook-field input,
  .aibook-field select,
  .aibook-field textarea,
  .aibook-actions,
  .aibook-actions button,
  .aibook-result-actions,
  .aibook-result-actions button {
    width: 100%;
  }

  .aibook-actions,
  .aibook-result-actions {
    flex-direction: column;
  }

  .aibook-main-card,
  .aibook-result-card {
    padding: 18px 16px;
  }
}

@media (max-width: 440px) {
  .aibook-hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .aibook-benefit-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .aibook-benefit-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
  }
}



/* ===== HERO LAYOUT FIX v20260529-aibook-hero-layout-3 =====
   Desktop stays inside existing content width. These rules only fix the AI Bookkeeping hero. */

.aibook-hero-banner {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 28px 34px;
  padding: clamp(24px, 2.4vw, 40px) clamp(18px, 2.4vw, 32px) clamp(18px, 2vw, 28px);
}

.aibook-hero-copy {
  align-self: center;
}

.aibook-hero-title {
  max-width: 760px;
  margin: 16px 0 20px;
  line-height: .92;
  letter-spacing: -.058em;
}

.aibook-title-line {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.25vw, 18px);
  white-space: nowrap;
}

.aibook-title-line + .aibook-title-line {
  margin-top: clamp(2px, .45vw, 7px);
}

.aibook-word-turn {
  font-size: clamp(48px, 5.6vw, 86px);
}

.aibook-word-messy {
  font-size: clamp(58px, 6.8vw, 106px);
  transform: translateY(-3px) rotate(-5deg);
}

.aibook-word-transactions {
  font-size: clamp(44px, 5.7vw, 84px);
}

.aibook-word-into {
  font-size: clamp(34px, 4vw, 58px);
  padding-bottom: .16em;
}

.aibook-word-clean {
  font-size: clamp(58px, 6.65vw, 104px);
  transform: translateY(-1px) rotate(-4deg);
}

.aibook-word-plan {
  font-size: clamp(34px, 4.45vw, 62px);
  padding-bottom: .12em;
}

.aibook-hero-copy p {
  max-width: 760px;
  font-size: clamp(15px, 1.25vw, 18px);
}

.aibook-hero-visual {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  align-self: center;
}

.aibook-hero-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aibook-hero-stat-card {
  min-height: 112px;
  padding: clamp(14px, 1.25vw, 18px);
}

.aibook-hero-dashboard {
  border-radius: 20px;
}

.aibook-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.aibook-benefit-card {
  grid-template-columns: minmax(72px, 116px) minmax(0, 1fr) 40px;
  gap: clamp(10px, 1vw, 14px);
  min-height: 168px;
  padding: clamp(16px, 1.35vw, 22px);
}

.aibook-benefit-icon-wrap {
  width: clamp(72px, 7.5vw, 112px);
}

.aibook-benefit-copy strong {
  font-size: clamp(15px, 1.35vw, 21px);
}

.aibook-benefit-copy p {
  font-size: clamp(12px, 1vw, 14px);
}

@media (max-width: 1280px) {
  .aibook-hero-banner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
    gap: 24px;
  }

  .aibook-word-turn {
    font-size: clamp(44px, 5.3vw, 76px);
  }

  .aibook-word-messy {
    font-size: clamp(54px, 6.3vw, 92px);
  }

  .aibook-word-transactions {
    font-size: clamp(40px, 5.25vw, 74px);
  }

  .aibook-word-into {
    font-size: clamp(30px, 3.7vw, 50px);
  }

  .aibook-word-clean {
    font-size: clamp(54px, 6vw, 90px);
  }

  .aibook-word-plan {
    font-size: clamp(30px, 4vw, 54px);
  }

  .aibook-benefit-card {
    grid-template-columns: 86px minmax(0, 1fr) 36px;
  }

  .aibook-benefit-copy strong {
    font-size: 16px;
  }
}

@media (max-width: 1040px) {
  .aibook-hero-banner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "benefits";
  }

  .aibook-hero-visual {
    max-width: 720px;
    justify-self: stretch;
  }

  .aibook-benefits {
    grid-template-columns: 1fr;
  }

  .aibook-benefit-card {
    grid-template-columns: 112px minmax(0, 1fr) 42px;
    min-height: 0;
  }

  .aibook-benefit-copy strong {
    font-size: 20px;
  }

  .aibook-benefit-copy p {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .aibook-title-line {
    flex-wrap: wrap;
    white-space: normal;
    gap: 8px 12px;
  }

  .aibook-hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .aibook-hero-stat-card {
    grid-template-columns: minmax(0, .9fr) minmax(96px, .8fr);
  }

  .aibook-benefit-card {
    grid-template-columns: 86px minmax(0, 1fr) 36px;
  }

  .aibook-benefit-icon-wrap {
    width: 78px;
  }

  .aibook-benefit-copy strong {
    font-size: 17px;
  }
}

@media (max-width: 440px) {
  .aibook-hero-banner {
    padding: 22px 14px 14px;
  }

  .aibook-hero-stat-card {
    grid-template-columns: 1fr;
  }

  .aibook-benefit-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding-right: 54px;
  }

  .aibook-benefit-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
  }
}



/* ===== AI Bookkeeping transparent assets + title containment fix | v20260529-aibook-transparent-title-4 ===== */

/* Keep desktop inside the existing content area only. */
.aibook-app,
.aibook-hero-banner,
.aibook-shell {
  width: 100%;
  max-width: 100%;
}

.aibook-hero-banner {
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr) !important;
  gap: 26px 32px !important;
  align-items: center !important;
  padding: clamp(24px, 2.25vw, 36px) clamp(18px, 2.25vw, 32px) clamp(18px, 2vw, 28px) !important;
}

.aibook-hero-copy {
  min-width: 0 !important;
  max-width: 100% !important;
}

.aibook-hero-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 20px !important;
  line-height: .92 !important;
  letter-spacing: -.055em !important;
  overflow: visible !important;
}

.aibook-title-line {
  display: flex !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: clamp(8px, 1vw, 16px) !important;
  white-space: nowrap !important;
}

.aibook-title-line + .aibook-title-line {
  margin-top: clamp(2px, .34vw, 6px) !important;
}

.aibook-word {
  min-width: 0 !important;
  max-width: 100% !important;
}

.aibook-word-turn {
  flex: 0 0 auto !important;
  font-size: clamp(42px, 4.95vw, 78px) !important;
}

.aibook-word-messy {
  flex: 1 1 auto !important;
  font-size: clamp(50px, 5.8vw, 92px) !important;
  line-height: .78 !important;
  transform: translateY(-2px) rotate(-5deg) !important;
}

.aibook-title-line-two {
  gap: clamp(8px, .9vw, 14px) !important;
}

.aibook-word-transactions {
  flex: 1 1 auto !important;
  font-size: clamp(38px, 4.85vw, 72px) !important;
  line-height: .94 !important;
}

.aibook-word-into {
  flex: 0 1 auto !important;
  font-size: clamp(28px, 3.35vw, 48px) !important;
  line-height: .98 !important;
  padding-bottom: .12em !important;
}

.aibook-word-clean {
  flex: 0 0 auto !important;
  font-size: clamp(50px, 5.65vw, 88px) !important;
  line-height: .78 !important;
  transform: translateY(-1px) rotate(-4deg) !important;
}

.aibook-word-plan {
  flex: 1 1 auto !important;
  font-size: clamp(28px, 3.72vw, 54px) !important;
  line-height: .98 !important;
  padding-bottom: .12em !important;
}

.aibook-hero-copy p {
  max-width: 700px !important;
  font-size: clamp(14px, 1.1vw, 17px) !important;
  line-height: 1.58 !important;
}

.aibook-hero-visual {
  max-width: 560px !important;
  justify-self: end !important;
}

.aibook-hero-dashboard {
  overflow: hidden !important;
  border-radius: 20px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aibook-hero-dashboard img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
  transform: none !important;
}

.aibook-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.2vw, 16px) !important;
}

.aibook-benefit-card {
  grid-template-columns: minmax(70px, 108px) minmax(0, 1fr) 38px !important;
  gap: clamp(9px, .9vw, 13px) !important;
  min-height: 164px !important;
  padding: clamp(15px, 1.25vw, 20px) !important;
}

.aibook-benefit-icon-wrap {
  width: clamp(70px, 7.2vw, 108px) !important;
  min-width: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.aibook-benefit-icon-wrap img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

.aibook-benefit-copy {
  min-width: 0 !important;
}

.aibook-benefit-copy strong {
  font-size: clamp(14px, 1.25vw, 20px) !important;
  line-height: 1.25 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.aibook-benefit-copy p {
  margin-top: 12px !important;
  font-size: clamp(12px, .95vw, 14px) !important;
  line-height: 1.42 !important;
}

.aibook-benefit-arrow {
  width: 38px !important;
  height: 38px !important;
  font-size: 21px !important;
}

@media (max-width: 1240px) {
  .aibook-hero-banner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr) !important;
  }

  .aibook-word-turn { font-size: clamp(40px, 4.5vw, 66px) !important; }
  .aibook-word-messy { font-size: clamp(48px, 5.25vw, 78px) !important; }
  .aibook-word-transactions { font-size: clamp(36px, 4.45vw, 64px) !important; }
  .aibook-word-into { font-size: clamp(26px, 3vw, 42px) !important; }
  .aibook-word-clean { font-size: clamp(48px, 5.1vw, 76px) !important; }
  .aibook-word-plan { font-size: clamp(27px, 3.35vw, 48px) !important; }

  .aibook-benefit-card {
    grid-template-columns: 82px minmax(0, 1fr) 34px !important;
  }

  .aibook-benefit-icon-wrap {
    width: 76px !important;
  }

  .aibook-benefit-copy strong {
    font-size: 15px !important;
  }
}

@media (max-width: 1060px) {
  .aibook-hero-banner {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "copy"
      "visual"
      "benefits" !important;
  }

  .aibook-hero-visual {
    justify-self: stretch !important;
    max-width: 720px !important;
  }

  .aibook-benefits {
    grid-template-columns: 1fr !important;
  }

  .aibook-benefit-card {
    grid-template-columns: 104px minmax(0, 1fr) 40px !important;
    min-height: 0 !important;
  }

  .aibook-benefit-icon-wrap {
    width: 96px !important;
  }

  .aibook-benefit-copy strong {
    font-size: 19px !important;
  }
}

@media (max-width: 768px) {
  .aibook-title-line {
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: 6px 10px !important;
  }

  .aibook-word-turn { font-size: clamp(40px, 13vw, 58px) !important; }
  .aibook-word-messy { font-size: clamp(52px, 16vw, 74px) !important; }
  .aibook-word-transactions { font-size: clamp(38px, 12vw, 56px) !important; }
  .aibook-word-into { font-size: clamp(28px, 8.4vw, 40px) !important; }
  .aibook-word-clean { font-size: clamp(54px, 15vw, 78px) !important; }
  .aibook-word-plan { font-size: clamp(26px, 7.7vw, 40px) !important; }

  .aibook-hero-dashboard {
    border-radius: 18px !important;
  }

  .aibook-benefit-card {
    grid-template-columns: 82px minmax(0, 1fr) 36px !important;
  }

  .aibook-benefit-icon-wrap {
    width: 76px !important;
  }

  .aibook-benefit-copy strong {
    font-size: 17px !important;
  }
}

@media (max-width: 440px) {
  .aibook-benefit-card {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    padding-right: 54px !important;
  }

  .aibook-benefit-arrow {
    position: absolute !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}


/* ===== AI Bookkeeping final hero typography + button cards | v20260529-aibook-hero-buttons-5 ===== */

/* Kicker higher and tighter */
.aibook-hero-copy {
  align-self: start !important;
  padding-top: 0 !important;
}

.aibook-kicker {
  margin-top: -6px !important;
  margin-bottom: 12px !important;
  transform: translateY(-4px) !important;
}

/* Clean, controlled heading. No decorative underlines. */
.aibook-hero-title {
  display: block !important;
  width: 100% !important;
  max-width: min(100%, 760px) !important;
  margin: 8px 0 20px !important;
  line-height: .98 !important;
  letter-spacing: -.052em !important;
  overflow: visible !important;
}

.aibook-title-line {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.aibook-title-line + .aibook-title-line {
  margin-top: 2px !important;
}

.aibook-word {
  display: inline-block !important;
  vertical-align: baseline !important;
}

.aibook-word-messy::after,
.aibook-word-clean::after {
  content: none !important;
  display: none !important;
}

.aibook-word-turn {
  font-size: clamp(42px, 4.65vw, 74px) !important;
  line-height: .98 !important;
}

.aibook-word-messy {
  margin-left: .18em !important;
  padding-bottom: 0 !important;
  font-size: clamp(46px, 5.25vw, 82px) !important;
  line-height: .86 !important;
  transform: rotate(-3deg) translateY(-1px) !important;
}

.aibook-word-transactions {
  font-size: clamp(38px, 4.6vw, 70px) !important;
  line-height: .98 !important;
}

.aibook-word-into {
  margin-left: .16em !important;
  padding-bottom: 0 !important;
  font-size: clamp(30px, 3.55vw, 52px) !important;
  line-height: 1 !important;
}

.aibook-word-clean {
  padding-bottom: 0 !important;
  font-size: clamp(48px, 5.3vw, 84px) !important;
  line-height: .86 !important;
  transform: rotate(-3deg) translateY(-1px) !important;
}

.aibook-word-plan {
  margin-left: .16em !important;
  padding-bottom: 0 !important;
  font-size: clamp(30px, 3.8vw, 56px) !important;
  line-height: 1 !important;
}

.aibook-hero-copy p {
  max-width: 720px !important;
  margin-top: 0 !important;
  font-size: clamp(14px, 1.08vw, 17px) !important;
  line-height: 1.58 !important;
}

/* Keep visual clean. The transparent dashboard image should not sit on patterned/square background. */
.aibook-hero-visual {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.aibook-hero-dashboard {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(246,249,255,.56)) !important;
  box-shadow: 0 14px 32px rgba(68, 79, 116, .10) !important;
}

.aibook-hero-dashboard::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 18px !important;
  background: linear-gradient(to top, rgba(247,250,255,.95), rgba(247,250,255,0)) !important;
  pointer-events: none !important;
}

.aibook-hero-dashboard img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
  transform: none !important;
}

/* Benefit cards are real buttons now */
.aibook-benefits {
  align-items: stretch !important;
}

.aibook-benefit-card {
  display: block !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.aibook-benefit-button {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(72px, 108px) minmax(0, 1fr) 40px !important;
  align-items: center !important;
  gap: clamp(10px, 1vw, 14px) !important;
  width: 100% !important;
  min-height: 166px !important;
  padding: clamp(16px, 1.25vw, 20px) !important;
  border: 1px solid rgba(214, 222, 244, .96) !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(249,251,255,.90)) !important;
  box-shadow: 0 10px 28px rgba(80, 91, 132, .09), inset 0 1px 0 rgba(255,255,255,.84) !important;
  color: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease !important;
}

.aibook-benefit-button:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(124, 58, 237, .24) !important;
  box-shadow: 0 18px 38px rgba(80, 91, 132, .15), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.aibook-benefit-button:focus-visible {
  outline: 4px solid rgba(124, 58, 237, .18) !important;
  outline-offset: 3px !important;
}

.aibook-benefit-card-import .aibook-benefit-button {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(250,246,255,.94)) !important;
}

.aibook-benefit-card-categories .aibook-benefit-button {
  background: linear-gradient(135deg, rgba(253,255,255,.98), rgba(239,255,251,.94)) !important;
}

.aibook-benefit-card-summary .aibook-benefit-button {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,249,255,.94)) !important;
}

.aibook-benefit-icon-wrap {
  width: clamp(72px, 7.2vw, 108px) !important;
  justify-self: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.aibook-benefit-icon-wrap img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

.aibook-benefit-copy {
  display: block !important;
  min-width: 0 !important;
}

.aibook-benefit-copy strong {
  display: block !important;
  color: #07123d !important;
  font-size: clamp(14px, 1.25vw, 20px) !important;
  line-height: 1.25 !important;
  letter-spacing: -.032em !important;
}

.aibook-benefit-copy > span {
  display: block !important;
  margin-top: 12px !important;
  color: #56627f !important;
  font-size: clamp(12px, .95vw, 14px) !important;
  line-height: 1.42 !important;
}

.aibook-benefit-arrow {
  position: static !important;
  align-self: end !important;
  justify-self: end !important;
  width: 38px !important;
  height: 38px !important;
  font-size: 21px !important;
  pointer-events: none !important;
}

@media (max-width: 1240px) {
  .aibook-hero-title {
    max-width: 680px !important;
  }

  .aibook-word-turn { font-size: clamp(40px, 4.25vw, 64px) !important; }
  .aibook-word-messy { font-size: clamp(44px, 4.8vw, 72px) !important; }
  .aibook-word-transactions { font-size: clamp(36px, 4.22vw, 62px) !important; }
  .aibook-word-into { font-size: clamp(26px, 3vw, 42px) !important; }
  .aibook-word-clean { font-size: clamp(44px, 4.75vw, 72px) !important; }
  .aibook-word-plan { font-size: clamp(27px, 3.2vw, 46px) !important; }

  .aibook-benefit-button {
    grid-template-columns: 82px minmax(0, 1fr) 36px !important;
  }

  .aibook-benefit-icon-wrap {
    width: 76px !important;
  }

  .aibook-benefit-copy strong {
    font-size: 15px !important;
  }
}

@media (max-width: 1060px) {
  .aibook-hero-title {
    max-width: 100% !important;
  }

  .aibook-benefit-button {
    grid-template-columns: 104px minmax(0, 1fr) 40px !important;
    min-height: 0 !important;
  }

  .aibook-benefit-icon-wrap {
    width: 96px !important;
  }

  .aibook-benefit-copy strong {
    font-size: 19px !important;
  }
}

@media (max-width: 768px) {
  .aibook-kicker {
    transform: none !important;
    margin-top: 0 !important;
  }

  .aibook-title-line {
    white-space: normal !important;
  }

  .aibook-word-turn { font-size: clamp(38px, 12vw, 56px) !important; }
  .aibook-word-messy { font-size: clamp(46px, 14vw, 70px) !important; }
  .aibook-word-transactions { font-size: clamp(34px, 10.4vw, 52px) !important; }
  .aibook-word-into { font-size: clamp(25px, 7.4vw, 38px) !important; }
  .aibook-word-clean { font-size: clamp(46px, 13.8vw, 72px) !important; }
  .aibook-word-plan { font-size: clamp(25px, 7.2vw, 38px) !important; }

  .aibook-benefit-button {
    grid-template-columns: 82px minmax(0, 1fr) 36px !important;
  }

  .aibook-benefit-icon-wrap {
    width: 76px !important;
  }

  .aibook-benefit-copy strong {
    font-size: 17px !important;
  }
}

@media (max-width: 440px) {
  .aibook-benefit-button {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    padding-right: 54px !important;
  }

  .aibook-benefit-arrow {
    position: absolute !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}



/* ===== AI Bookkeeping button equalization + title clipping fix | v20260529-aibook-buttons-equal-6 ===== */

/* Make script words breathe so letters are not clipped. */
.aibook-hero-title {
  overflow: visible !important;
  padding-top: 8px !important;
  padding-bottom: 10px !important;
}

.aibook-title-line {
  overflow: visible !important;
}

.aibook-word-messy,
.aibook-word-clean {
  overflow: visible !important;
  padding: .08em .08em .16em .08em !important;
  line-height: .98 !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
}

/* messy and clean same size; central transactions is larger */
.aibook-word-messy,
.aibook-word-clean {
  font-size: clamp(48px, 5.05vw, 78px) !important;
}

.aibook-word-transactions {
  font-size: clamp(42px, 5.05vw, 76px) !important;
}

.aibook-word-turn {
  font-size: clamp(42px, 4.75vw, 72px) !important;
}

.aibook-word-into {
  font-size: clamp(29px, 3.35vw, 48px) !important;
}

.aibook-word-plan {
  font-size: clamp(29px, 3.55vw, 52px) !important;
}

/* Equal benefit buttons with clearer hover state */
.aibook-benefits {
  align-items: stretch !important;
}

.aibook-benefit-card {
  height: 100% !important;
}

.aibook-benefit-button {
  height: 100% !important;
  min-height: 172px !important;
  grid-template-columns: minmax(74px, 104px) minmax(0, 1fr) 38px !important;
  border: 1px solid rgba(205, 214, 238, .98) !important;
}

.aibook-benefit-button:hover {
  transform: translateY(-3px) !important;
  border-color: #20c997 !important;
  box-shadow:
    0 18px 40px rgba(32, 201, 151, .18),
    0 10px 26px rgba(80, 91, 132, .11),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
}

.aibook-benefit-button:hover .aibook-benefit-arrow {
  background: linear-gradient(135deg, #18c6b4 0%, #20c997 100%) !important;
  box-shadow: 0 10px 20px rgba(32, 201, 151, .28) !important;
}

.aibook-benefit-button:active {
  transform: translateY(-1px) !important;
}

.aibook-benefit-copy strong {
  font-size: clamp(14px, 1.16vw, 18px) !important;
  line-height: 1.24 !important;
}

.aibook-benefit-copy > span {
  font-size: clamp(12px, .92vw, 14px) !important;
  line-height: 1.38 !important;
}

@media (max-width: 1240px) {
  .aibook-word-messy,
  .aibook-word-clean {
    font-size: clamp(44px, 4.65vw, 68px) !important;
  }

  .aibook-word-transactions {
    font-size: clamp(38px, 4.75vw, 68px) !important;
  }

  .aibook-benefit-button {
    min-height: 164px !important;
  }
}

@media (max-width: 1060px) {
  .aibook-benefit-button {
    min-height: 0 !important;
  }

  .aibook-benefit-copy strong {
    font-size: 19px !important;
  }
}

@media (max-width: 768px) {
  .aibook-word-messy,
  .aibook-word-clean {
    font-size: clamp(45px, 13.2vw, 68px) !important;
    padding-bottom: .14em !important;
  }

  .aibook-word-transactions {
    font-size: clamp(34px, 10.4vw, 52px) !important;
  }

  .aibook-benefit-button {
    min-height: 0 !important;
  }

  .aibook-benefit-copy strong {
    font-size: 17px !important;
  }
}



/* ===== AI Bookkeeping mobile hero cleanup | v20260529-aibook-mobile-hero-clean-7 ===== */
@media (max-width: 768px) {
  /* On mobile hide the right desktop visual block completely */
  .aibook-hero-visual {
    display: none !important;
  }

  .aibook-hero-banner {
    grid-template-areas:
      "copy"
      "benefits" !important;
  }

  /* Center hero text only on mobile */
  .aibook-hero-copy {
    text-align: center !important;
    align-self: center !important;
    justify-self: center !important;
    width: 100% !important;
  }

  .aibook-kicker {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .aibook-hero-title {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .aibook-title-line {
    text-align: center !important;
  }

  .aibook-hero-copy p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}



/* ===== AI Bookkeeping scroll buttons + workspace title | v20260529-aibook-scroll-title-8 ===== */

/* Scroll target feedback */
.aibook-field-pulse {
  animation: aibookFieldPulse 1.45s ease both;
  border-radius: 22px;
}

@keyframes aibookFieldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(32, 201, 151, .36);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(32, 201, 151, .16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 201, 151, 0);
  }
}

/* Make the workspace title feel like the hero, but stable inside the form card */
.aibook-workspace-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 7px 0 0 !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
}

.aibook-workspace-title span {
  color: #07123d;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
}

.aibook-workspace-title em {
  display: inline-block;
  padding: 0 .06em .08em;
  color: transparent;
  background: linear-gradient(90deg, #14d4c0 0%, #2787ff 48%, #6337ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-size: clamp(38px, 4.2vw, 58px);
  font-style: normal;
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
  transform: rotate(-2deg);
}

/* Buttons: make click behavior visually obvious */
.aibook-benefit-button {
  scroll-margin-top: 22px;
}

.aibook-benefit-button:hover,
.aibook-benefit-button:focus-visible {
  border-color: #20c997 !important;
}

@media (max-width: 768px) {
  .aibook-workspace-title {
    gap: 6px;
  }

  .aibook-workspace-title span {
    font-size: clamp(26px, 8vw, 36px);
  }

  .aibook-workspace-title em {
    font-size: clamp(36px, 11vw, 52px);
  }
}



/* ===== AI Bookkeeping cleaner workspace title + document upload | v20260529-aibook-upload-title-9 ===== */

/* Replace previous handwritten workspace title with one clean premium font */
.aibook-workspace-title {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 7px 0 0 !important;
  font-family: inherit !important;
  font-size: clamp(28px, 3.1vw, 42px) !important;
  font-weight: 950 !important;
  line-height: 1.02 !important;
  letter-spacing: -.052em !important;
}

.aibook-workspace-title span {
  display: inline-block !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  transform: none !important;
}

.aibook-workspace-title span:first-child {
  color: #07123d !important;
}

.aibook-workspace-title span:last-child {
  color: transparent !important;
  background: linear-gradient(90deg, #14c9b8 0%, #2787ff 48%, #6337ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 2px 0 16px;
  padding: 16px;
  border: 1px dashed rgba(99, 102, 241, .34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .08), transparent 32%),
    linear-gradient(135deg, #fbfdff, #f7faff);
}

.aibook-upload-copy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.aibook-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  font-size: 20px;
}

.aibook-upload-copy strong {
  display: block;
  color: #07123d;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.aibook-upload-copy p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.aibook-upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(69, 89, 214, .24);
  transition: transform .16s ease, box-shadow .16s ease;
}

.aibook-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(69, 89, 214, .30);
}

.aibook-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.aibook-upload-status {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.aibook-upload-status span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
}

.aibook-upload-status span.is-success {
  background: #ecfdf5;
  color: #047857;
}

.aibook-upload-status span.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 768px) {
  .aibook-workspace-title {
    font-size: clamp(26px, 8vw, 36px) !important;
    gap: 6px !important;
  }

  .aibook-upload-box {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .aibook-upload-button {
    width: 100%;
  }
}

/* ===== AI Bookkeeping logo + refined hero title + upload icon | v20260529-aibook-logo-title-10 ===== */

/* Unified hero title: one typeface, clean premium layout, color accents only */
.aibook-hero-title {
  max-width: min(100%, 760px) !important;
  margin: 10px 0 18px !important;
  padding: 0 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.055em !important;
}

.aibook-title-line {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: 0.14em !important;
  width: 100% !important;
  white-space: nowrap !important;
  margin: 0 !important;
  overflow: visible !important;
}

.aibook-title-line + .aibook-title-line {
  margin-top: 2px !important;
}

.aibook-word,
.aibook-word-turn,
.aibook-word-messy,
.aibook-word-transactions,
.aibook-word-into,
.aibook-word-clean,
.aibook-word-plan {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: 900 !important;
  text-shadow: none !important;
  transform: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: inherit !important;
  overflow: visible !important;
}

.aibook-word-messy::after,
.aibook-word-clean::after {
  content: none !important;
  display: none !important;
}

.aibook-word-turn,
.aibook-word-into,
.aibook-word-plan {
  color: #07123d !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.aibook-word-turn {
  font-size: clamp(42px, 4.95vw, 76px) !important;
}

.aibook-word-messy {
  font-size: clamp(42px, 4.95vw, 76px) !important;
  color: transparent !important;
  background: linear-gradient(90deg, #ff3f7f 0%, #d73dff 52%, #5d5fff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-transactions {
  font-size: clamp(48px, 5.55vw, 84px) !important;
  color: transparent !important;
  background: linear-gradient(180deg, #3d8cff 0%, #4c57ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-into {
  font-size: clamp(30px, 3.45vw, 50px) !important;
}

.aibook-word-clean {
  font-size: clamp(42px, 4.95vw, 76px) !important;
  color: transparent !important;
  background: linear-gradient(90deg, #14d4c0 0%, #17c7da 45%, #22b8b2 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-plan {
  font-size: clamp(30px, 3.7vw, 54px) !important;
}

/* Cleaner upload icon, no emoji */
.aibook-upload-icon {
  color: #4f46e5 !important;
}

.aibook-upload-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Better workspace title and upload box visual consistency */
.aibook-workspace-title {
  gap: 8px !important;
}

@media (max-width: 1240px) {
  .aibook-word-turn,
  .aibook-word-messy,
  .aibook-word-clean {
    font-size: clamp(38px, 4.55vw, 66px) !important;
  }

  .aibook-word-transactions {
    font-size: clamp(42px, 5.1vw, 74px) !important;
  }

  .aibook-word-into {
    font-size: clamp(26px, 3.05vw, 42px) !important;
  }

  .aibook-word-plan {
    font-size: clamp(26px, 3.3vw, 46px) !important;
  }
}

@media (max-width: 768px) {
  .aibook-hero-title {
    text-align: center !important;
    max-width: 100% !important;
  }

  .aibook-title-line {
    justify-content: center !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: 0.06em 0.14em !important;
  }

  .aibook-word-turn,
  .aibook-word-messy,
  .aibook-word-clean {
    font-size: clamp(36px, 11.2vw, 54px) !important;
  }

  .aibook-word-transactions {
    font-size: clamp(39px, 11.8vw, 58px) !important;
  }

  .aibook-word-into,
  .aibook-word-plan {
    font-size: clamp(24px, 7vw, 36px) !important;
  }
}

/* ===== AI Bookkeeping screen 2 redesign + adaptive hero | v20260529-aibook-screen2-pro-11 ===== */

/* Hero title must be adaptive inside the content area, not viewport-sized chaos */
.aibook-hero-banner {
  container-type: inline-size;
}

.aibook-hero-title {
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 18px !important;
  padding: 0 !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
  overflow: visible !important;
}

.aibook-title-line {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: .14em !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  margin: 0 !important;
}

.aibook-title-line + .aibook-title-line {
  margin-top: 2px !important;
}

.aibook-word,
.aibook-word-turn,
.aibook-word-messy,
.aibook-word-transactions,
.aibook-word-into,
.aibook-word-clean,
.aibook-word-plan {
  display: inline-block !important;
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: 950 !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  transform: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none !important;
  overflow: visible !important;
}

.aibook-word-messy::after,
.aibook-word-clean::after {
  content: none !important;
  display: none !important;
}

.aibook-word-turn,
.aibook-word-into,
.aibook-word-plan {
  color: #07123d !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.aibook-word-turn {
  font-size: clamp(34px, 6.2cqw, 76px) !important;
}

.aibook-word-messy {
  font-size: clamp(34px, 6.2cqw, 76px) !important;
  color: transparent !important;
  background: linear-gradient(90deg, #ff3f7f 0%, #d73dff 52%, #5d5fff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-transactions {
  font-size: clamp(38px, 6.9cqw, 84px) !important;
  color: transparent !important;
  background: linear-gradient(180deg, #3d8cff 0%, #4c57ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-into {
  font-size: clamp(26px, 4.2cqw, 50px) !important;
}

.aibook-word-clean {
  font-size: clamp(34px, 6.2cqw, 76px) !important;
  color: transparent !important;
  background: linear-gradient(90deg, #14d4c0 0%, #17c7da 45%, #22b8b2 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-plan {
  font-size: clamp(27px, 4.5cqw, 54px) !important;
}

@media (max-width: 768px) {
  .aibook-title-line {
    justify-content: center !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: .08em .14em !important;
  }

  .aibook-word-turn,
  .aibook-word-messy,
  .aibook-word-clean {
    font-size: clamp(34px, 11vw, 54px) !important;
  }

  .aibook-word-transactions {
    font-size: clamp(38px, 12vw, 58px) !important;
  }

  .aibook-word-into,
  .aibook-word-plan {
    font-size: clamp(24px, 7.4vw, 38px) !important;
  }
}

/* Screen 2 premium card */
.aibook-shell {
  margin-top: 22px !important;
}

.aibook-main-card {
  position: relative !important;
  overflow: hidden !important;
  padding: clamp(24px, 3vw, 42px) !important;
  border: 1px solid rgba(210, 169, 95, .45) !important;
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 2% 0%, rgba(255, 246, 224, .78), transparent 25%),
    radial-gradient(circle at 88% 10%, rgba(255, 241, 209, .55), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(236, 250, 255, .45), transparent 30%),
    linear-gradient(135deg, #fffdf8 0%, #fffefa 46%, #f8fdff 100%) !important;
  box-shadow: 0 24px 70px rgba(92, 75, 44, .10) !important;
}

.aibook-main-card::before {
  content: "" !important;
  position: absolute !important;
  inset: -80px auto auto -70px !important;
  width: 240px !important;
  height: 240px !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(255, 219, 156, .34), transparent 68%) !important;
  pointer-events: none !important;
}

.aibook-card-head {
  position: relative !important;
  align-items: flex-start !important;
  margin-bottom: clamp(22px, 2.3vw, 34px) !important;
}

.aibook-card-label {
  color: #8a5a1d !important;
  font-size: clamp(11px, 1vw, 14px) !important;
  letter-spacing: .28em !important;
}

.aibook-card-label::before {
  content: "✦" !important;
  display: inline-flex !important;
  margin-right: 2px !important;
  color: #9a6b28 !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.aibook-workspace-title {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: .14em !important;
  max-width: 920px !important;
  margin: 14px 0 0 !important;
  font-family: inherit !important;
  font-size: clamp(40px, 5.5vw, 74px) !important;
  font-weight: 950 !important;
  line-height: .95 !important;
  letter-spacing: -.065em !important;
}

.aibook-workspace-title span {
  display: inline-block !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  transform: none !important;
}

.aibook-workspace-title span:first-child {
  color: #07123d !important;
}

.aibook-workspace-title span:last-child {
  color: transparent !important;
  background: linear-gradient(90deg, #168e8d 0%, #1572e8 54%, #3156e8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-limit-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 15px 22px !important;
  border: 1px solid rgba(210, 169, 95, .56) !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, .90) !important;
  color: #101735 !important;
  box-shadow: 0 14px 34px rgba(161, 117, 47, .14) !important;
  font-size: 15px !important;
}

.aibook-limit-pill::before {
  content: "✦" !important;
  color: #9a6b28 !important;
  font-size: 18px !important;
}

/* Form grids + labels */
.aibook-grid {
  gap: 22px !important;
  margin-bottom: 20px !important;
}

.aibook-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.aibook-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.aibook-field {
  gap: 10px !important;
}

.aibook-field > span {
  gap: 12px !important;
  color: #101735 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

.aibook-field-icon {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  background: transparent !important;
}

.aibook-field-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.aibook-field input,
.aibook-field select,
.aibook-field textarea,
.aibook-output {
  border: 1px solid rgba(214, 170, 100, .46) !important;
  border-radius: 17px !important;
  background: rgba(255,255,255,.78) !important;
  color: #111832 !important;
  box-shadow: 0 14px 28px rgba(92, 75, 44, .08) !important;
  font-size: 16px !important;
}

.aibook-field input,
.aibook-field select {
  min-height: 64px !important;
}

.aibook-field textarea {
  min-height: 118px !important;
}

.aibook-field input::placeholder,
.aibook-field textarea::placeholder {
  color: #8b93aa !important;
  opacity: .72 !important;
}

.aibook-field input:focus,
.aibook-field select:focus,
.aibook-field textarea:focus,
.aibook-output:focus {
  border-color: #14b8a6 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12), 0 14px 28px rgba(92, 75, 44, .09) !important;
}

/* Upload block like the reference */
.aibook-upload-box {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 20px !important;
  margin: 4px 0 24px !important;
  padding: 18px 26px !important;
  border: 1px dashed rgba(220, 157, 65, .70) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.46) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.aibook-upload-copy {
  align-items: center !important;
  gap: 24px !important;
}

.aibook-upload-icon {
  width: 92px !important;
  height: 92px !important;
  flex: 0 0 92px !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.84) !important;
  box-shadow: 0 14px 28px rgba(92, 75, 44, .12) !important;
  padding: 12px !important;
}

.aibook-upload-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.aibook-upload-copy strong {
  color: #101735 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
}

.aibook-upload-copy p {
  margin-top: 8px !important;
  color: #535d78 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.aibook-upload-button {
  min-height: 66px !important;
  padding: 0 34px !important;
  border: 1px solid rgba(220, 157, 65, .65) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #07535d 0%, #04847c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(9, 92, 95, .22), inset 0 1px 0 rgba(255,255,255,.25) !important;
  font-size: 18px !important;
}

.aibook-upload-button span::before {
  content: "↥" !important;
  margin-right: 12px !important;
  font-size: 24px !important;
  line-height: 0 !important;
}

/* Safety + actions */
.aibook-safety-note {
  align-items: center !important;
  gap: 14px !important;
  margin-top: 2px !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(220, 157, 65, .55) !important;
  border-radius: 17px !important;
  background: rgba(255, 253, 248, .76) !important;
  box-shadow: 0 10px 22px rgba(92, 75, 44, .06) !important;
}

.aibook-safety-icon {
  display: inline-flex !important;
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
}

.aibook-safety-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.aibook-safety-note p {
  color: #111832 !important;
  font-size: 14px !important;
}

.aibook-safety-note p strong {
  font-weight: 900 !important;
}

.aibook-actions {
  gap: 18px !important;
  margin-top: 18px !important;
}

.aibook-btn {
  min-height: 64px !important;
  border-radius: 18px !important;
  font-size: 18px !important;
  letter-spacing: -.02em !important;
}

.aibook-btn-ghost {
  padding: 0 30px !important;
  background: rgba(255,255,255,.78) !important;
  color: #101735 !important;
  border: 1px solid rgba(214, 170, 100, .42) !important;
  box-shadow: 0 12px 24px rgba(92, 75, 44, .08) !important;
}

.aibook-btn-primary {
  min-width: 370px !important;
  background: linear-gradient(135deg, #063ebf 0%, #06a7dd 100%) !important;
  border: 1px solid rgba(220, 157, 65, .55) !important;
  box-shadow: 0 14px 26px rgba(0, 92, 190, .24), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

@media (max-width: 900px) {
  .aibook-card-head {
    flex-direction: column !important;
  }

  .aibook-grid.two,
  .aibook-grid.three {
    grid-template-columns: 1fr !important;
  }

  .aibook-upload-box {
    grid-template-columns: 1fr !important;
  }

  .aibook-upload-button,
  .aibook-actions button,
  .aibook-btn-primary {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  .aibook-main-card {
    padding: 20px 14px !important;
    border-radius: 24px !important;
  }

  .aibook-workspace-title {
    font-size: clamp(32px, 10vw, 48px) !important;
  }

  .aibook-field > span {
    font-size: 15px !important;
  }

  .aibook-upload-copy {
    gap: 14px !important;
  }

  .aibook-upload-icon {
    width: 72px !important;
    height: 72px !important;
    flex-basis: 72px !important;
  }

  .aibook-upload-copy strong {
    font-size: 17px !important;
  }

  .aibook-upload-copy p {
    font-size: 13px !important;
  }
}

/* ===== AI Bookkeeping visual harmony fix | v20260529-aibook-harmony-12 ===== */

/* 1) Make all benefit arrows identical by default. Green only on hover/focus. */
.aibook-benefit-card .aibook-benefit-arrow,
.aibook-benefit-card-categories .aibook-benefit-arrow,
.aibook-benefit-card-import .aibook-benefit-arrow,
.aibook-benefit-card-summary .aibook-benefit-arrow {
  background: linear-gradient(135deg, #7e47ff 0%, #296cff 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(94, 94, 218, .24) !important;
}

.aibook-benefit-button:hover .aibook-benefit-arrow,
.aibook-benefit-button:focus-visible .aibook-benefit-arrow {
  background: linear-gradient(135deg, #18c6b4 0%, #20c997 100%) !important;
  box-shadow: 0 10px 20px rgba(32, 201, 151, .28) !important;
}

/* 2) Upper hero title in the same clean style as workspace title. */
.aibook-hero-title {
  display: block !important;
  width: 100% !important;
  max-width: min(100%, 800px) !important;
  margin: 12px 0 18px !important;
  padding: 0 !important;
  line-height: .95 !important;
  letter-spacing: -.065em !important;
  overflow: visible !important;
}

.aibook-title-line {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: .14em !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  margin: 0 !important;
  overflow: visible !important;
}

.aibook-title-line + .aibook-title-line {
  margin-top: 3px !important;
}

.aibook-word,
.aibook-word-turn,
.aibook-word-messy,
.aibook-word-transactions,
.aibook-word-into,
.aibook-word-clean,
.aibook-word-plan {
  display: inline-block !important;
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: 950 !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  transform: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none !important;
  overflow: visible !important;
}

.aibook-word-messy::after,
.aibook-word-clean::after {
  content: none !important;
  display: none !important;
}

.aibook-word-turn,
.aibook-word-into,
.aibook-word-plan {
  color: #07123d !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.aibook-word-turn {
  font-size: clamp(34px, 5.8cqw, 72px) !important;
}

.aibook-word-messy {
  font-size: clamp(34px, 5.8cqw, 72px) !important;
  color: transparent !important;
  background: linear-gradient(90deg, #14c9b8 0%, #2787ff 50%, #6337ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-transactions {
  font-size: clamp(38px, 6.45cqw, 80px) !important;
  color: transparent !important;
  background: linear-gradient(90deg, #14c9b8 0%, #2787ff 54%, #3156e8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-into {
  font-size: clamp(26px, 4.1cqw, 48px) !important;
}

.aibook-word-clean {
  font-size: clamp(34px, 5.8cqw, 72px) !important;
  color: transparent !important;
  background: linear-gradient(90deg, #14c9b8 0%, #2787ff 50%, #6337ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-plan {
  font-size: clamp(27px, 4.45cqw, 52px) !important;
}

/* 3) Screen 2 background: match the first hero, remove warm/gold mismatch. */
.aibook-main-card {
  border: 1px solid rgba(99, 102, 241, .18) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(125, 92, 255, .18), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, .20), transparent 36%),
    radial-gradient(circle at 60% 100%, rgba(147, 197, 253, .14), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 46%, #f5f3ff 100%) !important;
  box-shadow: 0 24px 70px rgba(37, 99, 235, .13) !important;
}

.aibook-main-card::before {
  background: radial-gradient(circle, rgba(125, 92, 255, .18), transparent 68%) !important;
}

.aibook-card-label {
  color: #4f37ff !important;
}

.aibook-card-label::before {
  color: #4f37ff !important;
}

.aibook-limit-pill {
  border: 1px solid rgba(99, 102, 241, .20) !important;
  background: rgba(255,255,255,.76) !important;
  color: #3730a3 !important;
  box-shadow: 0 14px 34px rgba(79, 70, 229, .12) !important;
}

.aibook-limit-pill::before {
  color: #4f37ff !important;
}

.aibook-field input,
.aibook-field select,
.aibook-field textarea,
.aibook-output {
  border-color: rgba(148, 163, 184, .30) !important;
  background: rgba(255,255,255,.80) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .07) !important;
}

.aibook-field input:focus,
.aibook-field select:focus,
.aibook-field textarea:focus,
.aibook-output:focus {
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .13), 0 14px 30px rgba(37, 99, 235, .08) !important;
}

.aibook-upload-box {
  border-color: rgba(99, 102, 241, .26) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .08), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(247,250,255,.72)) !important;
}

.aibook-upload-button {
  border-color: rgba(20, 184, 166, .42) !important;
  background: linear-gradient(135deg, #07535d 0%, #04847c 100%) !important;
}

.aibook-safety-note {
  border-color: rgba(99, 102, 241, .20) !important;
  background: rgba(255,255,255,.62) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .06) !important;
}

.aibook-btn-ghost {
  border-color: rgba(99, 102, 241, .20) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .07) !important;
}

.aibook-btn-primary {
  border-color: rgba(255,255,255,.34) !important;
  background: linear-gradient(135deg, #063ebf 0%, #06a7dd 100%) !important;
  box-shadow: 0 14px 26px rgba(0, 92, 190, .24), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

@media (max-width: 768px) {
  .aibook-title-line {
    justify-content: center !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: .08em .14em !important;
  }

  .aibook-word-turn,
  .aibook-word-messy,
  .aibook-word-clean {
    font-size: clamp(34px, 11vw, 54px) !important;
  }

  .aibook-word-transactions {
    font-size: clamp(38px, 12vw, 58px) !important;
  }

  .aibook-word-into,
  .aibook-word-plan {
    font-size: clamp(24px, 7.4vw, 38px) !important;
  }
}

/* ===== AI Bookkeeping compact desktop + normal hero title | v20260529-aibook-compact-title-13 ===== */

/* HERO TITLE: one shared typography system, no flex gaps between words */
.aibook-hero-title {
  display: block !important;
  width: 100% !important;
  max-width: 740px !important;
  margin: 12px 0 18px !important;
  padding: 0 !important;
  color: #07123d !important;
  font-size: clamp(38px, 4.55vw, 66px) !important;
  font-weight: 950 !important;
  line-height: 1.02 !important;
  letter-spacing: -.055em !important;
  overflow: visible !important;
}

.aibook-title-line {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  overflow: visible !important;
}

.aibook-title-line + .aibook-title-line {
  margin-top: 1px !important;
}

.aibook-word,
.aibook-word-turn,
.aibook-word-messy,
.aibook-word-transactions,
.aibook-word-into,
.aibook-word-clean,
.aibook-word-plan {
  display: inline !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  transform: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-shadow: none !important;
  overflow: visible !important;
}

.aibook-word-messy::after,
.aibook-word-clean::after {
  content: none !important;
  display: none !important;
}

.aibook-word-turn,
.aibook-word-into,
.aibook-word-plan {
  color: #07123d !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.aibook-word-messy,
.aibook-word-clean {
  color: transparent !important;
  background: linear-gradient(90deg, #14c9b8 0%, #2787ff 52%, #6337ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.aibook-word-transactions {
  color: transparent !important;
  background: linear-gradient(90deg, #2787ff 0%, #3d62ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* COMPACT SECOND SCREEN ON DESKTOP */
.aibook-shell {
  margin-top: 18px !important;
}

.aibook-main-card {
  padding: 24px !important;
  border-radius: 28px !important;
}

.aibook-card-head {
  margin-bottom: 18px !important;
  gap: 14px !important;
}

.aibook-card-label {
  font-size: 11px !important;
  letter-spacing: .18em !important;
}

.aibook-card-label::before {
  font-size: 15px !important;
}

.aibook-workspace-title {
  max-width: 760px !important;
  margin: 8px 0 0 !important;
  font-size: clamp(30px, 3.35vw, 46px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.052em !important;
  gap: .12em !important;
}

.aibook-limit-pill {
  padding: 10px 15px !important;
  font-size: 13px !important;
}

.aibook-limit-pill::before {
  font-size: 15px !important;
}

.aibook-grid {
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.aibook-field {
  gap: 7px !important;
}

.aibook-field > span {
  gap: 8px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

.aibook-field-icon {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
}

.aibook-field input,
.aibook-field select,
.aibook-field textarea,
.aibook-output {
  border-radius: 16px !important;
  font-size: 15px !important;
  padding: 12px 14px !important;
}

.aibook-field input,
.aibook-field select {
  min-height: 52px !important;
}

.aibook-field textarea {
  min-height: 118px !important;
}

.aibook-wide textarea {
  min-height: 150px !important;
}

.aibook-upload-box {
  margin: 2px 0 16px !important;
  padding: 14px 16px !important;
  gap: 14px !important;
  border-radius: 18px !important;
}

.aibook-upload-copy {
  gap: 14px !important;
}

.aibook-upload-icon {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
  border-radius: 18px !important;
  padding: 8px !important;
}

.aibook-upload-copy strong {
  font-size: 16px !important;
}

.aibook-upload-copy p {
  margin-top: 4px !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
}

.aibook-upload-button {
  min-height: 50px !important;
  padding: 0 20px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
}

.aibook-upload-button span::before {
  margin-right: 8px !important;
  font-size: 20px !important;
}

.aibook-safety-note {
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
}

.aibook-safety-icon {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
}

.aibook-safety-note p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.aibook-actions {
  gap: 12px !important;
  margin-top: 14px !important;
}

.aibook-btn {
  min-height: 52px !important;
  border-radius: 16px !important;
  font-size: 16px !important;
}

.aibook-btn-ghost {
  padding: 0 22px !important;
}

.aibook-btn-primary {
  min-width: 300px !important;
}

/* Keep the nice cold background, but without huge visual scale */
.aibook-main-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(125, 92, 255, .16), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, .18), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 48%, #f5f3ff 100%) !important;
}

@media (max-width: 1024px) {
  .aibook-hero-title {
    max-width: 100% !important;
    font-size: clamp(34px, 5.8vw, 58px) !important;
  }
}

@media (max-width: 900px) {
  .aibook-card-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .aibook-grid.two,
  .aibook-grid.three {
    grid-template-columns: 1fr !important;
  }

  .aibook-upload-box {
    grid-template-columns: 1fr !important;
  }

  .aibook-upload-button,
  .aibook-actions button,
  .aibook-btn-primary {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  .aibook-hero-title {
    text-align: center !important;
    font-size: clamp(34px, 10.5vw, 52px) !important;
    line-height: 1.03 !important;
  }

  .aibook-title-line {
    text-align: center !important;
  }

  .aibook-main-card {
    padding: 18px 14px !important;
    border-radius: 24px !important;
  }

  .aibook-workspace-title {
    font-size: clamp(28px, 8.2vw, 38px) !important;
  }

  .aibook-upload-copy {
    align-items: flex-start !important;
  }
}

/* ===== AI Bookkeeping mobile benefits centering | v20260529-aibook-mobile-benefits-center-14 ===== */
@media (max-width: 768px) {
  .aibook-benefits {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-items: center !important;
  }

  .aibook-benefit-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .aibook-benefit-button {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: 78px minmax(0, 1fr) 36px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .aibook-benefit-icon-wrap {
    justify-self: center !important;
  }
}

@media (max-width: 440px) {
  .aibook-benefit-button {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    padding-left: 12px !important;
    padding-right: 52px !important;
  }

  .aibook-benefit-arrow {
    right: 12px !important;
  }
}

/* ===== AI Bookkeeping formatted result view | v20260529-aibook-visual-result-21 ===== */
.aibook-rendered-output {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(99, 102, 241, .18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .08), transparent 28%),
    radial-gradient(circle at 100% 8%, rgba(6, 182, 212, .10), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
  box-shadow: 0 18px 44px rgba(37, 99, 235, .08);
  color: #111827;
}

.aibook-rendered-output[hidden] {
  display: none !important;
}

.aibook-rendered-output h2,
.aibook-rendered-output h3 {
  margin: 8px 0 2px;
  color: #07123d;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.aibook-rendered-output h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.aibook-rendered-output h3 {
  display: inline-flex;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 253, 245, .95), rgba(239, 246, 255, .95));
  color: #0f766e;
  font-size: clamp(18px, 2vw, 24px);
}

.aibook-rendered-output p {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.68;
}

.aibook-rendered-output strong {
  color: #07123d;
  font-weight: 900;
}

.aibook-rendered-output ul,
.aibook-rendered-output ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.aibook-rendered-output li {
  position: relative;
  padding: 11px 13px 11px 38px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  color: #334155;
  line-height: 1.5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.aibook-rendered-output ul li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
}

.aibook-rendered-output ol {
  counter-reset: aibookResultSteps;
}

.aibook-rendered-output ol li {
  counter-increment: aibookResultSteps;
}

.aibook-rendered-output ol li::before {
  content: counter(aibookResultSteps);
  position: absolute;
  left: 11px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.aibook-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .06);
}

.aibook-rendered-output table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.aibook-rendered-output th {
  padding: 13px 14px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #ffffff;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.aibook-rendered-output td {
  padding: 12px 14px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  color: #334155;
  vertical-align: top;
}

.aibook-rendered-output tr:nth-child(even) td {
  background: rgba(248, 250, 252, .75);
}

.aibook-edit-details {
  margin-top: 16px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
}

.aibook-edit-details summary {
  padding: 13px 16px;
  color: #3730a3;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.aibook-edit-details .aibook-output {
  min-height: 280px;
  margin: 0;
  border: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .aibook-rendered-output {
    padding: 16px 12px;
    border-radius: 22px;
  }

  .aibook-rendered-output li {
    padding-right: 10px;
  }

  .aibook-rendered-output table {
    min-width: 560px;
  }
}
/* ===== AI Bookkeeping report sections + premium loader | v20260529-aibook-report-loader-22 ===== */
.aibook-rendered-output { gap: 18px !important; }

.aibook-result-section {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(99, 102, 241, .14);
  border-radius: 22px;
  background: radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .055), transparent 30%), linear-gradient(135deg, rgba(255,255,255,.90), rgba(248,251,255,.78));
  box-shadow: 0 14px 34px rgba(37, 99, 235, .055);
}

.aibook-rendered-output > h2 {
  padding: 4px 2px 0;
  background: linear-gradient(90deg, #07123d 0%, #2563eb 52%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.aibook-rendered-output .aibook-result-section h3 { margin: 0 !important; }

.aibook-email-card {
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .075);
}

.aibook-email-subject {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  border-bottom: 1px solid rgba(148, 163, 184, .20);
}

.aibook-email-subject span {
  color: #4f46e5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.aibook-email-subject strong {
  color: #07123d;
  font-size: 16px;
  font-weight: 900;
}

.aibook-email-body { display: grid; gap: 12px; padding: 16px; }
.aibook-email-body p { margin: 0 !important; color: #334155; line-height: 1.62; }

.aibook-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, .14), transparent 28%), radial-gradient(circle at 80% 25%, rgba(6, 182, 212, .16), transparent 30%), rgba(241, 246, 255, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.aibook-loader[hidden] { display: none !important; }

.aibook-loader-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, .10) 0 1px, transparent 1px), linear-gradient(0deg, rgba(15, 23, 42, .08) 0 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .18;
  pointer-events: none;
}

.aibook-loader-box {
  position: relative;
  isolation: isolate;
  width: min(720px, 92vw);
  min-height: 560px;
  overflow: hidden;
  padding: 54px clamp(22px, 5vw, 70px) 58px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 38px;
  background: radial-gradient(circle at 10% 10%, rgba(255,255,255,.98), transparent 28%), radial-gradient(circle at 88% 84%, rgba(244, 226, 255, .60), transparent 30%), radial-gradient(circle at 12% 92%, rgba(207, 246, 255, .72), transparent 34%), linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.92));
  box-shadow: 0 34px 90px rgba(37, 99, 235, .18), inset 0 1px 0 rgba(255,255,255,.95);
  text-align: center;
}

.aibook-loader-box::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -34%;
  height: 48%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.82), transparent 55%), linear-gradient(135deg, rgba(220, 245, 255, .78), rgba(248, 235, 255, .62));
  z-index: -1;
}

.aibook-loader-spark {
  position: absolute;
  color: #fbbf24;
  font-weight: 900;
  text-shadow: 0 8px 20px rgba(251, 191, 36, .18);
  animation: aibookFloat 2.6s ease-in-out infinite;
}

.aibook-loader-spark-one { top: 78px; left: 28%; font-size: 23px; }
.aibook-loader-spark-two { top: 78px; right: 28%; font-size: 25px; animation-delay: .3s; }
.aibook-loader-spark-three { top: 92px; right: 17%; color: #22d3ee; font-size: 16px; animation-delay: .6s; }

.aibook-loader-illu {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .12);
  animation: aibookFloat 3.2s ease-in-out infinite;
}

.aibook-loader-illu-receipt { top: 128px; left: 70px; transform: rotate(-11deg); }
.aibook-loader-illu-receipt span { color: #2563eb; font-size: 25px; }
.aibook-loader-illu-receipt b { position: absolute; right: 9px; bottom: 9px; width: 22px; height: 22px; border-radius: 999px; background: linear-gradient(135deg, #34d399, #14b8a6); }
.aibook-loader-illu-receipt b::after { content: "✓"; color: #fff; font-size: 15px; font-weight: 900; }

.aibook-loader-illu-chart { bottom: 210px; left: 80px; transform: rotate(-12deg); grid-template-columns: repeat(3, 10px); align-items: end; gap: 6px; }
.aibook-loader-illu-chart i { display: block; width: 10px; border-radius: 999px; background: linear-gradient(180deg, #22d3ee, #7c3aed); }
.aibook-loader-illu-chart i:nth-child(1) { height: 28px; }
.aibook-loader-illu-chart i:nth-child(2) { height: 42px; }
.aibook-loader-illu-chart i:nth-child(3) { height: 34px; }

.aibook-loader-illu-pie { right: 76px; bottom: 210px; border-radius: 999px; animation-delay: .4s; }
.aibook-loader-illu-pie span { width: 52px; height: 52px; border-radius: 999px; background: conic-gradient(#14b8a6 0 72%, #2563eb 72% 88%, #ff4f9a 88% 100%); }

.aibook-loader-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 166px;
  height: 166px;
  margin: 10px auto 28px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0 54%, rgba(255,255,255,.82) 55% 66%, transparent 67%);
  box-shadow: 0 18px 44px rgba(90, 92, 230, .16);
}

.aibook-loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.aibook-loader-ring-bg, .aibook-loader-ring-progress { fill: none; stroke-width: 12; }
.aibook-loader-ring-bg { stroke: rgba(148, 163, 184, .20); }
.aibook-loader-ring-progress { stroke: #7c3aed; stroke-linecap: round; stroke-dasharray: 301.592; stroke-dashoffset: 301.592; transition: stroke-dashoffset .35s ease; filter: drop-shadow(0 0 12px rgba(124, 58, 237, .45)); }

.aibook-loader-orb::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, #22d3ee, #2563eb, #d946ef, #ff4f9a, #22d3ee);
  opacity: .28;
  filter: blur(9px);
  z-index: -1;
  animation: aibookSpin 2.8s linear infinite;
}

.aibook-loader-orb span { position: relative; color: #111b6a; font-size: 46px; font-weight: 950; letter-spacing: -.07em; }

.aibook-loader-box h3 {
  margin: 0;
  color: #10165e;
  font-size: clamp(35px, 5.4vw, 58px);
  font-weight: 950;
  line-height: .96;
  letter-spacing: -.055em;
}

.aibook-loader-box h3 span { color: transparent; background: linear-gradient(90deg, #2787ff, #2563eb); -webkit-background-clip: text; background-clip: text; }
.aibook-loader-box p { display: inline-block; margin: 22px 0 34px; color: #5b67a3; font-size: clamp(17px, 2vw, 22px); font-weight: 700; }

.aibook-loader-track {
  position: relative;
  width: min(580px, 100%);
  height: 34px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, .07);
}

.aibook-loader-track i {
  position: absolute;
  inset: 5px auto 5px 5px;
  width: 0%;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.8) 0 2px, transparent 3px), radial-gradient(circle at 48% 55%, rgba(255,255,255,.7) 0 2px, transparent 3px), radial-gradient(circle at 72% 45%, rgba(255,255,255,.8) 0 3px, transparent 4px), linear-gradient(90deg, #2563eb, #22d3ee, #d946ef);
  box-shadow: 0 0 20px rgba(34, 211, 238, .45);
  transition: width .32s ease;
}

@keyframes aibookSpin { to { transform: rotate(360deg); } }
@keyframes aibookFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 768px) {
  .aibook-loader-box { width: min(94vw, 520px); min-height: 500px; padding: 42px 18px 44px; border-radius: 30px; }
  .aibook-loader-illu { width: 54px; height: 54px; }
  .aibook-loader-illu-receipt { top: 105px; left: 24px; }
  .aibook-loader-illu-chart { left: 28px; bottom: 190px; }
  .aibook-loader-illu-pie { right: 26px; bottom: 190px; }
  .aibook-loader-orb { width: 138px; height: 138px; margin-top: 12px; }
  .aibook-loader-orb span { font-size: 38px; }
  .aibook-loader-box p { margin-bottom: 26px; font-size: 16px; }
  .aibook-loader-track { height: 30px; }
}

/* ===== AI Bookkeeping clean loader without emoji clutter | v20260529-aibook-loader-clean-23 ===== */
.aibook-loader-spark,
.aibook-loader-illu,
.aibook-loader-illu-receipt,
.aibook-loader-illu-chart,
.aibook-loader-illu-pie {
  display: none !important;
}

.aibook-loader-box {
  min-height: 470px !important;
  padding-top: clamp(44px, 5vw, 62px) !important;
  padding-bottom: clamp(42px, 5vw, 58px) !important;
}

.aibook-loader-orb {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

.aibook-loader-box h3 {
  position: relative !important;
  z-index: 2 !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.aibook-loader-box p {
  position: relative !important;
  z-index: 2 !important;
}

.aibook-loader-track {
  position: relative !important;
  z-index: 2 !important;
}

@media (max-width: 768px) {
  .aibook-loader-box {
    min-height: 430px !important;
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }
}
