:root {
  --action-primary-bg: #96ebcb;
  --action-primary-fill: linear-gradient(105deg, #a9f3be, #80e9d4);
  --action-primary-ink: #103b38;
  --action-primary-hover: linear-gradient(105deg, #9beeb6, #70e1c9);
  --action-primary-pressed: linear-gradient(105deg, #8de4aa, #64d8c1);
  --action-primary-border: #75d6b0;
  --action-secondary-bg: #effaf5;
  --action-secondary-ink: #275a4b;
  --action-secondary-border: #d6ece1;
  --action-secondary-hover: #e1f4e9;
  --action-selected-bg: #dcf6e9;
  --action-selected-ink: #185643;
  --action-disabled-bg: #e4eae6;
  --action-disabled-ink: #56635b;
  --screen-inset: min(1.25rem, 22px);
  --screen-left: max(var(--screen-inset), env(safe-area-inset-left));
  --screen-right: max(var(--screen-inset), env(safe-area-inset-right));
  --section-space: 1.75rem;
  --heading-gap: 1rem;
  --row-space: 1rem;
  --layout-line: #e4eae7;
  --layout-wash: #f3f6f4;
  --layout-shadow: 0 1px 2px #172c2410, 0 7px 18px -15px #172c2438;
  --device-width: 100vw;
  --device-height: 100dvh;
  --phone-corner: 0px;
  --header-air: clamp(14px, 2.2dvh, 20px);
  --header-top: calc(env(safe-area-inset-top, 0px) + var(--header-air));
  --header-height: calc(var(--header-top) + max(54px, 3.375rem));
  --frame-bottom: max(0px, calc((100dvh - var(--device-height)) / 2));
  --outside: #e9ece7;
  --frame-shadow: none;
}
@media (max-width: 359px) {
  :root { --screen-inset: min(1rem, 18px); }
}
@media (min-width: 600px) {
  :root {
    --device-width: 430px;
    --device-height: min(866px, calc(100dvh - 40px));
    --phone-corner: 26px;
    --frame-shadow: 0 18px 55px -26px rgba(29,44,24,.31), 0 0 0 1px rgba(36,58,37,.13);
  }
}
@media (min-width: 600px) and (max-height: 560px) {
  :root { --device-height: 100dvh; --phone-corner: 0px; }
}
@media (max-height: 540px) {
  :root {
    --header-air: clamp(6px, 1.8dvh, 11px);
    --section-space: 1.5rem;
    --row-space: .75rem;
  }
}

/* All loading placeholders are rendered in place, without delaying ready content. */
.ui-skeleton {
  --sk-fill: #e7eaec;
  --sk-soft: #f0f2f3;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 178px;
  overflow: hidden;
  pointer-events: none;
}
.ui-skeleton::before, .ui-skeleton::after {
  content: "";
  position: absolute;
  display: block;
}
.ui-skeleton::before {
  top: 8px;
  left: 0;
  width: 39%;
  height: 15px;
  border-radius: 5px;
  background: var(--sk-fill);
}
.ui-skeleton::after {
  inset: 37px 0 0;
  background:
    linear-gradient(var(--sk-fill),var(--sk-fill)) 0 6px / 58% 12px,
    linear-gradient(var(--sk-soft),var(--sk-soft)) 0 26px / 37% 8px;
  background-repeat: no-repeat;
  height: 37px;
  filter: drop-shadow(0 49px 0 var(--sk-fill)) drop-shadow(0 49px 0 var(--sk-soft));
}
.ui-skeleton[data-shape="icons"]::after {
  background:
    radial-gradient(circle closest-side,var(--sk-soft) 98%,transparent) 0 1px / 35px 35px,
    linear-gradient(var(--sk-fill),var(--sk-fill)) 46px 6px / 48% 12px,
    linear-gradient(var(--sk-soft),var(--sk-soft)) 46px 26px / 33% 8px;
  background-repeat: no-repeat;
}
.ui-skeleton[data-shape="amount"]::before { width:55%; height:25px; top:4px; }
.ui-skeleton[data-shape="card"] { height:108px; border-radius:14px; background:var(--sk-soft); }
.ui-skeleton[data-shape="card"]::before { top:19px; left:16px; width:36%; height:16px; }
.ui-skeleton[data-shape="card"]::after { inset:44px 16px 18px; height:auto; filter:none; }
.ui-skeleton[data-shape="grid"] { height:178px; }
.ui-skeleton[data-shape="grid"]::after {
  height:60px; inset:36px 0 auto;
  background:repeating-linear-gradient(90deg,var(--sk-soft) 0 calc(33.333% - 8px),transparent calc(33.333% - 8px) 33.333%);
  border-radius:8px; filter:drop-shadow(0 69px 0 var(--sk-soft));
}
.ui-skeleton[data-shape="line"] {
  display:inline-block; width:5.5em; height:.85em; max-width:100%;
  border-radius:4px; background:var(--sk-fill); vertical-align:middle;
}
.ui-skeleton[data-shape="line"]::before, .ui-skeleton[data-shape="line"]::after { display:none; }
.ui-skeleton[hidden] { display:none; }
@media (prefers-reduced-motion: no-preference) {
  .ui-skeleton { animation: sk-pulse 1.65s ease-in-out infinite alternate; }
  @keyframes sk-pulse { from { opacity:.65; } to { opacity:1; } }
}
.session-loading, .page-boot {
  box-sizing:border-box;
  width:min(100%,var(--device-width));
  height:var(--device-height);
  max-height:100dvh;
  margin-inline:auto;
  padding:calc(var(--header-top) + 16px) var(--screen-right) 24px var(--screen-left);
  overflow:hidden;
  border-radius:var(--phone-corner);
  background:white;
}
.session-loading { display:none; }
.session-loading > p { color:#46534d; font:500 1rem/1.5 var(--type-ui,system-ui); }
.session-loading > button {
  min-height:44px; margin-top:12px; padding:0 16px; border:0; border-radius:10px;
  background:#eef5f0; color:#24513a; font:600 .9375rem/1.4 var(--type-ui,system-ui); cursor:pointer;
}
.requires-session > .session-loading { display:block; }
.requires-session:has(> .session-loading) > .phone-frame { display:none; }
.page-boot > .ui-skeleton + .ui-skeleton { margin-top:1.25rem; }
