:root {
  color-scheme: light;
  --ink: #14221f;
  --muted: #5f6865;
  --line: #d4ded8;
  --paper: #fff6d7;
  --panel: #ffffff;
  --soft: #edf6f1;
  --accent: #00a878;
  --accent-2: #ff9f1c;
  --accent-3: #257cff;
  --accent-4: #ff5c8a;
  --gold: #ffd23f;
  --sky: #40bfff;
  --mint: #4ee28a;
  --danger: #b84b45;
  --good: #158462;
  --shadow: 0 18px 45px rgba(31, 45, 39, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 210, 63, 0.38), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(64, 191, 255, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(0, 168, 120, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(255, 92, 138, 0.14), transparent 32%),
    var(--paper);
  font-family:
    Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 241, 0.92)),
    linear-gradient(135deg, rgba(15, 123, 104, 0.16), rgba(229, 150, 49, 0.12));
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 8px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--accent), #214f86);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.eyebrow,
.sync-card p,
.status-strip span,
.runway-card span,
.status-copy {
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-divider {
  margin-top: 12px;
  padding: 8px 12px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.nav-list button.is-tool {
  background: rgba(255, 255, 255, 0.52);
}

.nav-settings-button {
  width: 100%;
}

.nav-editor {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.nav-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  gap: 4px;
}

.nav-editor-row input,
.nav-editor-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.nav-editor-row input {
  min-width: 0;
  padding: 0 8px;
}

.nav-list button,
.mobile-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.nav-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  text-align: left;
}

.nav-list button.is-active,
.mobile-nav button.is-active {
  color: var(--accent);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-icon {
  width: 22px;
  text-align: center;
  font-size: 17px;
}

.sync-card {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sync-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--good);
  box-shadow: 0 0 0 5px rgba(21, 132, 98, 0.12);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar,
.panel-header {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.segmented span {
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.segmented input:checked + span {
  color: #ffffff;
  background: var(--ink);
}

.icon-button,
.ghost-button,
.primary-button,
.chip-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.file-button input {
  display: none;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-button,
.chip-button {
  padding: 0 14px;
}

.primary-button {
  border-color: var(--accent);
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.full-button {
  width: 100%;
}

.status-strip,
.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.status-strip {
  margin-bottom: 14px;
}

.status-strip article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.status-strip article:nth-child(1) {
  background: linear-gradient(145deg, #ffffff, #dfffea);
}

.status-strip article:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, #dff0ff);
}

.status-strip article:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, #ffe7aa);
}

.status-strip article:nth-child(4) {
  background: linear-gradient(145deg, #ffffff, #ffdbea);
}

.status-strip article {
  grid-column: span 3;
  min-height: 88px;
  padding: 16px;
}

.status-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

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

.hero-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 240, 0.96)),
    radial-gradient(circle at 15% 12%, rgba(242, 193, 78, 0.32), transparent 34%);
}

.wisdom-panel {
  background: linear-gradient(145deg, #fffdf7, #eef7ff);
}

.fun-panel {
  background: linear-gradient(145deg, #ffffff, #fff1e3);
}

.garden-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 248, 241, 0.96)),
    radial-gradient(circle at 88% 12%, rgba(242, 193, 78, 0.24), transparent 32%);
}

.panel-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.compact-header {
  margin-bottom: 8px;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.score-orbit {
  display: grid;
  place-items: center;
  padding: 4px 0 16px;
}

.score-ring {
  width: 172px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--accent) 0deg, var(--accent) 230deg, #e1e8e3 230deg 360deg);
}

.score-ring strong {
  font-size: 44px;
  line-height: 1;
}

.score-ring span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.game-world-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 210, 63, 0.5), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #dfffe9 48%, #dff0ff 100%);
}

.game-world-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.game-world-copy h2 {
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.1;
}

.game-world-copy p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.game-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.game-stat-row article {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 25px rgba(19, 61, 47, 0.08);
}

.game-stat-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-stat-row strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.xp-track {
  height: 15px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(20, 34, 31, 0.08);
}

.xp-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-4), var(--gold), var(--mint));
}

.game-world-art {
  position: relative;
  min-height: 320px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(64, 191, 255, 0.2), transparent 52%),
    linear-gradient(180deg, #baf3ff 0%, #e7fff0 58%, #8bea75 100%);
  overflow: hidden;
}

.forest-sun {
  position: absolute;
  top: 28px;
  right: 36px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 16px rgba(255, 210, 63, 0.2), 0 0 46px rgba(255, 159, 28, 0.55);
}

.forest-cloud {
  position: absolute;
  height: 28px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
}

.cloud-a {
  top: 58px;
  left: 34px;
  width: 120px;
}

.cloud-b {
  top: 118px;
  right: 96px;
  width: 82px;
}

.forest-ground {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -38px;
  height: 112px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #62dc65, #23b963);
}

.main-tree {
  position: absolute;
  left: 58px;
  bottom: 34px;
  width: 210px;
  height: 250px;
}

.main-tree span,
.main-bird span {
  position: absolute;
  display: block;
}

.tree-trunk {
  left: 92px;
  bottom: 24px;
  width: 34px;
  height: 122px;
  border-radius: 20px;
  background: linear-gradient(90deg, #9a5a2e, #d18745);
}

.tree-crown {
  border-radius: 50%;
  background: linear-gradient(145deg, #00d978, #009f5f);
  box-shadow: inset -12px -16px 0 rgba(0, 90, 55, 0.1);
}

.crown-a {
  left: 32px;
  top: 52px;
  width: 126px;
  height: 112px;
}

.crown-b {
  left: 76px;
  top: 12px;
  width: 108px;
  height: 112px;
}

.crown-c {
  left: 2px;
  top: 14px;
  width: 116px;
  height: 116px;
}

.tree-coin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  border: 5px solid #fff4b5;
  box-shadow: 0 6px 0 rgba(197, 121, 0, 0.2);
}

.coin-a {
  left: 60px;
  top: 66px;
}

.coin-b {
  right: 34px;
  top: 70px;
}

.coin-c {
  left: 102px;
  top: 24px;
}

.tree-stage-1 {
  transform: scale(0.72);
  transform-origin: bottom left;
}

.tree-stage-2 {
  transform: scale(0.84);
  transform-origin: bottom left;
}

.tree-stage-3 {
  transform: scale(0.95);
  transform-origin: bottom left;
}

.tree-stage-4 {
  transform: scale(1.04);
  transform-origin: bottom left;
}

.main-bird {
  position: absolute;
  right: 64px;
  bottom: 118px;
  width: 118px;
  height: 104px;
}

.bird-body {
  left: 18px;
  bottom: 10px;
  width: 76px;
  height: 58px;
  border-radius: 48% 52% 46% 50%;
  background: linear-gradient(145deg, #257cff, #40bfff);
}

.bird-head {
  left: 58px;
  top: 12px;
  width: 46px;
  height: 44px;
  border-radius: 50%;
  background: #40bfff;
}

.bird-wing {
  left: 22px;
  top: 38px;
  width: 50px;
  height: 32px;
  border-radius: 85% 20% 85% 20%;
  background: #1554d1;
  transform: rotate(-16deg);
}

.bird-beak {
  right: 0;
  top: 30px;
  width: 24px;
  height: 18px;
  background: var(--accent-2);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.bird-eye {
  right: 27px;
  top: 27px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14221f;
}

.bird-energy-high {
  animation: birdFloat 2.8s ease-in-out infinite;
}

.bird-energy-mid {
  animation: birdFloat 4s ease-in-out infinite;
}

.bird-energy-low {
  filter: saturate(0.72);
}

@keyframes birdFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.status-copy {
  margin-bottom: 14px;
  line-height: 1.6;
}

.streak-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.bar-chart {
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(6, minmax(38px, 1fr));
  align-items: end;
  gap: 14px;
  padding-top: 12px;
}

.bar-item {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
  height: 240px;
}

.bar-stack {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 5px;
}

.bar {
  width: 100%;
  min-height: 4px;
  border-radius: 5px 5px 0 0;
}

.bar.income {
  background: var(--good);
}

.bar.expense {
  background: var(--accent-2);
}

.bar-label {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.donut-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.donut {
  width: min(210px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 40%, var(--accent-2) 40% 65%, var(--accent-3) 65% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--panel);
}

.donut-legend,
.stack-list,
.business-board,
.insight-grid,
.quest-list,
.action-grid,
.radar-list,
.garden-grid {
  display: grid;
  gap: 10px;
}

.legend-row,
.list-row,
.insight-card,
.board-item,
.quest-card,
.action-card,
.radar-row,
.scenario-output article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.quest-card.is-done {
  border-color: rgba(0, 168, 120, 0.42);
  background: linear-gradient(145deg, #effff3, #ddfff0);
}

.quest-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #edf0ec;
  color: var(--muted);
  font-weight: 900;
}

.quest-card.is-done .quest-mark {
  background: linear-gradient(145deg, var(--accent), var(--mint));
  color: #ffffff;
}

.quest-reward {
  flex: 0 0 auto;
  min-width: 62px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #6b4300;
  background: linear-gradient(145deg, #fff3af, var(--gold));
  text-align: center;
  font-size: 12px;
  box-shadow: 0 6px 12px rgba(255, 159, 28, 0.2);
}

button.quest-reward {
  min-height: 36px;
  border: 1px solid #e1bd35;
  font-weight: 900;
}

.quest-reward.is-claimed {
  color: var(--good);
  background: #dcf8e9;
  box-shadow: none;
}

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

.credit-panel {
  background: linear-gradient(145deg, #fffaf0, #eff9ff 48%, #f4ecff);
}

.calendar-panel {
  background: linear-gradient(145deg, #ffffff, #eaf8ff 48%, #fff2d8);
}

.calendar-controls,
.calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-controls strong {
  min-width: 112px;
  text-align: center;
}

.reminder-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.reminder-alert {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reminder-alert.is-clear {
  background: #ecfff5;
}

.reminder-alert.is-tomorrow {
  border-color: #e3a521;
  background: #fff5c9;
}

.reminder-alert.is-overdue {
  border-color: #e05252;
  background: #ffe3e3;
  color: #8f2424;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-scroll {
  overflow-x: auto;
}

.calendar-weekdays {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.calendar-weekdays span {
  padding: 8px 4px;
}

.calendar-grid {
  gap: 6px;
}

.calendar-day {
  min-width: 0;
  min-height: 118px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.calendar-day.is-outside {
  opacity: 0.42;
}

.calendar-day.is-today {
  border: 2px solid var(--accent-3);
  background: #eef6ff;
}

.calendar-day header,
.calendar-event {
  display: flex;
  align-items: center;
}

.calendar-day header {
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 7px;
}

.calendar-day header span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-events {
  display: grid;
  gap: 4px;
}

.calendar-event {
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.is-actual {
  color: #075b47;
  background: #d9fae9;
}

.calendar-event.is-upcoming,
.calendar-event.is-tomorrow {
  color: #735309;
  background: #fff0ae;
}

.calendar-event.is-overdue {
  color: #912b2b;
  background: #ffcfcf;
}

.calendar-legend {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.actual {
  background: var(--accent);
}

.legend-dot.planned {
  background: var(--gold);
}

.legend-dot.overdue {
  background: #e05252;
}

.reminder-row.is-overdue {
  border-color: #e05252;
  background: #fff0f0;
}

.reminder-row.is-tomorrow {
  border-color: #e3a521;
  background: #fff9df;
}

.reminder-status {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.credit-summary,
.credit-card-grid,
.receivable-summary {
  display: grid;
  gap: 10px;
}

.credit-summary,
.receivable-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.credit-summary article,
.receivable-summary article,
.credit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.credit-summary article,
.receivable-summary article {
  padding: 14px;
  display: grid;
  gap: 4px;
}

.credit-summary span,
.receivable-summary span,
.credit-card p,
.credit-card-meta {
  color: var(--muted);
}

.credit-summary strong,
.receivable-summary strong {
  font-size: 22px;
}

.receivable-panel {
  background: linear-gradient(145deg, #ffffff, #eaf8ef 55%, #e8f3ff);
}

.receivable-overdue {
  border-color: #e05252;
  background: #fff0f0;
}

.credit-layout {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.credit-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.credit-card {
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.credit-card-top,
.credit-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.credit-card-top strong {
  font-size: 17px;
}

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

.garden-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.garden-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.garden-art {
  display: grid;
  place-items: center;
}

.garden-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.garden-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.garden-title strong,
.garden-title b {
  display: block;
  font-size: 18px;
}

.garden-info p {
  margin-bottom: 0;
  color: var(--muted);
}

.care-list {
  display: grid;
  gap: 6px;
}

.care-list span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f4f8f5;
  color: var(--muted);
  font-size: 13px;
}

.companion {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  background: linear-gradient(160deg, #eaf8ff, #fff7df);
  overflow: hidden;
}

.companion span {
  position: absolute;
  display: block;
}

.companion .ground {
  left: 18px;
  right: 18px;
  bottom: 17px;
  height: 12px;
  border-radius: 99px;
  background: #cde8c5;
}

.companion .spark {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--gold);
}

.companion .spark-a {
  top: 17px;
  right: 22px;
}

.companion .spark-b {
  top: 28px;
  left: 22px;
  opacity: 0.75;
}

.companion .stem,
.companion .leaf,
.companion .crown,
.companion .coin {
  opacity: 0;
}

.companion-sprout .stem,
.companion-moneytree .stem {
  left: 54px;
  bottom: 29px;
  width: 8px;
  height: 30px;
  border-radius: 99px;
  background: #4f9c62;
  opacity: 1;
}

.companion-sprout .leaf,
.companion-moneytree .leaf {
  width: 28px;
  height: 18px;
  border-radius: 99px 99px 99px 0;
  background: #62bd70;
  opacity: 1;
}

.companion-sprout .leaf-a,
.companion-moneytree .leaf-a {
  left: 35px;
  bottom: 54px;
  transform: rotate(-25deg);
}

.companion-sprout .leaf-b,
.companion-moneytree .leaf-b {
  right: 31px;
  bottom: 58px;
  transform: scaleX(-1) rotate(-25deg);
}

.companion-sprout.stage-3 .crown,
.companion-sprout.stage-4 .crown,
.companion-moneytree .crown {
  left: 33px;
  top: 26px;
  width: 50px;
  height: 46px;
  border-radius: 50%;
  background: #4dbb73;
  opacity: 1;
}

.companion-moneytree .coin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2c14e;
  border: 3px solid #fff2b8;
  opacity: 1;
}

.companion-moneytree .coin-a {
  top: 32px;
  left: 38px;
}

.companion-moneytree .coin-b {
  top: 47px;
  right: 34px;
}

.companion-cat .body,
.companion-bird .body {
  opacity: 1;
  left: 32px;
  bottom: 29px;
  width: 54px;
  height: 42px;
  border-radius: 45% 45% 38% 38%;
  background: #f0a85f;
}

.companion-cat .head,
.companion-bird .head {
  opacity: 1;
  left: 36px;
  top: 27px;
  width: 46px;
  height: 42px;
  border-radius: 50%;
  background: #f4b56d;
}

.companion-cat .ear {
  opacity: 1;
  top: 22px;
  width: 18px;
  height: 18px;
  background: #e28f50;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.companion-cat .ear-a {
  left: 35px;
  transform: rotate(-18deg);
}

.companion-cat .ear-b {
  right: 31px;
  transform: rotate(18deg);
}

.companion .eye {
  opacity: 1;
  top: 43px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #26362f;
}

.companion .eye-a {
  left: 49px;
}

.companion .eye-b {
  right: 43px;
}

.companion-bird .body {
  background: #60a5d8;
  border-radius: 50% 50% 44% 44%;
}

.companion-bird .head {
  background: #7cc0e5;
}

.companion-bird .wing {
  opacity: 1;
  left: 30px;
  bottom: 42px;
  width: 30px;
  height: 22px;
  border-radius: 90% 20% 90% 20%;
  background: #336fc4;
  transform: rotate(-18deg);
}

.companion-bird .ear-a {
  opacity: 1;
  right: 28px;
  top: 47px;
  width: 16px;
  height: 10px;
  background: #e59631;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.companion.stage-1 {
  transform: scale(0.9);
}

.companion.stage-2 {
  transform: scale(0.96);
}

.companion.stage-3,
.companion.stage-4 {
  transform: scale(1);
}

.companion.stage-4 {
  box-shadow: inset 0 0 0 3px rgba(242, 193, 78, 0.45);
}

.action-card {
  align-items: flex-start;
  flex-direction: column;
}

.action-card strong,
.insight-card strong {
  font-size: 15px;
}

.action-card p,
.insight-card p,
.board-item p,
.scenario-output p,
.runway-card p,
.radar-row span {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip-button {
  min-height: 34px;
  font-size: 13px;
}

.legend-row {
  width: 100%;
}

.color-chip {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
}

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

.entry-form.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.entry-form.single {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.entry-form label,
.scenario-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.entry-form label span,
.scenario-grid label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.entry-form input,
.entry-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

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

.scenario-grid input[type="range"] {
  accent-color: var(--accent);
}

.scenario-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
}

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

.scenario-output article {
  align-items: flex-start;
  flex-direction: column;
}

.scenario-output strong {
  font-size: 20px;
}

.wide {
  grid-column: 1 / -1;
}

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

.list-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 168, 120, 0.08), transparent 52%),
    #f9fbfa;
}

.list-filters::before {
  content: "篩選條件";
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.list-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.list-filters label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.list-filters input,
.list-filters select {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
}

.transaction-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.transaction-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px 13px 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(25, 45, 37, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.transaction-row.is-income {
  border-left-color: var(--accent);
}

.transaction-row:hover {
  border-color: #b9ccc2;
  box-shadow: 0 10px 24px rgba(25, 45, 37, 0.09);
  transform: translateY(-1px);
}

.transaction-date {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 8px;
  background: #eef5f1;
}

.transaction-date span {
  color: var(--muted);
  font-size: 10px;
}

.transaction-date strong {
  font-size: 20px;
}

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

.transaction-party,
.transaction-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-party {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.transaction-note {
  color: var(--muted);
  font-size: 12px;
}

.transaction-amount {
  min-width: 104px;
  display: grid;
  gap: 3px;
  text-align: right;
}

.transaction-amount span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.transaction-amount strong {
  font-size: 16px;
  font-weight: 900;
}

.transaction-empty {
  min-height: 94px;
  display: grid;
  place-items: center;
  text-align: center;
}

.cloud-command-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(37, 124, 255, 0.1), transparent 42%),
    linear-gradient(315deg, rgba(255, 210, 63, 0.2), transparent 46%),
    #ffffff;
}

.cloud-command-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.analysis-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.analysis-summary article,
.analysis-chart {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.analysis-summary article {
  display: grid;
  gap: 5px;
}

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

.analysis-summary strong {
  font-size: 20px;
}

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

.analysis-chart:first-child {
  grid-column: 1 / -1;
}

.analysis-chart h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

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

.line-chart svg {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.line-chart text {
  fill: var(--muted);
  font-size: 11px;
}

.chart-zero {
  stroke: #d8e0dc;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--accent-3);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point {
  fill: var(--accent-4);
  stroke: #ffffff;
  stroke-width: 3;
}

.pie-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.analysis-pie {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
}

.analysis-pie::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: #ffffff;
}

.analysis-pie span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}

.analysis-legend,
.ranking-chart {
  display: grid;
  gap: 8px;
}

.analysis-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.analysis-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.ranking-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.9fr) minmax(100px, 1.4fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.ranking-row div {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eeeb;
}

.ranking-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

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

th {
  color: var(--muted);
  font-size: 13px;
}

td:last-child,
th:last-child {
  text-align: right;
}

.money-positive {
  color: var(--good);
  font-weight: 800;
}

.money-negative {
  color: var(--danger);
  font-weight: 800;
}

.row-main {
  min-width: 0;
}

.row-main strong,
.row-main span {
  display: block;
}

.row-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  width: 150px;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4ebe7;
}

.progress span,
.runway-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.board-item {
  align-items: flex-start;
}

.board-item strong {
  display: block;
  margin-bottom: 4px;
}

.runway-card {
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.runway-card strong {
  font-size: 30px;
}

.runway-track {
  height: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4ebe7;
}

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

.insight-card {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: #e9f4ef;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.delete-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.item-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.item-actions button,
.category-pill button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.item-actions button {
  min-width: 34px;
}

.category-manager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.category-manager label {
  display: grid;
  gap: 6px;
}

.category-manager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-manager input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 6px 4px 10px;
  border: 1px solid rgba(0, 168, 120, 0.24);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #e9fff2);
  font-size: 13px;
  font-weight: 800;
}

.mobile-nav {
  display: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 123, 104, 0.22), 0 0 0 4px rgba(242, 193, 78, 0.18);
}

.main-tree {
  background: url("assets/finance-tree.png") center bottom / contain no-repeat;
  filter: drop-shadow(0 16px 14px rgba(32, 96, 61, 0.22));
}

.main-tree > span {
  display: none;
}

.main-bird {
  background: url("assets/savings-bird.png") center / contain no-repeat;
  filter: drop-shadow(0 12px 10px rgba(32, 85, 124, 0.2));
}

.main-bird > span {
  display: none;
}

.companion-image {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(34, 76, 55, 0.16));
  transform-origin: center bottom;
}

.companion-image.stage-1 {
  transform: scale(0.65);
  opacity: 0.78;
}

.companion-image.stage-2 {
  transform: scale(0.78);
}

.companion-image.stage-3 {
  transform: scale(0.9);
}

.companion-image.stage-4 {
  transform: scale(1);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row button {
  flex: 1;
}

.split-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.mini-tabs {
  display: grid;
  gap: 16px;
}

.forecast-grid,
.install-steps {
  display: grid;
  gap: 10px;
}

.forecast-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.forecast-card,
.install-steps article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.forecast-card:nth-child(1) {
  background: linear-gradient(145deg, #ffffff, #eef5ff);
}

.forecast-card:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, #ecf8f0);
}

.forecast-card:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, #fff0d6);
}

.forecast-card:nth-child(4) {
  background: linear-gradient(145deg, #ffffff, #f8e8ef);
}

.wisdom-panel blockquote {
  margin: 0;
  padding: 18px;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.55;
}

.tip-stack {
  display: grid;
  gap: 10px;
}

.tip-stack article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.tip-stack article:nth-child(1) {
  border-left: 5px solid var(--accent);
}

.tip-stack article:nth-child(2) {
  border-left: 5px solid var(--accent-2);
}

.tip-stack article:nth-child(3) {
  border-left: 5px solid var(--accent-3);
}

.forecast-card span,
.forecast-card p,
.install-steps p,
.muted {
  color: var(--muted);
}

.forecast-card strong {
  font-size: 24px;
}

.forecast-card p,
.install-steps p {
  margin-bottom: 0;
  line-height: 1.5;
}

.forecast-timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

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

.timeline-head span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.timeline-bars {
  display: grid;
  gap: 8px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
}

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

.timeline-row strong {
  text-align: right;
  font-size: 13px;
}

.timeline-track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ece8;
}

.timeline-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.timeline-track.is-positive i {
  background: linear-gradient(90deg, var(--accent), var(--mint));
}

.timeline-track.is-negative i {
  background: linear-gradient(90deg, var(--danger), var(--accent-4));
}

.row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 112px;
}

.sync-card.is-cloud {
  border-color: rgba(15, 123, 104, 0.32);
}

.entry-form.single .button-row {
  grid-column: 1 / -1;
}

.auth-note {
  margin: 10px 0 0;
}

.account-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-switcher label {
  display: grid;
  gap: 6px;
}

.account-switcher label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-switcher select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding-bottom: 92px;
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 38px rgba(24, 34, 31, 0.18);
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .mobile-nav button {
    flex: 1 0 64px;
    min-height: 52px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 8px;
  }

  .mobile-nav .nav-label {
    font-size: 11px;
  }

  .status-strip article,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 6;
  }

  .entry-form.compact,
  .metric-grid,
  .insight-grid,
  .credit-summary,
  .credit-card-grid,
  .receivable-summary,
  .list-filters,
  .scenario-output {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .split-board,
  .forecast-grid,
  .garden-grid {
    grid-template-columns: 1fr;
  }

  .game-world-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .calendar-weekdays,
  .calendar-grid {
    min-width: 680px;
  }

  .calendar-day {
    min-height: 100px;
  }

  .reminder-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace {
    padding: 16px 12px 90px;
  }

  .topbar {
    align-items: flex-start;
  }

  .segmented {
    flex: 1 1 100%;
  }

  .status-strip article,
  .panel,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }

  .status-strip strong {
    font-size: 20px;
  }

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

  .entry-form,
  .entry-form.compact,
  .metric-grid,
  .insight-grid,
  .credit-summary,
  .credit-card-grid,
  .receivable-summary,
  .payment-form,
  .list-filters,
  .analysis-summary,
  .analysis-grid,
  .scenario-output {
    grid-template-columns: 1fr;
  }

  .analysis-chart:first-child {
    grid-column: auto;
  }

  .pie-layout {
    grid-template-columns: 1fr;
  }

  .analysis-pie {
    width: min(220px, 72vw);
    justify-self: center;
  }

  .transaction-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .transaction-amount,
  .transaction-row .item-actions {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .cloud-command-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .cloud-command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-command-actions > * {
    width: 100%;
    text-align: center;
  }

  .ranking-row {
    grid-template-columns: minmax(90px, 1fr) minmax(80px, 1fr);
  }

  .ranking-row strong {
    grid-column: 2;
  }

  .bar-chart {
    gap: 8px;
  }

  .progress {
    width: 100px;
  }

  .garden-card {
    grid-template-columns: 1fr;
  }

  .garden-art {
    justify-items: start;
  }

  .timeline-head {
    flex-direction: column;
  }

  .timeline-head span,
  .timeline-row strong {
    text-align: left;
  }

  .timeline-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .timeline-row strong {
    grid-column: 2;
  }

  .category-manager {
    grid-template-columns: 1fr;
  }

  .account-switcher {
    grid-template-columns: 1fr;
  }

  .item-actions {
    justify-content: flex-start;
  }

  .game-world-art {
    min-height: 280px;
  }

  .main-tree {
    left: 18px;
    transform-origin: bottom left;
  }

  .main-bird {
    right: 22px;
  }
}
