:root {
  color-scheme: light;
  --bg: #faf8f3;      /* Warm cream paper */
  --paper: #ffffff;
  --ink: #2d2d2d;      /* Charcoal black for outlines */
  --muted: #626560;
  --line: #2d2d2d;
  --teal: #5cb3e6;    /* Crayon Blue for Alipay */
  --coral: #ff8e9e;   /* Pajama Pink for Expenses */
  --gold: #ffd043;    /* Pajama Yellow for Warnings/Labels */
  --blue: #4a90e2;    /* Action Mask Blue */
  --green: #7dcf95;   /* Chocobi Green for WeChat */
  --shadow: 6px 6px 0px #2d2d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(250, 248, 243, 0.94), rgba(244, 241, 232, 0.96)),
    repeating-linear-gradient(90deg, rgba(45, 45, 45, 0.02) 0 1px, transparent 1px 48px);
  color: var(--ink);
  font-family:
    "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  padding-bottom: 60px;
}

h1, h2, h3, .kpi .value, .eyebrow, button, .demo-btn, .upload-dropzone strong, .whiteboard-note {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px min(5vw, 64px) 24px;
  border-bottom: 3.5px solid var(--line);
  background: var(--paper);
  border-radius: 0 0 24px 24px;
  margin: 0 min(3vw, 32px) 20px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: #d55c3b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 800;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 16px min(5vw, 64px) 56px;
}

/* Upload Panel Comic Styling */
.upload-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--paper);
  border: 3.5px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.upload-intro {
  display: grid;
  grid-template-columns: minmax(320px, 500px) 1fr;
  gap: 24px;
  align-items: center;
}

.shinchan-welcome-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fcfbf7;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 4px 4px 0 var(--line);
  transform: rotate(-1deg);
}

.welcome-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}

.speech-bubble-welcome {
  flex: 1;
  background: #fdfbeb;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  position: relative;
  box-shadow: 2px 2px 0 var(--line);
}

.speech-bubble-welcome p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.speech-bubble-welcome button {
  background: var(--gold);
  color: var(--ink);
  border: 2.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
  width: 100%;
  transition: transform 0.1s, box-shadow 0.1s;
}

.speech-bubble-welcome button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line);
}

.speech-bubble-welcome::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent var(--line) transparent transparent;
}

.speech-bubble-welcome::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent #fdfbeb transparent transparent;
}

.upload-instructions h2 {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  color: #d55c3b;
  margin-bottom: 8px;
}

.upload-instructions p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.upload-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 20px;
  border: 3px dashed var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: all 200ms ease;
  background: #fdfbf7;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.upload-dropzone:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--line);
}

.upload-dropzone strong {
  font-size: 16px;
  font-weight: bold;
}

.upload-dropzone span {
  color: var(--muted);
  font-size: 13px;
}

/* Alipay & WeChat Dropzones Styled like Toy Boxes */
.upload-dropzone[data-kind="alipay"] {
  color: #2b7bc4;
  background-color: rgba(92, 179, 230, 0.06);
}
.upload-dropzone[data-kind="alipay"]:hover {
  background-color: rgba(92, 179, 230, 0.12);
}

.upload-dropzone[data-kind="wechat"] {
  color: #3f995f;
  background-color: rgba(125, 207, 149, 0.06);
}
.upload-dropzone[data-kind="wechat"]:hover {
  background-color: rgba(125, 207, 149, 0.12);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}

.upload-dropzone-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  pointer-events: none;
}

.upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
}

.upload-status {
  color: var(--muted);
  font-size: 14px;
  font-weight: bold;
}

.upload-status.error {
  color: #bd3e34;
}

.upload-footer button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 3.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--line);
  transition: all 100ms ease;
}

.upload-footer button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}

.period {
  color: var(--muted);
  font-size: 15px;
  font-weight: bold;
  text-align: right;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi,
.panel,
.insight {
  background: var(--paper);
  border: 3.5px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.kpi:hover,
.panel:hover,
.insight:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--line);
}

.kpi {
  min-height: 132px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

/* Pajama colored decorative tabs at the top-left of each KPI card */
.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gold);
}
.kpis article:nth-child(2)::before { background: var(--green); }
.kpis article:nth-child(3)::before { background: var(--teal); }
.kpis article:nth-child(4)::before { background: var(--coral); }

.kpi .label {
  color: var(--muted);
  font-size: 13px;
  font-weight: bold;
}

.kpi .value {
  margin-top: 12px;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}

.kpi .sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.kpis article:nth-child(1) .value {
  color: #bd3e34;
}

.kpis article:nth-child(2) .value {
  color: #3f995f;
}

.kpis article:nth-child(3) .value {
  color: #2b7bc4;
}

.kpis article:nth-child(4) .value {
  color: var(--blue);
}

.platform-split {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.platform-split.inline {
  display: inline-flex;
  vertical-align: middle;
}

.channel-wechat {
  color: #3f995f;
  font-weight: 800;
}

.channel-alipay {
  color: #2b7bc4;
  font-weight: 800;
}

.channel-sep {
  color: var(--muted);
  font-weight: 400;
}

.channel-empty {
  color: var(--muted);
}

.badge.success {
  background: rgba(125, 207, 149, 0.18);
  color: #3f995f;
  border: 1.5px solid #3f995f;
}

.badge.invalid {
  background: rgba(255, 142, 158, 0.15);
  color: #e54b64;
  border: 1.5px solid #e54b64;
}

.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.insight {
  padding: 16px 18px;
}

.insight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gold);
}
.insights article:nth-child(2)::before { background: var(--teal); }
.insights article:nth-child(3)::before { background: var(--coral); }

.insight strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  color: var(--ink);
}

.insight span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel {
  min-width: 0;
  padding: 20px;
}

.panel.full {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bars {
  display: grid;
  gap: 12px;
}

.bars.compact {
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(86px, 145px) 1fr minmax(76px, max-content);
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

.bar-label,
.bar-value {
  font-size: 14px;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-value {
  color: var(--muted);
  text-align: right;
}

.track {
  height: 12px;
  overflow: hidden;
  background: #e8e0d4;
  border-radius: 999px;
}

.fill {
  height: 100%;
  min-width: 3px;
  background: var(--teal);
  border-radius: inherit;
}

.bar-row:nth-child(2n) .fill {
  background: var(--coral);
}

.bar-row:nth-child(3n) .fill {
  background: var(--gold);
}

.bar-row:nth-child(4n) .fill {
  background: var(--blue);
}

.line-chart {
  min-height: 240px;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: 220px;
}

.axis-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 96px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.weekday {
  display: grid;
  align-items: end;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.weekday .stick {
  width: 100%;
  min-height: 4px;
  background: var(--green);
  border-radius: 6px 6px 0 0;
}

.weekday span {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap.scrollable {
  max-height: 420px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.table-wrap.scrollable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 253, 248, 0.98);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rank-table {
  table-layout: fixed;
}

.rank-table .col-name {
  width: 32%;
}

.rank-table .col-money {
  width: 13%;
}

.rank-table .col-count {
  width: 8%;
}

.rank-table .col-channel {
  width: 20%;
}

.rank-table .col-freq {
  width: 14%;
}

.rank-table th:not(:first-child),
.rank-table td.money,
.rank-table td.num,
.rank-table td.channel-cell {
  text-align: right;
}

th,
td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

td.money,
td.num,
td.channel-cell {
  white-space: nowrap;
}

td.channel-cell .platform-split {
  justify-content: flex-end;
}

.store-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.store {
  max-width: min(320px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge.food {
  flex-shrink: 0;
  background: rgba(213, 92, 59, 0.12);
  color: var(--coral);
}

.rank-list,
.transaction-list {
  display: grid;
  gap: 10px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  min-height: 128px;
  padding: 16px;
  background: #f8f4eb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.platform-card strong {
  display: block;
  font-size: 16px;
}

.platform-card .amount {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 850;
}

.platform-card .meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.platform-card .track {
  margin-top: 14px;
}

.rank-item,
.txn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child,
.txn:last-child {
  border-bottom: 0;
}

.rank-name,
.txn-title {
  font-weight: 750;
}

.rank-meta,
.txn-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rank-money,
.txn-money {
  font-weight: 850;
  white-space: nowrap;
}

.table-hint {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.detail-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 220px));
  gap: 10px;
  margin-bottom: 14px;
}

.detail-controls input,
.detail-controls select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}

.detail-table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-table {
  min-width: 1180px;
}

.detail-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2eee6;
}

.detail-table tbody tr:hover {
  background: rgba(36, 124, 122, 0.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge.expense {
  color: #bd3e34;
  background: #ffe1df;
}

.badge.income {
  color: #21734b;
  background: #d8f5e4;
}

.badge.neutral {
  color: #6d5a1f;
  background: #f2e6bd;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.pager button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.pager button:disabled {
  color: #b6b0a6;
  cursor: not-allowed;
}

.day-header-row {
  background: #f2eee6 !important;
}

.day-header-row td {
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--line);
}

.day-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.day-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-date {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.day-weekday {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(35, 37, 34, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.day-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.day-summary-item strong {
  color: var(--ink);
}

.day-summary-item.expense strong {
  color: #bd3e34;
}

.day-summary-item.income strong {
  color: #21734b;
}

.platform-cell,
.merchant-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.platform-cell svg,
.merchant-cell svg,
.platform-logo-img {
  flex-shrink: 0;
  display: block;
}

.platform-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}

.upload-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 200ms ease;
}

.upload-dropzone:hover .upload-icon-img,
.upload-dropzone.drag-over .upload-icon-img {
  transform: translateY(-3px);
}

.merchant-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-table tbody tr.day-header-row:hover {
  background: #f2eee6;
}

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

.fun-card {
  background: var(--paper);
  border: 3.5px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.fun-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
}

.fun-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fun-card h3 svg {
  flex-shrink: 0;
}

.fun-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.fun-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 2px dashed var(--line);
}

.fun-item:last-child {
  border-bottom: none;
}

.fun-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fun-item-name {
  font-weight: bold;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fun-item-desc {
  font-size: 11px;
  color: var(--muted);
  background: rgba(35, 37, 34, 0.06);
  border: 1.5px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fun-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}

.fun-item-val {
  font-weight: 850;
  color: var(--ink);
}

.fun-item-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.fun-card-footer {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(92, 179, 230, 0.06);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 5px solid var(--teal);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
}

/* Whiteboard styling */
.whiteboard-panel {
  border: 12px solid #8b5a2b !important; /* dark wooden frame */
  border-radius: 16px;
  background: #ffffff !important;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 6px 6px 0px #2d2d2d !important;
  padding: 28px 20px 20px !important;
  position: relative;
  /* Dry erase whiteboard texture */
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
}
.whiteboard-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 12px;
  background: #2d2d2d;
  border-radius: 4px;
}
.pushpin {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: #ff8e9e; /* rose pin */
  border-radius: 50%;
  border: 2.2px solid #2d2d2d;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  z-index: 2;
}
.pushpin::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 5px;
  width: 2px;
  height: 6px;
  background: #2d2d2d;
}
.whiteboard-note {
  position: absolute;
  top: 8px;
  left: 15px;
  background: #fdfbeb;
  border: 2px solid #2d2d2d;
  padding: 4px 8px;
  transform: rotate(-6deg);
  font-size: 12px;
  font-weight: 950 !important;
  color: #bd3e34;
  box-shadow: 2px 2px 0 #2d2d2d;
  z-index: 2;
}

/* Receipt tape styling for transactions details */
.receipt-panel {
  background: #ffffff;
  border: 3.5px solid #2d2d2d !important;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
  padding: 24px;
}
.receipt-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 10px;
  right: 10px;
  height: 6px;
  background-image: linear-gradient(135deg, transparent 50%, #2d2d2d 50%),
                    linear-gradient(225deg, transparent 50%, #2d2d2d 50%);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  z-index: 2;
}
.receipt-panel::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10px;
  right: 10px;
  height: 6px;
  background-image: linear-gradient(45deg, transparent 50%, #2d2d2d 50%),
                    linear-gradient(315deg, transparent 50%, #2d2d2d 50%);
  background-size: 12px 12px;
  background-repeat: repeat-x;
  z-index: 2;
}

/* Shin-chan Reaction panel style */
.shinchan-reaction-panel {
  margin-bottom: 24px;
  background: var(--paper);
  border: 3.5px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.reaction-flex {
  display: flex;
  align-items: center;
  gap: 24px;
}
.reaction-img-wrap {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border: 3.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--line);
}
.reaction-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reaction-bubble {
  position: relative;
  background: #fdfbeb;
  border: 3.5px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  flex: 1;
  box-shadow: 4px 4px 0 var(--line);
}
.reaction-bubble p {
  margin: 0;
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif !important;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}
.reaction-bubble::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent var(--line) transparent transparent;
}
.reaction-bubble::after {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent #fdfbeb transparent transparent;
}

/* Chart SVG style overrides to fit the crayon theme */
.line-chart svg path[stroke="#247c7a"] {
  stroke: var(--blue) !important;
  stroke-width: 5px !important;
}
.line-chart svg path[fill="rgba(36, 124, 122, 0.13)"] {
  fill: rgba(92, 179, 230, 0.15) !important;
}
.line-chart svg circle {
  fill: var(--coral) !important;
  stroke: var(--ink) !important;
  stroke-width: 2px !important;
  r: 6 !important;
}
.line-chart svg text {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif !important;
  font-weight: bold;
  fill: var(--ink) !important;
}

/* Platform Stats Cards style overrides */
.platform-card {
  background: var(--paper) !important;
  border: 3px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 4px 4px 0 var(--line) !important;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.platform-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--line) !important;
}
.platform-card strong {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif !important;
}
.platform-card .amount {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif !important;
  color: var(--coral);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .period {
    text-align: left;
  }

  .kpis,
  .insights,
  .two,
  .fun-grid,
  .platform-grid,
  .detail-controls,
  .upload-panel {
    grid-template-columns: 1fr;
  }

  .upload-dropzone {
    width: 100%;
  }

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

  .upload-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-intro {
    grid-template-columns: 1fr;
  }

  .shinchan-welcome-card {
    transform: none;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-hint {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  :root {
    --shadow: 4px 4px 0px #2d2d2d;
  }

  body {
    padding-bottom: 24px;
  }

  .topbar {
    gap: 12px;
    margin: 0 10px 14px;
    padding: 18px 16px 16px;
    border-width: 3px;
    border-radius: 0 0 18px 18px;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.25;
  }

  h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  h2 {
    font-size: 19px;
  }

  .period {
    font-size: 13px;
    line-height: 1.4;
  }

  main {
    padding: 10px 12px 32px;
  }

  .upload-panel,
  .shinchan-reaction-panel,
  .panel,
  .receipt-panel {
    border-width: 3px;
    border-radius: 16px;
    padding: 16px;
  }

  .upload-panel {
    gap: 16px;
    margin-bottom: 16px;
  }

  .upload-intro {
    gap: 14px;
  }

  .shinchan-welcome-card {
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .welcome-img {
    width: 92px;
    height: 92px;
  }

  .speech-bubble-welcome {
    padding: 10px 12px;
  }

  .speech-bubble-welcome p,
  .upload-instructions p {
    font-size: 13px;
    line-height: 1.55;
  }

  .upload-actions {
    gap: 12px;
  }

  .upload-dropzone {
    min-height: 132px;
    gap: 8px;
    padding: 16px 12px;
    border-width: 2.5px;
  }

  .upload-dropzone-content {
    gap: 8px;
  }

  .upload-icon-img {
    width: 32px;
    height: 32px;
  }

  .upload-dropzone strong {
    font-size: 15px;
  }

  .upload-dropzone span,
  .upload-status {
    font-size: 12px;
    line-height: 1.45;
  }

  .upload-footer button,
  .pager button,
  .detail-controls input,
  .detail-controls select {
    min-height: 44px;
  }

  .kpis,
  .insights,
  .grid {
    gap: 12px;
  }

  .kpi {
    min-height: 108px;
    padding: 14px;
  }

  .kpi .value {
    font-size: 28px;
  }

  .insight,
  .fun-card,
  .platform-card {
    padding: 14px;
  }

  .panel.full,
  .grid {
    margin-top: 14px;
  }

  .panel-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .whiteboard-panel {
    border-width: 8px !important;
    padding: 22px 14px 14px !important;
  }

  .whiteboard-panel::before {
    top: -8px;
    height: 8px;
  }

  .whiteboard-note {
    left: 10px;
    font-size: 10px;
  }

  .line-chart {
    min-height: 200px;
  }

  .line-chart svg {
    height: 190px;
  }

  .mini-bars {
    min-height: 80px;
    gap: 5px;
    margin-top: 12px;
  }

  .bar-row {
    grid-template-columns: 1fr minmax(72px, max-content);
    gap: 8px;
  }

  .track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bar-value {
    font-size: 13px;
  }

  .platform-grid {
    gap: 10px;
  }

  .platform-card {
    min-height: 112px;
  }

  .platform-card .amount {
    font-size: 21px;
  }

  .rank-item,
  .txn {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rank-money,
  .txn-money {
    text-align: left;
  }

  .table-wrap.scrollable {
    max-height: 340px;
  }

  .rank-table {
    min-width: 680px;
  }

  .detail-controls {
    gap: 8px;
  }

  .detail-controls input,
  .detail-controls select {
    border-width: 2px;
    font-size: 16px;
  }

  .detail-table-wrap {
    max-height: 520px;
    border-width: 2px;
    border-radius: 12px;
  }

  .detail-table {
    min-width: 980px;
    font-size: 13px;
  }

  th,
  td {
    padding: 9px 6px;
  }

  .pager {
    align-items: stretch;
    flex-direction: column;
  }

  .pager div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .day-header-content,
  .day-right {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .merchant-name {
    max-width: 160px;
  }

  .fun-grid {
    gap: 12px;
  }

  .fun-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .fun-item-right {
    margin-left: 0;
  }

  .reaction-flex {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .reaction-img-wrap {
    width: 120px;
    height: 120px;
  }
  .reaction-bubble::before {
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    border-color: transparent transparent var(--line) transparent;
  }
  .reaction-bubble::after {
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    border-color: transparent transparent #fdfbeb transparent;
  }
}

@media (max-width: 430px) {
  .shinchan-welcome-card {
    flex-direction: column;
  }

  .welcome-img {
    width: 100%;
    height: 150px;
  }

  .speech-bubble-welcome::before,
  .speech-bubble-welcome::after {
    display: none;
  }

  .receipt-panel,
  .shinchan-reaction-panel,
  .upload-panel,
  .panel {
    padding: 14px;
  }

  .reaction-img-wrap {
    width: 104px;
    height: 104px;
  }

  .reaction-bubble {
    padding: 14px;
  }

  .reaction-bubble p {
    font-size: 16px;
  }
}

/* Food Analysis Panel Styles */
.food-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.food-kpi-card {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 3px 3px 0 var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.food-kpi-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}

.food-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--card-border, var(--gold));
}

.food-kpi-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: bold;
}

.food-kpi-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin-top: 8px;
}

.food-kpi-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.food-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.food-details-card {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--line);
}

.food-details-card h3 {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
}

.food-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.food-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 8px 6px;
  border-bottom: 2px solid var(--line);
}

.food-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.food-table tbody tr:hover {
  background: rgba(213, 92, 59, 0.05);
}

.food-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  margin-top: 20px;
}

.food-takeout-card {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.food-takeout-card h3 {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
}

.takeout-stat-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 14px 0;
  background: #fbfbf9;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid var(--line);
}

.takeout-stat-item {
  text-align: center;
}

.takeout-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.takeout-stat-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin-top: 4px;
}

.takeout-stat-sep {
  border-left: 2px solid var(--line);
  height: 32px;
}

.takeout-quote {
  font-size: 13px;
  color: var(--ink);
  font-style: italic;
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: #fffdf2;
  border-radius: 6px;
  line-height: 1.5;
  border: 2px solid var(--line);
  border-left-width: 6px;
  box-shadow: 2px 2px 0 var(--line);
}

/* Responsive design for food section */
@media (max-width: 1024px) {
  .food-details-grid,
  .food-bottom-grid {
    grid-template-columns: 1fr;
  }
  .food-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .food-kpis-grid {
    grid-template-columns: 1fr;
  }
}

/* Presentation Mode (Annual Report Slideshow) */
body.presentation-active {
  overflow: hidden;
  padding-bottom: 0;
}

.presentation-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.presentation-stage {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.presentation-view.is-fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  max-height: 100svh;
  max-width: none;
  margin: 0;
  background-color: #faf5eb;
  background-image: radial-gradient(var(--green) 1px, transparent 0), radial-gradient(var(--green) 1px, #faf5eb 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow: auto;
  animation: fadeIn 300ms ease-out;
}

.presentation-view.is-fullscreen .presentation-stage {
  width: min(1120px, 92vw, calc((100svh - 156px) * 16 / 9));
  max-width: 1120px;
  flex: 0 0 auto;
  gap: 12px;
  margin: auto;
}

.presentation-view.is-fullscreen .report-slide-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.presentation-view.is-fullscreen .report-slide-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  padding: clamp(18px, 2.4vw, 36px);
  gap: clamp(14px, 2vw, 32px);
  border-radius: clamp(14px, 1.6vw, 24px);
  box-shadow: 8px 8px 0 var(--line);
  align-items: stretch;
  overflow: hidden;
}

.presentation-view.is-fullscreen .report-slide-left,
.presentation-view.is-fullscreen .report-slide-right {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.presentation-view.is-fullscreen .report-slide-left {
  flex: 1.05;
  justify-content: center;
}

.presentation-view.is-fullscreen .report-slide-right {
  flex: 0.95;
  justify-content: center;
  gap: clamp(12px, 1.6vh, 20px);
}

.presentation-view.is-fullscreen .report-slide-title {
  font-size: clamp(28px, 4.2vw, 52px);
}

.presentation-view.is-fullscreen .report-slide-subtitle {
  font-size: clamp(13px, 1.4vw, 18px);
}

.presentation-view.is-fullscreen .report-slide-large-val {
  font-size: clamp(36px, 5.5vw, 72px);
}

.presentation-view.is-fullscreen .report-slide-img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  object-fit: cover;
}

.presentation-view.is-fullscreen .report-slide-bubble {
  font-size: clamp(13px, 1.4vw, 17px);
  padding: clamp(10px, 1.4vw, 18px) clamp(14px, 1.8vw, 22px);
}

.presentation-view.is-fullscreen .report-slide-stat-item {
  font-size: clamp(14px, 1.6vw, 18px);
}

.presentation-view.is-fullscreen .report-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--line);
}

.presentation-view.is-fullscreen .report-loading-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(16px, 2.5vh, 28px);
  padding: clamp(12px, 2vw, 24px);
  width: 100%;
  height: 100%;
}

.presentation-view.is-fullscreen .report-loading-stage img {
  max-height: min(34vh, 220px);
  width: auto;
  border: 4px solid var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--line);
  object-fit: cover;
}

.presentation-view.is-fullscreen .report-loading-text {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  color: #d55c3b;
  min-height: 40px;
  max-width: 90%;
}

.presentation-view.is-fullscreen .report-loading-track {
  width: min(560px, 88%);
  height: 24px;
  border: 3.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--line);
}

.presentation-view.is-fullscreen .report-loading-bar {
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width 80ms ease-out;
}

.presentation-view.is-fullscreen .report-loading-percent {
  font-weight: 900;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ink);
}

.scroll-view.is-revealed {
  animation: scrollReveal 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes scrollReveal {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #faf5eb;
  background-image: radial-gradient(var(--green) 1px, transparent 0), radial-gradient(var(--green) 1px, #faf5eb 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  box-sizing: border-box;
  animation: fadeIn 300ms ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.report-header {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3.5px solid var(--line);
  padding-bottom: 12px;
}

.report-logo {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  font-size: 24px;
  color: #d55c3b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-close-btn {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
  transition: all 100ms ease;
}

.report-close-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line);
}

.report-slide-viewport {
  flex: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.report-slide-card {
  width: 100%;
  height: 100%;
  max-height: 540px;
  background: var(--paper);
  border: 4px solid var(--line);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--line);
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.report-slide-card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: rgba(36, 124, 122, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.report-slide-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  height: 100%;
}

.report-slide-right {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
}

.report-slide-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 4px solid var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--line);
}

.report-slide-bubble {
  background: #fdfbeb;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 2px 2px 0 var(--line);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.report-slide-bubble::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent var(--line) transparent;
}

.report-slide-bubble::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #fdfbeb transparent;
}

.report-slide-title {
  font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
  font-size: clamp(24px, 3.2vw, 36px);
  color: #bd3e34;
  margin: 0;
}

.report-slide-subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: bold;
}

.report-slide-large-val {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  color: #bd3e34;
  line-height: 1.1;
  margin: 8px 0;
  letter-spacing: -1px;
}

.report-slide-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.report-slide-stat-item {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-slide-stat-item strong {
  color: #d55c3b;
  font-weight: 900;
}

.report-controls {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3.5px solid var(--line);
  padding-top: 16px;
}

.report-nav-btn {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
  transition: all 100ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-nav-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}

.report-nav-btn:disabled {
  background: #f2eee6;
  color: #b6b0a6;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.report-dots {
  display: flex;
  gap: 8px;
}

.report-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: all 150ms ease;
}

.report-dot.active {
  background: #d55c3b;
  transform: scale(1.25);
  box-shadow: 1px 1px 0 var(--line);
}

.report-launch-btn {
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
  transition: all 100ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-launch-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--line);
}

@media (max-width: 768px) {
  .presentation-view.is-fullscreen {
    padding:
      max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    justify-content: flex-start;
  }

  .presentation-view.is-fullscreen .presentation-stage {
    width: min(100%, calc((100svh - 120px) * 4 / 3));
    max-width: 100%;
    margin-top: auto;
    margin-bottom: auto;
  }

  .presentation-view.is-fullscreen .report-slide-viewport {
    aspect-ratio: 4 / 5;
    max-height: calc(100svh - 168px);
  }

  .presentation-view.is-fullscreen .report-slide-card {
    flex-direction: column;
    padding: 14px;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .presentation-view.is-fullscreen .report-slide-left,
  .presentation-view.is-fullscreen .report-slide-right {
    width: 100%;
    flex: none;
  }

  .presentation-view.is-fullscreen .report-slide-img {
    flex: none;
    min-height: 0;
    max-height: min(32vh, 200px);
  }

  .presentation-view.is-fullscreen .report-slide-title {
    font-size: clamp(22px, 7vw, 30px);
  }

  .presentation-view.is-fullscreen .report-slide-large-val {
    font-size: clamp(30px, 9vw, 44px);
  }

  .presentation-view.is-fullscreen .report-controls {
    gap: 8px;
  }

  .presentation-view.is-fullscreen .report-nav-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .presentation-view.is-fullscreen .report-dots {
    gap: 6px;
  }

  .report-slide-card {
    flex-direction: column;
    padding: 20px;
    max-height: none;
    gap: 16px;
    overflow-y: auto;
  }
  .report-slide-left,
  .report-slide-right {
    width: 100%;
    height: auto;
    flex: none;
  }
  .report-slide-img {
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .presentation-view.is-fullscreen .report-nav-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .presentation-view.is-fullscreen .report-slide-bubble {
    font-size: 13px;
  }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 2px 2px 0 var(--line); }
  50% { transform: scale(1.05); box-shadow: 4px 4px 0 var(--line); }
  100% { transform: scale(1); box-shadow: 2px 2px 0 var(--line); }
}

.pulse-animation {
  animation: pulse 1.5s infinite ease-in-out;
}
