:root {
  --blue: #1b64da;
  --blue-50: #e8f3ff;
  --blue-100: #d6e8ff;
  --blue-200: #d6e8ff;
  --grey-50: #f9fafb;
  --grey-100: #f2f4f6;
  --grey-200: #e5e8eb;
  --grey-300: #d1d6db;
  --grey-400: #b0b8c1;
  --grey-500: #8b95a1;
  --grey-600: #6b7684;
  --grey-700: #4e5968;
  --grey-800: #333d4b;
  --grey-900: #191f28;
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #191f28;
  --ink-2: #4e5968;
  --muted: #5d6774;
  --off: #5d6774;
  --past: #848e9a;
  --symbol: #5d6774;
  --page: #f5f6f8;
  --faint: #b0b8c1;
  --line: #e5e8eb;
  --line-2: #f2f4f6;
  --accent: #1b64da;
  --accent-deep: #1b64da;
  --accent-band: #e8f3ff;
  --accent-faint: #f2f8ff;
  --alt: #e8f3ff;
  --alt-line: #1b64da;
  --alt-ink: #191f28;
  --sun-on-band: #b8262d;
  --sub-on-band: #b8262d;
  --sat-on-band: #1f5bbf;
  --cus-on-band: #b8262d;
  --accent-wash: rgba(27, 100, 218, 0.04);
  --accent-wash-2: rgba(27, 100, 218, 0.07);
  --pin: #333d4b;
  --pin-deep: #333d4b;
  --pin-band: #e5e8eb;
  --sun: #cc2b33;
  --sub: #cc2b33;
  --sat: #2f6fd8;
  --warn: #cc2b33;
  --ease: cubic-bezier(0.33, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cus: #cc2b33;
  --t: 200ms;
  --font-ko: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --font-num: "Lato", "Noto Sans KR", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--font-ko);
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums lining-nums;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  height: 100vh;
  min-height: 700px;
}

.cal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px 28px 24px 32px;
  min-width: 0;
}

.cal-top {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
}

.cal-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: none;
}

.legend-days {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.legend-days li {
  display: inline-flex;
  align-items: center;
}

.legend-days .lg-day {
  width: 14px;
  margin-left: 4px;
}

.cal-year {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  flex: none;
}

.cal-year-num {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.cal-year-sub {
  font-size: 13px;
  color: var(--muted);
}

.legend {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto;
  justify-content: end;
  align-content: end;
  gap: 3px 14px;
  min-width: 0;
  max-height: 60px;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  font-size: 11.5px;
  line-height: 18px;
  color: var(--ink-2);
  white-space: nowrap;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lg {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  border-radius: 4px;
  flex: none;
}

.lg-leave {
  background: var(--accent);
  border: 1px solid var(--accent-deep);
}

.lg-band {
  width: 22px;
  border-radius: 7px;
  background: var(--accent-band);
}

.lg-today {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 4px;
}

.lg-day.cus,
.lg-text-cus {
  color: var(--cus);
}

.lg-day.cus::after {
  height: 2px;
  border-radius: 1px;
  background: var(--cus);
}

.lg-alt {
  background: var(--alt);
  border: 1px solid var(--alt-line);
}

.lg-pin,
.pin-sw {
  position: relative;
  width: 18px;
  height: 14px;
  border-radius: 4px;
  background: var(--pin);
  border: 1px solid var(--pin-deep);
}

.lg-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--sun);
  padding-bottom: 3px;
}

.lg-day::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  margin-left: -6px;
}

.lg-day.hol::after {
  height: 2px;
  border-radius: 1px;
  background: var(--sun);
}

.lg-day.sub {
  color: var(--sub);
}

.lg-day.sub::after {
  height: 2px;
  border-radius: 1px;
  background: var(--sub);
}

.lg-day.tmp::after {
  height: 2px;
  border-radius: 1px;
  background: var(--sun);
}

.lg-text-sun {
  color: var(--sun);
}

.lg-text-sub {
  color: var(--sub);
}

.lg-text-sat {
  color: var(--sat);
}

.months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px 26px;
  min-height: 0;
}

.month {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  transition: opacity var(--t) var(--ease);
}

.month.dim {
  opacity: 0.36;
}

.mt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 24px;
  padding: 0 4px;
  text-align: left;
  border-radius: 6px;
  min-width: 0;
  transition: color var(--t) var(--ease);
}

.mt-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: color var(--t) var(--ease);
}

.mt-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: -6px;
}

.mt-hol {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--sun);
}

.month.sel .mt-num,
.month.sel .mt-unit {
  color: var(--accent);
}

.month .mt {
  background-color: transparent;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}

.month.sel .mt {
  background-color: var(--accent-faint);
}

.wd {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  height: 18px;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 2px;
}

.wd span:first-child {
  color: var(--sun);
}

.wd span:last-child {
  color: var(--sat);
}

.weeks {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  min-height: 0;
}

.wk {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 0;
}

.wk::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background-color: var(--accent-wash);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms var(--ease-out), background-color 180ms var(--ease-out);
  pointer-events: none;
}

.wk.wk-r1::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.spotting .wk.wk-r1::before {
  transform: scaleX(0);
  transform-origin: right center;
}

.spotting .wk.wk-spot::before {
  background-color: var(--accent-wash-2);
  transform: scaleX(1);
  transform-origin: left center;
}

.d {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  cursor: pointer;
}

.d.out {
  cursor: default;
}

.d::before,
.d::after,
.d .b {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 24px;
  margin-top: -12px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
}

.d::before {
  background-color: var(--accent-band);
  transition: transform 220ms var(--ease-out) var(--dl, 0ms), opacity 180ms var(--ease-out);
}

.d.c2::before {
  background-color: var(--accent-faint);
}

.d.k1::before,
.d.k2::before,
.d.k3::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.d.cl::before {
  left: 3px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.d.cr::before {
  right: 3px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.d::after {
  background-color: var(--pin-band);
  transition: transform 220ms var(--ease-out) var(--dl, 0ms);
}

.d.pin::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.d.pl::after {
  left: 3px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.d.pr::after {
  right: 3px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.d .b {
  display: block;
  background-color: var(--accent-band);
  box-shadow: inset 0 1px 0 rgba(27, 100, 218, 0.35), inset 0 -1px 0 rgba(27, 100, 218, 0.35);
  transition: transform 200ms var(--ease-out);
}

.d.sl .b {
  left: 3px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: inset 1px 1px 0 rgba(27, 100, 218, 0.35), inset 0 -1px 0 rgba(27, 100, 218, 0.35);
}

.d.sr .b {
  right: 3px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: inset -1px 1px 0 rgba(27, 100, 218, 0.35), inset 0 -1px 0 rgba(27, 100, 218, 0.35);
}

.d.sl.sr .b {
  box-shadow: inset 0 0 0 1px rgba(27, 100, 218, 0.35);
}

.spotting .d::before {
  opacity: 0.28;
}

.spotting .d.spot .b {
  transform: scaleX(1);
  transform-origin: left center;
}

.spotting .d.spotpin .b {
  background-color: var(--pin-band);
  box-shadow: inset 0 1px 0 rgba(51, 61, 75, 0.3), inset 0 -1px 0 rgba(51, 61, 75, 0.3);
}

.d .n {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink);
  transition: color 180ms var(--ease-out) var(--dl, 0ms);
}

.d .n::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 6px;
  background-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-deep);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 200ms var(--ease-out) var(--dl, 0ms), opacity 140ms var(--ease-out) var(--dl, 0ms), background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.d.fb .n::before {
  background-color: var(--alt);
  box-shadow: inset 0 0 0 1px var(--alt-line);
}

.d.fp .n::before {
  background-color: var(--pin);
  box-shadow: inset 0 0 0 1px var(--pin-deep);
}

.d.f .n::before {
  transform: scale(1);
  opacity: 1;
}

.d.sat .n {
  color: var(--sat);
}

.d.sun .n,
.d.hol .n,
.d.tmp .n {
  color: var(--sun);
}

.d.sub .n {
  color: var(--sub);
}

.d.cus:not(.hol):not(.sub):not(.tmp) .n {
  color: var(--cus);
  font-weight: 700;
}

.d.hol .n,
.d.sub .n,
.d.tmp .n {
  font-weight: 700;
}

.d .n::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 10px;
  margin-left: -5px;
  opacity: 0;
}

.d.hol .n::after {
  height: 2px;
  border-radius: 1px;
  background: var(--sun);
  opacity: 0.9;
}

.d.sub .n::after {
  height: 2px;
  border-radius: 1px;
  background: var(--sub);
  opacity: 0.9;
}

.d.cus:not(.hol):not(.sub):not(.tmp) .n::after {
  height: 2px;
  border-radius: 1px;
  background: var(--cus);
  opacity: 0.9;
}

.d.tmp .n::after {
  height: 2px;
  border-radius: 1px;
  background: var(--sun);
  opacity: 0.9;
}

.d.today .n {
  border-color: var(--ink);
  font-weight: 700;
}

.d.f.fa .n,
.d.f.fp .n {
  color: #fff;
  font-weight: 700;
}

.d.f.fb .n {
  color: var(--accent-deep);
  font-weight: 700;
}

.d.f.fa .n::after,
.d.f.fp .n::after {
  background-color: #fff;
}

.spotting .d.f:not(.fp):not(.spotlv) .n::before {
  transform: scale(0.6);
  opacity: 0;
}

.spotting .d.f:not(.fp):not(.spotlv) .n {
  color: var(--ink-2);
  font-weight: 400;
}

.spotting .d.spotlv .n::before {
  transform: scale(1);
  opacity: 1;
  background-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-deep);
}

.spotting .d.spotlv .n {
  color: #fff;
  font-weight: 700;
}

.spotting .d.spotlv.spotpin .n::before {
  background-color: var(--pin);
  box-shadow: inset 0 0 0 1px var(--pin-deep);
}

.months.instant *,
.months.instant *::before,
.months.instant *::after {
  transition: none !important;
}

.d.out .n {
  visibility: hidden;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 22px 30px 24px;
  background: var(--surface);
  border-left: 1px solid var(--line);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
  flex: none;
}

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

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px 0 4px;
  border-radius: 13px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}

.help-btn::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2f4f6;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-2);
}

@media (hover: hover) {
  .help-btn:hover {
    color: var(--ink);
    border-color: rgba(27, 100, 218, 0.4);
    background-color: var(--accent-faint);
  }
}

.brand {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 3px;
  border-radius: 9px;
  background: #f2f4f6;
  isolation: isolate;
}

.seg-ind {
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(29, 33, 37, 0.12), 0 0 0 1px rgba(29, 33, 37, 0.04);
  transition: transform var(--t) var(--ease);
}

.seg button {
  height: 30px;
  border: 0;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}

.seg button[aria-checked="true"] {
  color: var(--ink);
  font-weight: 700;
}

.seg-year button {
  font-size: 14px;
  padding: 0 14px;
}

.cond {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  flex: none;
}

.box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.box-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  height: 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.stepper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 150px;
}

.step-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
}

.step-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 22px;
  line-height: 1;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), opacity var(--t) var(--ease);
}

@media (hover: hover) {
  .step-btn:hover:not(:disabled) {
    background-color: var(--accent-faint);
    border-color: rgba(27, 100, 218, 0.4);
  }
}

.step-btn:disabled,
.step-btn[aria-disabled="true"] {
  opacity: 0.35;
}

.step-val {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.step-num {
  display: inline-block;
  min-width: 2ch;
  text-align: center;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.step-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.step-hint {
  height: 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t) var(--ease);
}

.step-hint.warn {
  color: var(--warn);
}

.period {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 150px;
  padding: 10px 12px 12px;
}

.period-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 30px;
}

.period-head .box-label {
  flex: none;
}

.seg-mode {
  flex: 1;
  max-width: 172px;
  padding: 2px;
}

.seg-mode .seg-ind {
  top: 2px;
  bottom: 2px;
  left: 2px;
}

.seg-mode button {
  height: 26px;
  padding: 0 8px;
  font-size: 12.5px;
}

.mp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px 4px;
  min-height: 0;
  transition: opacity var(--t) var(--ease);
}

.mp.off {
  opacity: 1;
}

.mp.off button {
  color: var(--muted);
  background-color: #f9fafb;
  border-color: transparent;
}

.mp.off button .num {
  font-weight: 400;
}

@media (hover: hover) {
  .mp.off button:hover {
    color: var(--ink);
    background-color: var(--accent-faint);
  }
}

.mp button {
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--ink-2);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.mp button .num {
  font-weight: 700;
  font-size: 12.5px;
}

@media (hover: hover) {
  .mp button:hover {
    background-color: #f2f4f6;
  }
}

.mp button[aria-pressed="true"] {
  background-color: var(--accent-faint);
  border-color: rgba(27, 100, 218, 0.38);
  color: var(--accent-deep);
  font-weight: 700;
}

.annual {
  flex: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 52px;
}

.annual-label {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.mini-step {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 30px;
  padding: 0 2px;
  justify-self: start;
}

.mini-step button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-family: var(--font-num);
  font-size: 15px;
  line-height: 1;
  color: var(--ink-2);
  transition: background-color var(--t) var(--ease), opacity var(--t) var(--ease);
}

@media (hover: hover) {
  .mini-step button:hover:not(:disabled) {
    background-color: #f2f4f6;
  }
}

.mini-step button:disabled {
  opacity: 0.35;
}

.mini-val {
  min-width: 42px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}

.mini-val .num {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.remain {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.remain-text {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.remain-text .num {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 1px 0 4px;
  transition: color var(--t) var(--ease);
}

.remain.warn .remain-text .num {
  color: var(--warn);
}

.meter {
  position: relative;
  width: 132px;
  height: 5px;
  border-radius: 3px;
  background: #e5e8eb;
  overflow: hidden;
}

.meter span {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}

.meter .m-plan {
  background: var(--accent-band);
  box-shadow: inset 0 0 0 1px rgba(27, 100, 218, 0.3);
}

.meter .m-pin {
  background: var(--pin);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  height: 20px;
  flex: none;
}

.sec-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.sec-tools {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sec-meta {
  font-size: 12px;
  color: var(--muted);
}

.results-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
  border: 1px solid #dfe3e8;
}

.results {
  display: grid;
  gap: 8px;
}

.card.r1 .c-rank {
  grid-area: 1 / 1;
}

.card.r1 .pin-btn {
  grid-area: 1 / 2 / 3 / 3;
}

.card.r1 .c-range {
  grid-row: 2;
}

.card.r1 .c-gain {
  grid-row: 3;
}

.card.r1 .c-foot {
  grid-row: 4;
}

.card.r2 .c-range,
.card.r3 .c-range {
  grid-column: 2;
  grid-row: 1;
}

.card.r2 .c-sub,
.card.r3 .c-sub {
  grid-row: 2;
}

.pin-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card {
  position: relative;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), opacity var(--t) var(--ease);
}

.card.r1 {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 12px;
  height: 128px;
  padding: 13px 16px 13px 16px;
  border-color: rgba(27, 100, 218, 0.28);
  background: linear-gradient(var(--accent-wash), var(--accent-wash)), var(--surface);
}

.card.r2,
.card.r3 {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  height: 58px;
  padding: 8px 12px 8px 14px;
}

.card:focus-within:not(.empty) {
  border-color: rgba(27, 100, 218, 0.55);
}

@media (hover: hover) {
  .card:hover:not(.empty) {
    border-color: rgba(27, 100, 218, 0.55);
  }
}

.card.empty {
  border-color: var(--line-2);
  background: transparent;
}

.c-rank {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.card.r2 .c-rank,
.card.r3 .c-rank {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.c-range {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.c-range .num {
  font-weight: 700;
}

.c-range .wd-k {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}

.yy {
  font-size: 0.68em;
  font-weight: 700;
  color: var(--muted);
  margin-right: 3px;
}

.c-range .dash {
  margin: 0 7px;
  color: var(--faint);
  font-weight: 400;
}

.card.r1 .c-range {
  grid-column: 1;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
}

.card.r2 .c-range,
.card.r3 .c-range {
  font-size: 15px;
  line-height: 1.25;
}

.c-gain {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-gain .num {
  font-weight: 700;
  color: var(--ink);
}

.c-gain .arrow {
  margin: 0 5px;
  color: var(--faint);
}

.card.r1 .c-gain {
  grid-column: 1 / span 2;
  margin-top: 6px;
  font-size: 13.5px;
}

.card.r1 .c-gain .total {
  color: var(--accent-deep);
}

.c-foot {
  grid-column: 1 / span 2;
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.c-eff .num {
  font-weight: 700;
  color: var(--ink-2);
}

.card.r2 .c-sub,
.card.r3 .c-sub {
  grid-column: 2;
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.card.r2 .c-sub .c-gain,
.card.r3 .c-sub .c-gain {
  font-size: 12.5px;
  color: var(--muted);
}

.card.r2 .c-sub .c-gain .num,
.card.r3 .c-sub .c-gain .num {
  color: var(--ink-2);
}

.card.r2 .c-sub .c-gain .arrow,
.card.r3 .c-sub .c-gain .arrow {
  margin: 0 3px;
}

.pin-btn {
  align-self: start;
  height: 30px;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background-color: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), opacity var(--t) var(--ease);
}

@media (hover: hover) {
  .pin-btn:hover:not(:disabled) {
    background-color: var(--accent-deep);
    border-color: var(--accent-deep);
  }
}

.card.r2 .pin-btn,
.card.r3 .pin-btn {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  height: 28px;
  min-width: 56px;
  background-color: var(--surface);
  color: var(--accent);
  border-color: rgba(27, 100, 218, 0.45);
}

@media (hover: hover) {
  .card.r2 .pin-btn:hover:not(:disabled),
  .card.r3 .pin-btn:hover:not(:disabled) {
    background-color: var(--accent-faint);
  }
}

.card .pin-btn:disabled {
  background-color: transparent;
  border-color: var(--line);
  color: var(--faint);
}

.card.empty .pin-btn {
  opacity: 0;
  pointer-events: none;
}

.card.empty .c-range,
.card.empty .c-range .num {
  color: var(--faint);
  font-weight: 500;
}

.card.r1.empty .c-range {
  font-size: 15px;
  margin-top: 8px;
  color: var(--ink-2);
}

.card.empty .c-rank {
  color: var(--faint);
}

.pins {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 92px;
}

.pin-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  border-top: 1px solid var(--line-2);
  scrollbar-width: thin;
}

.pin-empty {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 12px 2px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  transition: opacity var(--t) var(--ease);
}

.pin-list.has .pin-empty {
  opacity: 0;
  pointer-events: none;
}

.pin-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  height: 42px;
  border-bottom: 1px solid var(--line-2);
  transition: background-color var(--t) var(--ease);
}

@media (hover: hover) {
  .pin-item:hover {
    background-color: #f9fafb;
  }
}

.pin-sw {
  flex: none;
}

.pin-range {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-range .num {
  font-weight: 700;
}

.pin-range .wd-k {
  font-size: 11px;
  color: var(--muted);
  margin-left: 2px;
}

.pin-range .dash {
  margin: 0 5px;
  color: var(--faint);
}

.pin-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.pin-meta .num {
  font-weight: 700;
  color: var(--ink-2);
}

.pin-del {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}

@media (hover: hover) {
  .pin-del:hover {
    color: var(--warn);
    border-color: rgba(204, 43, 51, 0.4);
    background-color: #fdf6f4;
  }
}

.skip {
  position: fixed;
  z-index: 90;
  left: 12px;
  top: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.skip:focus {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.panel:focus {
  outline: none;
}

.tip {
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  min-width: 148px;
  max-width: 240px;
  padding: 9px 12px 10px;
  border-radius: 9px;
  background: var(--ink);
  color: #f9fafb;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(29, 33, 37, 0.18);
  pointer-events: none;
  opacity: 0;
  translate: 0 3px;
  transition: opacity 160ms var(--ease-out), translate 180ms var(--ease-out);
}

.tip.on {
  opacity: 1;
  translate: 0 0;
}

.tip-date {
  font-weight: 700;
  font-size: 12.5px;
}

.tip-date .num {
  font-weight: 700;
}

.tip-line {
  color: #d1d6db;
}

.tip-line.hol {
  color: #d1d6db;
}

.tip-line.rec {
  color: #d1d6db;
}

.tip-line.pin {
  color: #d1d6db;
}

.tour {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}

.tour.on {
  opacity: 1;
  pointer-events: auto;
}

.tour-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tour-dim {
  fill: rgba(29, 33, 37, 0.44);
}

.tour-hole,
.tour-ring {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}

.tour-hole {
  fill: #000;
}

.tour-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2;
}

.tour-tip {
  position: absolute;
  left: 0;
  top: 0;
  width: 352px;
  padding: 16px 18px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(29, 33, 37, 0.2), 0 0 0 1px rgba(29, 33, 37, 0.06);
  translate: 0 4px;
  transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out), translate 240ms var(--ease-out);
}

.tour.on .tour-tip {
  translate: 0 0;
}

.tour-tip.swap {
  opacity: 0;
}

.tour-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 16px;
  font-size: 12px;
  color: var(--muted);
}

.tour-dots {
  display: flex;
  gap: 5px;
}

.tour-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color var(--t) var(--ease);
}

.tour-dots span.on {
  background: var(--accent);
}

.tour-text {
  margin: 10px 0 14px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 44px;
  word-break: keep-all;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-skip {
  height: 30px;
  padding: 0 4px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}

@media (hover: hover) {
  .tour-skip:hover {
    color: var(--ink);
  }
}

.tour-next {
  height: 32px;
  min-width: 72px;
  padding: 0 14px;
  border-radius: 8px;
  background-color: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color var(--t) var(--ease);
}

@media (hover: hover) {
  .tour-next:hover {
    background-color: var(--accent-deep);
  }
}

@media (max-height: 820px) {
  .cal {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 10px;
  }
  .panel {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 11px;
  }
  .months {
    row-gap: 10px;
  }
  .stepper,
  .period {
    height: 140px;
  }
  .period {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 9px;
  }
  .step-num {
    font-size: 52px;
  }
  .card.r1 {
    height: 120px;
  }
  .card.r2,
  .card.r3 {
    height: 54px;
  }
}

@media (max-width: 1360px) {
  .legend {
    column-gap: 12px;
    font-size: 11px;
  }
  .cal {
    padding-left: 24px;
    padding-right: 22px;
  }
  .months {
    column-gap: 18px;
  }
  .panel {
    padding-left: 24px;
    padding-right: 24px;
  }
  .seg-year button {
    padding: 0 10px;
  }
  .d .n {
    width: 24px;
  }
}

@media (max-width: 1100px) {
  .legend .lg-opt {
    display: none;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: auto;
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }
  .panel {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 16px;
  }
  .cal {
    padding: 18px 16px 28px;
  }
  .cal-top {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .legend {
    flex-wrap: wrap;
    white-space: normal;
  }
  .legend .lg-opt {
    display: flex;
  }
  .months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 236px;
    gap: 18px 16px;
  }
  .pins {
    min-height: 140px;
  }
}

@media (max-width: 520px) {
  .months {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 260px;
  }
  .cond {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

.card.r2.empty .c-range,
.card.r3.empty .c-range {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}

.roll {
  display: inline-grid;
  overflow: hidden;
  vertical-align: bottom;
}

div.roll {
  display: grid;
}

.roll > .rl {
  grid-area: 1 / 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 16px;
  height: 20px;
  align-items: baseline;
}

.tab {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t) var(--ease-out);
}

.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 220ms var(--ease-out);
}

.tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
}

.tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tab-count {
  display: inline-block;
  min-width: 1.2ch;
  margin-left: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.pin-list[hidden] {
  display: none;
}

.cus-sw {
  position: relative;
  width: 22px;
  height: 14px;
}

.cus-sw::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--cus);
}

.cus-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop {
  position: fixed;
  z-index: 70;
  left: 0;
  top: 0;
  width: 240px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(29, 33, 37, 0.18), 0 0 0 1px rgba(29, 33, 37, 0.07);
  opacity: 0;
  translate: 0 4px;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), translate 200ms var(--ease-out);
}

.pop.on {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.pop-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.pop-note {
  height: 17px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop-input {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--t) var(--ease-out);
}

.pop-input:focus {
  outline: none;
  border-color: var(--cus);
  box-shadow: 0 0 0 2px rgba(27, 100, 218, 0.18);
}

.pop-check {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.pop-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--cus);
}

.pop-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.pop-del {
  height: 30px;
  padding: 0 4px;
  font-size: 12.5px;
  color: var(--warn);
}

.pop-del.off {
  visibility: hidden;
}

.pop-ok {
  height: 30px;
  min-width: 64px;
  padding: 0 14px;
  border-radius: 8px;
  background-color: var(--cus);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color var(--t) var(--ease-out);
}

@media (hover: hover) {
  .pop-ok:hover {
    background-color: #333d4b;
  }
}

.tip-line.cus {
  color: #d1d6db;
}

.tip-line.hint {
  margin-top: 3px;
  color: #b0b8c1;
  font-size: 11.5px;
}

#leaveNum.roll {
  justify-items: center;
}

#remainNum.roll,
#annNum.roll {
  min-width: 2ch;
  justify-items: end;
}

#calYear.roll {
  min-width: 4ch;
}

.share {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.share-btns {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  justify-content: end;
  gap: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background-color var(--t) var(--ease), transform 120ms var(--ease);
}

@media (hover: hover) {
  .share-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent-deep);
    background: var(--accent-faint);
  }
}

.share-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.share-btn:disabled {
  color: var(--off);
  background: var(--paper);
  cursor: default;
}

.share-note {
  height: 16px;
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--accent-deep);
  text-align: right;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.share-note.on {
  opacity: 1;
  transform: translateY(0);
}

.share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(29, 33, 37, 0.1);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.share-menu.on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.share-menu-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  text-align: left;
}

@media (hover: hover) {
  .share-menu-item:hover {
    background: var(--accent-faint);
  }
}

.share-menu-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.sb-ico {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  transition: filter var(--t) var(--ease);
}

.sb-ico svg {
  display: block;
  width: 18px;
  height: 18px;
}

.sb-naver {
  background: #03c75a;
}

.sb-naver svg {
  width: 10px;
  height: 10px;
}

.sb-kakao {
  background: #3c1e1e;
  overflow: hidden;
}

.sb-link {
  color: var(--ink-2);
}

.sb-link svg {
  width: 15px;
  height: 15px;
}

.share-btn:disabled .sb-ico {
  filter: grayscale(1) opacity(0.45);
}

@media (min-width: 901px) and (max-height: 780px) {
  .panel {
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .card.r1 {
    height: 112px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .card.r2,
  .card.r3 {
    height: 50px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .results-wrap,
  .results {
    gap: 6px;
  }
  .pins {
    min-height: 76px;
  }
}

.sb-kakaocal {
  background: #fee500;
}

.sb-kakaocal svg {
  width: 14px;
  height: 14px;
}

.d:is(.k1, .k2, .k3, .pin):not(.f).sat .n {
  color: var(--sat-on-band);
}

.d:is(.k1, .k2, .k3, .pin):not(.f):is(.sun, .hol, .tmp) .n {
  color: var(--sun-on-band);
}

.d:is(.k1, .k2, .k3, .pin):not(.f).sub .n {
  color: var(--sub-on-band);
}

.d:is(.k1, .k2, .k3, .pin):not(.f).cus:not(.hol):not(.sub):not(.tmp) .n {
  color: var(--cus-on-band);
}

.tour-text {
  white-space: pre-line;
}

.cal-year-sub[hidden],
.shared-bar[hidden] {
  display: none;
}

.shared-bar {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.shared-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--t) var(--ease-out), text-decoration-color var(--t) var(--ease-out);
}

.shared-btn.primary {
  color: var(--accent);
}

@media (hover: hover) {
  .shared-btn:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
  }
}

@media (hover: hover) {
  .shared-btn.primary:hover {
    color: var(--accent-deep);
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cal {
  padding: 24px 24px 0 32px;
  gap: 12px;
}

.cal-year-num {
  font-weight: 900;
  color: var(--grey-900);
}

.cal-year-sub {
  color: var(--muted);
  font-weight: 500;
}

@media (min-width: 901px) {
  .months {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: max(222px, calc((100vh - 132px) / 3.15));
    gap: 16px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 12px 24px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-300) transparent;
  }
}

.month {
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  padding: 6px 8px 4px;
  margin: -6px -8px -4px;
  background-color: transparent;
  transition: opacity var(--t) var(--ease-out), background-color var(--t) var(--ease-out);
}

.month.sel {
  background-color: var(--grey-50);
}

.month.sel .mt {
  background-color: transparent;
}

.month.sel .mt-num,
.month.sel .mt-unit {
  color: var(--blue);
}

.mt-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--grey-900);
}

.mt-unit {
  color: var(--grey-700);
}

.wd {
  color: var(--muted);
  border-bottom-color: var(--grey-100);
}

.d.f.fb .n {
  color: var(--alt-ink);
}

.months .d.past.past.past:not(.f) .n {
  color: var(--past);
  font-weight: 400;
}

.months .d.past:not(.f) .n::after {
  opacity: 0.45;
}

.panel {
  padding: 24px 28px 20px;
  gap: 16px;
  border-left: 1px solid var(--grey-100);
}

.brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--grey-900);
}

.help-btn {
  border: 0;
  background-color: var(--grey-100);
  color: var(--grey-700);
  height: 28px;
  border-radius: 14px;
}

.help-btn::before {
  background: var(--surface);
  color: var(--grey-700);
}

@media (hover: hover) {
  .help-btn:hover {
    background-color: var(--grey-200);
    color: var(--grey-900);
  }
}

.seg {
  background: var(--grey-100);
  border-radius: 12px;
}

.seg-ind {
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(25, 31, 40, 0.08);
}

.seg button {
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
}

.seg button[aria-checked="true"] {
  color: var(--grey-900);
  font-weight: 700;
}

.box {
  border: 0;
  border-radius: 16px;
  background: var(--grey-100);
}

.box .seg {
  background: var(--grey-200);
}

.box-label {
  color: var(--grey-700);
  font-weight: 700;
  font-size: 13px;
}

.step-btn {
  border: 0;
  background-color: var(--surface);
  color: var(--grey-800);
}

@media (hover: hover) {
  .step-btn:hover:not(:disabled) {
    background-color: var(--blue-50);
    color: var(--accent);
    border-color: transparent;
  }
}

.step-num {
  color: var(--grey-900);
}

.step-hint {
  color: var(--muted);
}

.mp button {
  border-radius: 10px;
  color: var(--grey-700);
}

@media (hover: hover) {
  .mp button:hover {
    background-color: var(--grey-200);
  }
}

.mp button[aria-pressed="true"] {
  background-color: var(--surface);
  border-color: transparent;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(25, 31, 40, 0.08);
}

.mp.off button {
  background-color: transparent;
  color: var(--muted);
}

@media (hover: hover) {
  .mp.off button:hover {
    background-color: var(--grey-200);
    color: var(--grey-900);
  }
}

.mini-step {
  border: 0;
  background: var(--grey-100);
  border-radius: 10px;
}

@media (hover: hover) {
  .mini-step button:hover:not(:disabled) {
    background-color: var(--grey-200);
  }
}

.annual-label,
.remain-text {
  color: var(--muted);
}

.meter {
  background: var(--grey-100);
}

.meter .m-plan {
  background: var(--blue-100);
  box-shadow: none;
}

.sec-head {
  height: 22px;
}

.sec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-900);
}

.sec-head-sort {
  height: 32px;
  align-items: center;
}

.seg-sort {
  width: 176px;
  padding: 2px;
}

.seg-sort .seg-ind {
  top: 2px;
  bottom: 2px;
  left: 2px;
}

.seg-sort button {
  height: 28px;
  padding: 0 8px;
  font-size: 12.5px;
}

.card {
  border: 0;
  border-radius: 16px;
  background: var(--grey-100);
  transition: background-color var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
}

.card.r1 {
  border: 0;
  background: var(--grey-100);
  padding: 16px 18px 14px;
}

.card:focus-within:not(.empty) {
  background-color: #eaedf0;
}

@media (hover: hover) {
  .card:hover:not(.empty) {
    background-color: #eaedf0;
  }
}

.card.empty {
  background: var(--grey-50);
}

.c-rank {
  color: var(--accent);
}

.card.r2 .c-rank,
.card.r3 .c-rank {
  color: var(--grey-700);
}

.c-gain,
.c-foot,
.card.r2 .c-sub,
.card.r3 .c-sub {
  color: var(--muted);
}

.card.r1 .c-gain .total {
  color: var(--accent);
}

.pin-btn {
  height: 36px;
  min-width: 68px;
  border: 0;
  border-radius: 10px;
  background-color: var(--accent);
  font-size: 13px;
}

@media (hover: hover) {
  .pin-btn:hover:not(:disabled) {
    background-color: var(--accent-deep);
  }
}

.card.r2 .pin-btn,
.card.r3 .pin-btn {
  height: 32px;
  border: 0;
  border-radius: 9px;
  background-color: var(--blue-50);
  color: var(--accent-deep);
}

@media (hover: hover) {
  .card.r2 .pin-btn:hover:not(:disabled),
  .card.r3 .pin-btn:hover:not(:disabled) {
    background-color: var(--blue-100);
  }
}

.card .pin-btn:disabled {
  background-color: var(--grey-200);
  color: var(--grey-500);
}

.tabs .tab {
  color: var(--muted);
}

.tab::after {
  background: var(--grey-900);
}

.pin-list {
  border-top: 0;
}

.pin-item {
  height: 48px;
  border-bottom: 0;
  border-radius: 12px;
  padding: 0 6px;
  margin: 0 -6px;
}

@media (hover: hover) {
  .pin-item:hover {
    background-color: var(--grey-50);
  }
}

.pin-del {
  border: 0;
  border-radius: 8px;
  background-color: var(--grey-100);
  color: var(--grey-700);
  height: 28px;
}

@media (hover: hover) {
  .pin-del:hover {
    background-color: #fdecee;
    color: var(--warn);
  }
}

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

.share {
  border-top: 1px solid var(--grey-100);
}

.share-label {
  color: var(--grey-700);
  font-weight: 700;
}

.share-btn {
  border: 0;
  border-radius: 10px;
  background-color: var(--grey-100);
  color: var(--grey-800);
  font-weight: 500;
}

@media (hover: hover) {
  .share-btn:hover:not(:disabled) {
    background-color: var(--grey-200);
    border-color: transparent;
  }
}

.share-btn:disabled {
  background-color: var(--grey-50);
  color: var(--grey-400);
}

.share-menu {
  border-radius: 14px;
  border: 0;
  box-shadow: 0 8px 24px rgba(25, 31, 40, 0.12);
}

.share-menu-item {
  border-radius: 10px;
}

@media (hover: hover) {
  .share-menu-item:hover {
    background-color: var(--grey-100);
  }
}

.tip {
  background: var(--grey-900);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(25, 31, 40, 0.16);
}

.pop {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(25, 31, 40, 0.14);
}

.pop-input {
  border: 0;
  background: var(--grey-100);
  border-radius: 10px;
}

.pop-input:focus {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--cus);
}

.pop-ok {
  border-radius: 10px;
  height: 34px;
}

.tour-tip {
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(25, 31, 40, 0.18);
}

.tour-next {
  border-radius: 10px;
  height: 36px;
  background-color: var(--accent);
}

@media (hover: hover) {
  .tour-next:hover {
    background-color: var(--accent-deep);
  }
}

.tour-dots span.on {
  background: var(--blue);
}

.shared-btn.primary {
  color: var(--accent);
}

.toast {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--grey-900);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 901px) and (max-height: 780px) {
  .panel {
    padding-top: 16px;
    padding-bottom: 14px;
    gap: 9px;
  }
  .sec-head-sort {
    height: 30px;
  }
}

@media (min-width: 901px) {
  .app {
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }
  .cal,
  .panel {
    min-height: 0;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .card.r1 {
    padding: 11px 16px 10px;
  }
  .card.r1 .c-range {
    margin-top: 2px;
  }
  .card.r1 .c-gain {
    margin-top: 3px;
  }
}

.pin-list {
  overflow-x: hidden;
}

.share-btns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  flex: 1;
  max-width: 340px;
  gap: 6px;
}

.share-btn {
  min-width: 0;
  height: 34px;
  padding: 0 6px;
  font-size: 12px;
  gap: 5px;
}

.share-label {
  min-width: 72px;
}

@media (min-width: 901px) and (max-height: 820px) {
  .panel {
    padding-top: 16px;
    padding-bottom: 14px;
    gap: 10px;
  }
  .pins {
    min-height: 76px;
  }
  .card.r1 {
    height: 112px;
  }
  .card.r2,
  .card.r3 {
    height: 50px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .results-wrap,
  .results {
    gap: 6px;
  }
}

.sb-ics {
  background: var(--blue-50);
  color: var(--accent);
  border-radius: 5px;
}

.sb-ics svg {
  width: 13px;
  height: 13px;
}

.share-note {
  position: absolute;
  z-index: 15;
  right: 0;
  bottom: calc(100% + 8px);
  height: auto;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--grey-900);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
  word-break: keep-all;
  box-shadow: 0 6px 20px rgba(25, 31, 40, 0.16);
}

.share-note:empty {
  padding: 0;
}

.c-range .dash,
.pin-range .dash,
.c-gain .arrow,
.card.r2 .c-sub .c-gain .arrow,
.card.r3 .c-sub .c-gain .arrow {
  color: var(--symbol);
}

.month.sel.gone {
  background-color: transparent;
}

.month.gone .mt-num,
.month.gone .mt-unit,
.month.sel.gone .mt-num,
.month.sel.gone .mt-unit {
  color: var(--past);
}

.pop-note {
  height: auto;
  min-height: 17px;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.45;
}

.share-note,
.share-note:empty {
  position: static;
  height: 34px;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  text-align: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.share {
  gap: 6px;
  padding-top: 10px;
}

@media (min-width: 901px) {
  .cal {
    padding: 32px 32px 0 44px;
    gap: 16px;
  }
  .months {
    grid-auto-rows: max(222px, calc((100vh - 148px) / 3.15));
    gap: 28px 40px;
    padding: 4px 16px 32px 0;
  }
  .month {
    justify-self: center;
    width: min(calc(100% + 16px), 272px);
  }
  .panel {
    padding: 30px 36px 22px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .cal {
    padding-top: 24px;
  }
  .months {
    grid-auto-rows: max(222px, calc((100vh - 136px) / 3.15));
    gap: 22px 36px;
  }
  .panel {
    padding: 18px 32px 12px;
    gap: 8px;
  }
  .pins {
    min-height: 56px;
  }
  .card.r1 {
    height: 108px;
    padding-top: 9px;
    padding-bottom: 8px;
  }
  .card.r2,
  .card.r3 {
    height: 48px;
  }
  .stepper,
  .period {
    height: 140px;
  }
  .annual {
    height: 44px;
  }
}

.pop-info {
  display: none;
}

@media (min-width: 769px) and (pointer: fine), (min-width: 769px) and (min-height: 501px) {
  .toast {
    top: 20px;
    bottom: auto;
    left: 32.5vw;
    transform: translate(-50%, -8px);
  }
  .toast.on {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
  }
  .app {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .panel,
  .cond {
    display: contents;
  }
  .panel-head {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 40;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background: var(--surface);
  }
  .brand {
    font-size: 17px;
  }
  .help-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .seg-year button {
    height: 34px;
    padding: 0 11px;
  }
  .stepper {
    order: 2;
    position: sticky;
    top: calc(56px + env(safe-area-inset-top));
    z-index: 39;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    height: 64px;
    margin: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    padding: 0 10px 0 18px;
    box-shadow: 0 0 0 6px var(--surface);
  }
  .stepper .step-hint {
    display: none;
  }
  .stepper .step-row {
    grid-template-columns: 44px auto 44px;
    justify-content: end;
    gap: 6px;
  }
  .step-btn {
    width: 44px;
    height: 44px;
  }
  .step-num {
    font-size: 30px;
  }
  .annual {
    order: 3;
    height: 52px;
    margin: 14px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .mini-step button {
    width: 36px;
    height: 36px;
  }
  .mini-step {
    height: 40px;
  }
  .results-wrap {
    order: 4;
    margin: 18px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .sec-head-sort {
    height: 40px;
  }
  .seg-sort {
    width: 180px;
  }
  .seg-sort button {
    height: 34px;
  }
  .card.r1 {
    height: 150px;
    padding: 16px 16px 14px;
  }
  .card.r2,
  .card.r3 {
    height: 72px;
    padding: 10px 12px 10px 14px;
  }
  .pin-btn,
  .card.r2 .pin-btn,
  .card.r3 .pin-btn {
    height: 48px;
    min-width: 76px;
    border-radius: 12px;
    font-size: 14px;
  }
  .period {
    order: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
    margin: 26px 0 0;
    padding: 4px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left));
    border-radius: 0;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .period::-webkit-scrollbar {
    display: none;
  }
  .period-head {
    flex: none;
    height: auto;
  }
  .period-head .box-label {
    display: none;
  }
  .period .seg-mode {
    flex: none;
    width: 150px;
    max-width: none;
    background: var(--grey-100);
  }
  .period .seg-mode button {
    height: 36px;
  }
  .mp {
    display: flex;
    flex: none;
    gap: 6px;
  }
  .mp button,
  .mp.off button {
    flex: none;
    height: 40px;
    min-width: 54px;
    padding: 0 12px;
    border-radius: 20px;
    background-color: var(--grey-100);
    color: var(--ink-2);
    box-shadow: none;
  }
  .mp button[aria-pressed="true"] {
    background-color: var(--accent);
    color: #fff;
  }
  .cal {
    order: 6;
    display: block;
    padding: 14px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  }
  .cal-top {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .cal-year {
    flex-wrap: wrap;
    white-space: normal;
  }
  .cal-year-num {
    font-size: 28px;
  }
  .legend-days,
  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    max-height: none;
    white-space: normal;
  }
  .months {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 22px;
    overflow: visible;
    padding: 0;
  }
  .month {
    width: auto;
    margin: 0;
    padding: 10px 6px 6px;
    justify-self: stretch;
  }
  .mt {
    height: 32px;
  }
  .mt-num {
    font-size: 18px;
  }
  .wd {
    height: 26px;
    font-size: 12px;
  }
  .weeks {
    grid-template-rows: repeat(6, 44px);
  }
  .d::before,
  .d::after,
  .d .b {
    height: 32px;
    margin-top: -16px;
  }
  .d.cl::before,
  .d.cr::before,
  .d.pl::after,
  .d.pr::after,
  .d.sl .b,
  .d.sr .b {
    border-radius: 16px;
  }
  .d .n {
    width: 34px;
    height: 30px;
    font-size: 15px;
  }
  .pins {
    order: 7;
    min-height: 220px;
    margin: 26px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .pins .sec-head {
    height: 44px;
  }
  .tab {
    min-height: 40px;
    font-size: 14px;
  }
  .tab::after {
    bottom: -2px;
  }
  .pin-item {
    height: 56px;
  }
  .pin-del {
    height: 40px;
    padding: 0 14px;
  }
  .share {
    order: 8;
    margin: 14px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .share-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .share-btns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .share-btn {
    height: 48px;
    font-size: 14px;
    gap: 8px;
  }
  .share-note,
  .share-note:empty {
    height: 40px;
    font-size: 13px;
    line-height: 20px;
  }
  .tip {
    display: none;
  }
  .pop {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    padding: 20px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(25, 31, 40, 0.16);
    translate: 0 100%;
    transition: opacity 200ms var(--ease-out), translate 260ms var(--ease-out);
  }
  .pop.on {
    translate: 0 0;
  }
  .pop-title {
    font-size: 17px;
  }
  .pop-note {
    font-size: 13px;
    margin-top: 4px;
  }
  .pop-info {
    display: block;
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.6;
  }
  .pop-info .tip-date {
    display: none;
  }
  .pop-info .tip-line {
    color: var(--ink-2);
  }
  .pop-info .tip-line.hol {
    color: var(--sun);
  }
  .pop-info .tip-line.rec {
    color: var(--accent);
  }
  .pop-info .tip-line.pin {
    color: var(--pin);
  }
  .pop-info .tip-line.cus {
    color: var(--cus);
  }
  .pop-input {
    height: 48px;
    margin-top: 12px;
    font-size: 16px;
  }
  .pop-check {
    height: 48px;
    font-size: 15px;
  }
  .pop-check input {
    width: 20px;
    height: 20px;
  }
  .pop-ok,
  .pop-del {
    height: 48px;
    font-size: 15px;
  }
  .pop-ok {
    min-width: 120px;
    border-radius: 12px;
  }
  .toast {
    bottom: calc(24px + env(safe-area-inset-bottom));
    pointer-events: auto;
  }
  .tour-tip {
    width: calc(100vw - 24px);
    max-width: 360px;
  }
  .shared-bar {
    white-space: normal;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .card.r2,
  .card.r3 {
    height: 88px;
  }
  .card.r2 .c-sub,
  .card.r3 .c-sub {
    flex-direction: column;
    gap: 0;
    line-height: 1.45;
  }
  .legend {
    justify-content: flex-start;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html,
  body {
    overflow-x: visible;
  }
  body {
    overflow-x: clip;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .cal-year {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 34px 22px;
    align-items: center;
    gap: 2px;
    width: 100%;
  }
  .cal-year-sub,
  .shared-bar {
    display: block;
    height: 22px;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .shared-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cal-year-sub[hidden],
  .shared-bar[hidden] {
    display: none;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .toast {
    top: calc(132px + env(safe-area-inset-top));
    bottom: auto;
    transform: translate(-50%, -8px);
  }
  .toast.on {
    transform: translate(-50%, 0);
  }
}

.seg-year button {
  display: grid;
  place-items: center;
  align-content: center;
  height: 44px;
  padding: 0 12px;
  line-height: 1.15;
}

.seg-year .yr {
  font-size: 14px;
  font-weight: 700;
}

.seg-year .yo {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.seg-year .yo-n {
  display: inline-block;
  min-width: 3ch;
  text-align: left;
  font-weight: 700;
}

.seg-year button[aria-checked="true"] .yo {
  color: var(--ink-2);
}

.panel-head {
  height: 52px;
}

.cal-head {
  height: 22px;
  justify-content: center;
}

.shared-bar {
  height: 22px;
  align-items: center;
}

.legend-days[hidden],
.shared-bar[hidden] {
  display: none;
}

.card.r1 {
  grid-template-rows: auto auto 1fr;
  height: 104px;
}

@media (min-width: 901px) {
  html,
  body {
    background: var(--grey-100);
  }
  .app {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 40px 28px;
    gap: 24px;
  }
  .cal {
    padding: 0;
    gap: 12px;
  }
  .cal-top {
    height: 44px;
    align-items: center;
    padding: 0 4px;
  }
  .months {
    grid-auto-rows: max(222px, calc((100vh - 112px) / 3.08));
    gap: 10px;
    padding: 0 6px 0 0;
  }
  .month,
  .month.sel {
    width: auto;
    justify-self: stretch;
    margin: 0;
    padding: 14px 16px 10px;
    border-radius: 16px;
    background-color: var(--surface);
  }
  .month.sel {
    box-shadow: inset 0 0 0 2px var(--blue-100);
  }
  .month.sel.gone {
    box-shadow: none;
  }
  .panel {
    padding: 0;
    gap: 12px;
    border-left: 0;
    background: transparent;
  }
  .seg-year {
    background: var(--grey-200);
  }
  .help-btn {
    background-color: var(--surface);
  }
  .box {
    background: var(--surface);
  }
  .box .seg {
    background: var(--grey-100);
  }
  .step-btn {
    background-color: var(--grey-100);
  }
  .mp button[aria-pressed="true"] {
    background-color: var(--blue-50);
    color: var(--accent-deep);
    box-shadow: none;
  }
  .annual {
    height: 56px;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--surface);
  }
  .mini-step {
    background: var(--grey-100);
  }
  .meter {
    background: var(--grey-100);
  }
  .results-wrap {
    padding: 14px 14px 14px;
    border-radius: 16px;
    background: var(--surface);
  }
  .card,
  .card.r1 {
    background: var(--grey-50);
  }
  .card:focus-within:not(.empty) {
    background-color: var(--grey-100);
  }
  .card.empty {
    background: var(--grey-50);
  }
  .pins {
    padding: 12px 16px 6px;
    border-radius: 16px;
    background: var(--surface);
  }
  .share {
    padding: 12px 16px 6px;
    border-top: 0;
    border-radius: 16px;
    background: var(--surface);
  }
}

@media (min-width: 901px) and (hover: hover) {
    .mp button:hover {
      background-color: var(--grey-100);
    }
    .mp.off button:hover {
      background-color: var(--grey-100);
    }
    .card:hover:not(.empty) {
      background-color: var(--grey-100);
    }
}

@media (min-width: 901px) and (max-height: 820px) {
  .app {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .months {
    grid-auto-rows: max(212px, calc((100vh - 92px) / 3.08));
  }
  .panel {
    padding: 0;
    gap: 8px;
  }
  .annual {
    height: 48px;
  }
  .results-wrap {
    padding: 10px 12px;
  }
  .card.r1 {
    height: 96px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .pins {
    min-height: 52px;
    padding: 8px 14px 4px;
  }
  .share {
    padding: 8px 14px 2px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html,
  body {
    background: var(--grey-100);
  }
  .panel-head {
    height: calc(64px + env(safe-area-inset-top));
    background: var(--grey-100);
  }
  .seg-year {
    background: var(--grey-200);
  }
  .seg-year button {
    height: 46px;
    padding: 0 10px;
  }
  .help-btn {
    background-color: var(--surface);
  }
  .stepper {
    top: calc(64px + env(safe-area-inset-top));
    border: 1px solid #dfe3e8;
    background: var(--surface);
    box-shadow: 0 0 0 6px var(--page);
  }
  .step-btn {
    background-color: var(--grey-100);
  }
  .annual {
    padding: 0 16px;
    border-radius: 16px;
    background: var(--surface);
  }
  .mini-step,
  .meter {
    background: var(--grey-100);
  }
  .results-wrap {
    padding: 14px;
    border-radius: 16px;
    background: var(--surface);
  }
  .card,
  .card.r1,
  .card.empty {
    background: var(--grey-50);
  }
  .card.r1 {
    height: 120px;
  }
  .card.r2,
  .card.r3 {
    height: 72px;
  }
  .mp button,
  .mp.off button {
    background-color: var(--surface);
  }
  .period .seg-mode {
    background: var(--grey-200);
  }
  .cal-top {
    margin-bottom: 12px;
  }
  .cal-head {
    height: auto;
  }
  .months {
    gap: 10px;
  }
  .month,
  .month.sel {
    padding: 14px 12px 8px;
    border-radius: 16px;
    background-color: var(--surface);
  }
  .month.sel {
    box-shadow: inset 0 0 0 2px var(--blue-100);
  }
  .month.sel.gone {
    box-shadow: none;
  }
  .pins {
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--surface);
  }
  .share {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 0;
    border-radius: 16px;
    background: var(--surface);
    margin-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .toast {
    top: calc(144px + env(safe-area-inset-top));
  }
}

.brand {
  white-space: nowrap;
}

@media (min-width: 901px) {
  .help-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .brand-row {
    flex: none;
  }
}

@media (max-width: 400px) {
  .brand {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .seg-year button {
    padding: 0 9px;
  }
}

@media (max-width: 400px) {
  .annual {
    gap: 8px;
    padding: 0 14px;
  }
  .meter {
    width: 88px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .card.r1 {
    height: 106px;
    padding: 14px 16px 12px;
  }
}

.toast.anchored {
  left: 0;
  top: 0;
  bottom: auto;
  max-width: 60%;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13px;
  transform: translateY(4px);
}

.toast.anchored.on {
  transform: translateY(0);
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .help-btn,
  .seg-mode button,
  .mini-step button,
  .tour-skip,
  .pop-del,
  .step-btn,
  .mp button {
    position: relative;
  }
  .help-btn::after,
  .seg-mode button::after,
  .mini-step button::after,
  .tour-skip::after,
  .pop-del::after,
  .step-btn::after,
  .mp button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 48px);
    height: max(100%, 48px);
    transform: translate(-50%, -50%);
  }
  .period {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .tab {
    min-height: 48px;
  }
  .pins .sec-head {
    height: 48px;
  }
}

.mt {
  cursor: default;
}

.stepper {
  grid-template-rows: auto 1fr auto;
}

.scrim {
  display: none;
}

@media (min-width: 901px) {
  html,
  body {
    height: 100%;
  }
  body {
    display: grid;
    align-content: center;
  }
  .app {
    width: 100%;
    height: min(100vh, 980px);
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .months {
    grid-auto-rows: min(290px, max(222px, calc((min(100vh, 980px) - 96px) / 3.08)));
  }
  .panel {
    gap: 10px;
  }
  .panel-head {
    height: 48px;
  }
  .stepper,
  .period {
    height: 146px;
  }
  .annual {
    height: 52px;
  }
  .results-wrap {
    padding: 12px;
  }
  .results-wrap,
  .results {
    gap: 6px;
  }
  .card.r1 {
    height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .card.r2,
  .card.r3 {
    height: 54px;
  }
  .pins {
    padding: 10px 16px 4px;
  }
  .share {
    padding: 10px 16px 4px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .app {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .months {
    grid-auto-rows: max(212px, calc((100vh - 80px) / 3.08));
  }
  .panel {
    gap: 6px;
  }
  .panel-head {
    height: 48px;
  }
  .stepper,
  .period {
    height: 140px;
  }
  .annual {
    height: 42px;
  }
  .results-wrap {
    padding: 8px 10px;
  }
  .results-wrap,
  .results {
    gap: 4px;
  }
  .results-wrap .sec-head {
    height: 18px;
  }
  .card.r1 {
    height: 84px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .card.r2,
  .card.r3 {
    height: 46px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .pins {
    padding: 6px 14px 2px;
    gap: 4px;
  }
  .share {
    padding: 6px 14px 0;
    gap: 4px;
  }
  .share-btn {
    height: 32px;
  }
  .share-note,
  .share-note:empty {
    height: 32px;
    line-height: 16px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .help-btn {
    width: auto;
    padding: 0 12px 0 4px;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
  }
  .stepper {
    grid-template-rows: 1fr;
  }
  .seg-year button {
    position: relative;
  }
  .seg-year button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 48px);
    height: max(100%, 48px);
    transform: translate(-50%, -50%);
  }
  .pins {
    min-height: 140px;
  }
  .share {
    margin-bottom: calc(12px + env(safe-area-inset-bottom));
    padding-bottom: 14px;
  }
  .toast {
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translate(-50%, 8px);
  }
  .toast.on {
    transform: translate(-50%, 0);
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(25, 31, 40, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease-out);
  }
  .scrim.on {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.toast,
.toast.anchored {
  pointer-events: none;
}

.share-note:not(.on),
.share-note:empty {
  height: 0;
  margin: 0;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .toast {
    pointer-events: none;
  }
  .share {
    gap: 8px;
  }
}

.share-note:not(.on) {
  display: none;
}

@media (min-width: 901px) {
  .share-note,
  .share-note:not(.on),
  .share-note:empty {
    display: -webkit-box;
    height: 30px;
    font-size: 11.5px;
    line-height: 15px;
  }
  .share {
    gap: 4px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .share {
    gap: 3px;
    padding-top: 5px;
  }
  .panel {
    gap: 5px;
  }
}

.wallet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  padding: 14px 16px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: var(--blue-50);
}

.w-head {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.w-total {
  height: 32px;
  margin-left: -8px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: background-color var(--t) var(--ease-out);
}

.w-total[aria-expanded="true"] {
  background-color: rgba(27, 100, 218, 0.12);
}

@media (hover: hover) {
  .w-total:hover {
    background-color: rgba(27, 100, 218, 0.12);
  }
}

.w-total .num,
.w-remain .num {
  font-weight: 900;
}

.w-dot {
  color: var(--symbol);
  font-weight: 400;
}

.w-remain {
  padding: 0 4px;
  color: var(--accent-deep);
  transition: color var(--t) var(--ease-out);
}

.w-remain.warn {
  color: var(--warn);
}

.w-export {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.75);
  color: var(--accent-deep);
  transition: background-color var(--t) var(--ease-out);
}

.w-export svg {
  width: 18px;
  height: 18px;
}

.w-export[aria-expanded="true"] {
  background-color: var(--surface);
}

@media (hover: hover) {
  .w-export:hover {
    background-color: var(--surface);
  }
}

.w-edit {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  font-size: 13px;
  color: var(--ink-2);
}

.w-edit[hidden] {
  display: none;
}

.w-edit .mini-step {
  background: var(--surface);
}

.gauge {
  display: flex;
  gap: 2px;
  height: 12px;
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.g-seg {
  flex: 0 0 auto;
  height: 100%;
  transform-origin: left center;
  transition: opacity 180ms var(--ease-out);
}

.gauge.has-hl .g-seg:not(.hl) {
  opacity: 0.35;
}

.w-list {
  position: relative;
  min-height: 136px;
}

.w-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
  transition: opacity var(--t) var(--ease-out);
}

.w-list.has .w-empty {
  opacity: 0;
  pointer-events: none;
}

.w-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.w-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin: 0 -8px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  transition: background-color var(--t) var(--ease-out);
}

.w-row.hl {
  background-color: rgba(27, 100, 218, 0.12);
}

@media (hover: hover) {
  .w-row:hover {
    background-color: rgba(27, 100, 218, 0.12);
  }
}

.w-row:focus-visible {
  outline-offset: -2px;
}

.w-range .num {
  font-weight: 700;
}

.w-range .wd-k {
  margin-left: 2px;
  font-size: 11px;
  color: var(--muted);
}

.w-range .dash {
  margin: 0 4px;
  color: var(--symbol);
}

.w-x {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--t) var(--ease-out), background-color var(--t) var(--ease-out), color var(--t) var(--ease-out);
}

.w-row:focus-within .w-x,
.w-row.hl .w-x,
.w-x:focus-visible {
  opacity: 1;
}

@media (hover: hover) {
  .w-row:hover .w-x {
    opacity: 1;
  }
}

@media (hover: hover) {
  .w-x:hover {
    background-color: rgba(204, 43, 51, 0.1);
    color: var(--warn);
  }
}

.w-foot {
  padding-top: 6px;
  border-top: 1px solid rgba(27, 100, 218, 0.16);
}

.w-cus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-left: -8px;
  padding: 0 10px 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background-color var(--t) var(--ease-out);
}

.w-cus .num {
  color: var(--cus);
}

.w-cus::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--t) var(--ease-out);
}

.w-cus.open::after {
  transform: translateY(1px) rotate(-135deg);
}

@media (hover: hover) {
  .w-cus:hover {
    background-color: rgba(27, 100, 218, 0.12);
  }
}

.w-cuslist {
  position: relative;
  min-height: 64px;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--surface);
}

.w-cuslist[hidden] {
  display: none;
}

.w-cuslist .pin-empty {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 10px 12px;
  font-size: 12.5px;
}

.w-cuslist.has .pin-empty {
  opacity: 0;
  pointer-events: none;
}

.export {
  position: fixed;
  z-index: 72;
  left: 0;
  top: 0;
  width: 392px;
  max-width: calc(100vw - 24px);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(25, 31, 40, 0.18), 0 0 0 1px rgba(25, 31, 40, 0.05);
  opacity: 0;
  translate: 0 4px;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), translate 200ms var(--ease-out), visibility 0s linear 200ms;
}

.export.on {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.export .share {
  margin: 0;
  padding: 14px 16px 10px;
  border-top: 0;
  border-radius: 16px;
  background: transparent;
}

@media (min-width: 901px) {
  .panel {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-300) transparent;
  }
  .cond {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "step mode" "mp mp";
    align-items: center;
    gap: 10px 14px;
    flex: none;
    padding: 16px;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    background: var(--surface);
  }
  .cond .stepper,
  .cond .period,
  .cond .period-head {
    display: contents;
  }
  .cond .box-label {
    display: none;
  }
  .cond .step-row {
    grid-area: step;
    grid-template-columns: 36px auto 36px;
    gap: 6px;
  }
  .cond .step-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .cond .step-num {
    font-size: 30px;
  }
  .cond .step-unit {
    font-size: 14px;
  }
  .cond .seg-mode {
    grid-area: mode;
    justify-self: end;
    width: 176px;
    max-width: none;
  }
  .cond .mp {
    grid-area: mp;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 30px 30px;
    gap: 4px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .wallet {
    order: 7;
    margin: 22px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    padding: 16px;
  }
  .w-head {
    height: 44px;
    font-size: 16px;
  }
  .w-total {
    height: 44px;
    font-size: 16px;
  }
  .w-export {
    width: 44px;
    height: 44px;
  }
  .w-list {
    min-height: 44px;
  }
  .w-row {
    height: 48px;
    font-size: 15px;
  }
  .w-x {
    width: 40px;
    height: 40px;
    margin-right: -6px;
    opacity: 1;
  }
  .w-cus {
    height: 44px;
    font-size: 14px;
  }
  .gauge {
    height: 14px;
  }
  .export {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    translate: 0 100%;
    transition: opacity 200ms var(--ease-out), translate 260ms var(--ease-out), visibility 0s linear 260ms;
  }
  .export.on {
    translate: 0 0;
  }
  .export .share {
    padding: 18px 16px 12px;
  }
}

.wallet {
  gap: 8px;
}

.wallet #annNum.roll,
.wallet #remainNum.roll {
  min-width: 0;
  justify-items: start;
}

.w-total {
  min-width: 5.6em;
  text-align: left;
}

.w-remain {
  min-width: 5.4em;
}

.w-total {
  min-width: 5em;
}

.w-remain {
  min-width: 5em;
}

.w-remain.warn {
  color: #cc2b33;
}

.export .share-note,
.export .share-note:not(.on),
.export .share-note:empty {
  position: static;
  display: block;
  height: 32px;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--accent-deep);
  font-size: 12px;
  line-height: 16px;
  text-align: left;
  word-break: keep-all;
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.export .share-note.on {
  opacity: 1;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .export .share-note,
  .export .share-note:not(.on),
  .export .share-note:empty {
    height: 60px;
    font-size: 13px;
    line-height: 20px;
  }
}

html,
body {
  background: var(--page);
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .panel-head {
    background: var(--page);
  }
}

.wallet {
  background: #ffffff;
}

.d.c2::before {
  visibility: hidden;
}

.d.f.fb:not(.spotlv) .n::before {
  transform: scale(0.6);
  opacity: 0;
}

.d.f.fb:not(.spotlv) .n {
  color: var(--ink);
  font-weight: 400;
}

.mt-hol,
.month.sel .mt-hol {
  color: var(--muted);
}

.month.sel .mt-unit,
.c-rank,
.card.r1 .c-gain .total,
.w-remain,
.w-export,
.w-cus .num,
.share-note,
.export .share-note,
.export .share-note:empty,
.lg-text-off {
  color: var(--ink);
}

@media (hover: hover) {
  .step-btn:hover:not(:disabled),
  .share-btn:hover:not(:disabled) {
    color: var(--ink);
  }
}

.lg-text-off {
  color: var(--ink-2);
}

.w-remain.warn {
  color: var(--warn);
}

.g-seg {
  background-color: var(--pin);
}

.g-seg.hl {
  background-color: var(--accent);
}

.gauge.has-hl .g-seg:not(.hl) {
  opacity: 1;
}

.mp button[aria-pressed="true"] {
  border-color: transparent;
  background-color: var(--grey-200);
  color: var(--ink);
}

.pop-info .tip-line.rec,
.pop-info .tip-line.pin,
.pop-info .tip-line.cus {
  color: var(--ink-2);
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .mp button[aria-pressed="true"] {
    background-color: var(--surface);
    color: var(--ink);
  }
}

.lg-band {
  background: var(--blue-100);
}

.gauge {
  background: var(--grey-200);
}

.wallet .share {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  order: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.wallet .share-btns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.wallet .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background-color: var(--grey-100);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

@media (hover: hover) {
  .wallet .share-btn:hover:not(:disabled) {
    background-color: var(--grey-200);
    color: var(--ink);
  }
}

.wallet .sb-ico {
  width: 16px;
  height: 16px;
}

.wallet .sb-ico svg {
  width: 16px;
  height: 16px;
}

.wallet .sb-link,
.wallet .sb-apple {
  background: none;
  color: var(--ink);
}

.wallet .share-note,
.wallet .share-note:not(.on),
.wallet .share-note:empty {
  position: static;
  display: block;
  height: 32px;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 16px;
  text-align: left;
  word-break: keep-all;
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.wallet .share-note.on {
  opacity: 1;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .wallet .share-btns {
    gap: 8px;
  }
  .wallet .share-btn {
    flex-direction: column;
    gap: 4px;
    height: 60px;
    font-size: 12px;
  }
  .wallet .sb-ico,
  .wallet .sb-ico svg {
    width: 20px;
    height: 20px;
  }
  .wallet .share-note,
  .wallet .share-note:not(.on),
  .wallet .share-note:empty {
    height: 40px;
    font-size: 13px;
    line-height: 20px;
  }
}

.w-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-foot .w-cus {
  flex: none;
}

.wallet .w-foot .share-note,
.wallet .w-foot .share-note:not(.on),
.wallet .w-foot .share-note:empty {
  flex: 1;
  min-width: 0;
  height: 32px;
  display: flex;
  align-items: center;
}

@media (min-width: 901px) {
  .wallet {
    gap: 6px;
  }
  .w-head {
    height: 32px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .wallet .w-foot .share-note,
  .wallet .w-foot .share-note:not(.on),
  .wallet .w-foot .share-note:empty {
    height: 56px;
    font-size: 12.5px;
    line-height: 18px;
  }
}

@media (min-width: 901px) {
  .w-foot {
    padding-top: 2px;
  }
}

.wallet .share {
  align-items: stretch;
}

.wallet .share-btns {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
}

.w-foot {
  border-top-color: var(--line);
}

.card.r1 .c-gain {
  align-self: end;
  margin-top: 0;
  line-height: 18px;
}

.card.r2 .c-gain,
.card.r3 .c-gain {
  line-height: 18px;
}

@media (min-width: 901px) and (max-height: 860px) {
  .wallet {
    gap: 5px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .w-head {
    height: 28px;
  }
  .w-list {
    min-height: 120px;
  }
  .w-row {
    height: 30px;
  }
  .w-foot {
    padding-top: 0;
  }
  .w-cus {
    height: 30px;
  }
  .wallet .share-btn {
    height: 32px;
  }
  .wallet .share-note,
  .wallet .share-note:not(.on),
  .wallet .share-note:empty {
    height: 30px;
    font-size: 11.5px;
    line-height: 15px;
  }
}

.cal-head {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  height: auto;
}

.cal-head .brand {
  flex: none;
  white-space: nowrap;
}

.brand-m {
  display: none;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .cal-head .brand {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .brand-m {
    display: inline;
  }
}

.w-cuslist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 8px 12px 10px;
}

.w-cuslist[hidden] {
  display: none;
}

.w-cuslist .pin-empty {
  position: static;
  padding: 0;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-2);
}

.w-cuslist.has .pin-empty {
  display: none;
}

.w-cuslist .pin-item {
  cursor: pointer;
}

.cus-add {
  align-self: flex-start;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background-color: var(--grey-100);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: background-color var(--t) var(--ease-out);
}

@media (hover: hover) {
  .cus-add:hover {
    background-color: var(--grey-200);
  }
}

.cus-add[hidden] {
  display: none;
}

.cus-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
}

.cus-form[hidden] {
  display: none;
}

.cus-in {
  height: 34px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.cus-in:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.cus-rep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.cus-act {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.cus-act button {
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.cus-cancel {
  background-color: var(--grey-100);
  color: var(--ink);
}

.cus-save {
  background-color: var(--accent);
  color: #fff;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .cus-in,
  .cus-add,
  .cus-act button {
    height: 44px;
  }
  .cus-in {
    font-size: 16px;
  }
}

.pop-ok {
  background-color: var(--grey-100);
  color: var(--ink);
}

@media (hover: hover) {
  .pop-ok:hover {
    background-color: var(--grey-200);
  }
}

@media (min-width: 901px) {
  .app {
    min-height: 0;
  }
}

.help-d {
  display: none;
}

@media (min-width: 769px) and (pointer: fine), (min-width: 769px) and (min-height: 501px) {
  .help-d {
    display: inline-flex;
  }
  .brand-row .help-btn {
    display: none;
  }
}

.month.dim {
  cursor: pointer;
  transition: opacity var(--t) var(--ease);
}

@media (hover: hover) {
  .month.dim:hover {
    opacity: 0.6;
  }
}

.card.r1,
.card.r2,
.card.r3 {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 76px;
  grid-template-rows: auto auto;
  grid-template-areas: "rank range btn" "rank gain btn";
  align-content: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 5px;
  height: auto;
  min-height: 66px;
  padding: 12px 12px 12px 14px;
}

.card.r1 {
  min-height: 84px;
}

.card.r1 .c-rank,
.card.r2 .c-rank,
.card.r3 .c-rank {
  grid-area: rank;
  align-self: center;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.card.r1 .c-rank {
  color: var(--ink);
}

.card.r1 .c-range,
.card.r2 .c-range,
.card.r3 .c-range,
.card.r1.empty .c-range {
  grid-area: range;
  align-self: end;
  min-width: 0;
  margin: 0;
}

.card.r1 .c-gain,
.card.r2 .c-sub,
.card.r3 .c-sub {
  grid-area: gain;
  align-self: start;
  min-width: 0;
  margin: 0;
}

.card.r1 .pin-btn,
.card.r2 .pin-btn,
.card.r3 .pin-btn {
  grid-area: btn;
  justify-self: end;
  align-self: center;
  width: 76px;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.card.r1 .c-range,
.card.r1.empty .c-range {
  font-size: 15px;
  line-height: 1.25;
}

.card.r1 .c-range .num {
  font-weight: 800;
}

.card.r2 .c-range .num,
.card.r3 .c-range .num {
  font-weight: 500;
}

.card.r1 .c-gain {
  font-size: 13px;
}

@media (min-width: 901px) {
  html {
    scrollbar-gutter: stable;
  }
  html,
  body {
    height: auto;
    overflow-y: visible;
  }
  body {
    display: block;
  }
  .app {
    height: auto;
    min-height: 0;
    overflow: visible;
    grid-template-rows: auto;
    align-items: stretch;
    column-gap: 8px;
    padding-bottom: 232px;
  }
  .cal {
    height: auto;
    min-height: 0;
    overflow: visible;
    grid-template-rows: auto auto;
  }
  .cal-top {
    height: 50px;
    margin-bottom: 0;
    align-items: center;
    padding-right: calc(var(--sbw, 0px) + 4px);
  }
  .cal-head {
    gap: 10px;
  }
  .legend {
    align-content: center;
    padding-bottom: 0;
  }
  .months {
    height: auto;
    overflow: visible;
    grid-auto-rows: minmax(250px, auto);
    padding-right: 0;
    padding-bottom: 0;
  }
  .panel {
    align-self: stretch;
    contain: size;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .panel-head {
    height: 50px;
    margin-bottom: 2px;
    align-items: center;
  }
  .results-wrap {
    flex: none;
    gap: 10px;
  }
  .results {
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 8px;
  }
  .card.r1,
  .card.r2,
  .card.r3,
  .card.r1.empty,
  .card.r2.empty,
  .card.r3.empty {
    flex: none;
    height: 62px;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .wallet {
    --row-h: 34px;
    --w-gap: 6px;
    --foot-h: 35px;
    flex: 1 1 0;
    min-height: 0;
    gap: var(--w-gap);
  }
  .w-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    gap: var(--w-gap);
    min-height: 0;
    margin: 0 -8px;
    padding: 0 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }
  .w-scroll:focus-within {
    scrollbar-color: rgba(25, 31, 40, 0.18) transparent;
  }
  .w-scroll > * {
    flex: none;
  }
  .w-list {
    flex: none;
    height: auto;
    min-height: var(--row-h);
  }
  .w-row {
    height: var(--row-h);
  }
  .w-foot {
    height: var(--foot-h);
    box-sizing: border-box;
  }
}

@media (min-width: 901px) and (hover: hover) {
    .w-scroll:hover {
      scrollbar-color: rgba(25, 31, 40, 0.18) transparent;
    }
}

@media (min-width: 901px) and (max-height: 860px) {
  .wallet {
    --row-h: 30px;
    --w-gap: 5px;
    --foot-h: 31px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .panel-head {
    margin-bottom: 7px;
  }
}

@media (min-width: 901px) and (max-height: 780px) {
  .results-wrap,
  .results {
    gap: 6px;
  }
  .card.r1,
  .card.r2,
  .card.r3 {
    height: 58px;
    row-gap: 3px;
  }
  .cond {
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .wallet {
    --row-h: 28px;
  }
}

@media (max-width: 900px) {
  .card.r1,
  .card.r2,
  .card.r3 {
    min-height: 76px;
  }
  .w-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    max-height: 60svh;
    margin: 0 -8px;
    padding: 0 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .w-scroll > * {
    flex: none;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .card.r1,
  .card.r2,
  .card.r3 {
    grid-template-columns: 48px minmax(0, 1fr) 88px;
    column-gap: 12px;
    padding: 14px 14px 14px 16px;
  }
  .card.r1 .pin-btn,
  .card.r2 .pin-btn,
  .card.r3 .pin-btn {
    width: 88px;
    height: 48px;
    font-size: 15px;
  }
}

.mascot {
  position: fixed;
  z-index: 40;
  left: var(--m-left, 16px);
  bottom: var(--m-bottom, 16px);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.mascot.in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mascot[hidden] {
  display: none;
}

html.touring .mascot,
html.sheet-on .mascot {
  visibility: hidden;
  opacity: 0;
}

.m-face {
  flex: none;
  width: 150px;
  height: 201px;
  padding: 0;
  border: 0;
  background: transparent;
}

.m-bubble {
  position: relative;
  max-width: 210px;
  margin-bottom: 94px;
  margin-left: -21px;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  word-break: keep-all;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
}

.mascot.open .m-bubble {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.m-bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #fff;
  transform: rotate(45deg);
}

.m-x {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

@media (hover: hover) {
  .m-x:hover {
    background-color: var(--grey-100);
    color: var(--ink);
  }
}

@media (max-width: 900px) {
  .mascot {
    left: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    flex-direction: row-reverse;
  }
  .m-face {
    width: 104px;
    height: 140px;
  }
  .m-bubble {
    max-width: 200px;
    margin-bottom: 60px;
    margin-left: 0;
    margin-right: -7px;
    transform: translateX(4px);
  }
  .m-bubble::before {
    left: auto;
    right: -6px;
    border-left: 0;
    border-bottom: 0;
    border-top: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
  }
  .m-x {
    width: 32px;
    height: 32px;
    top: 0;
    right: 0;
  }
  html.toast-on .mascot.in {
    transform: translateY(-60px);
  }
  .wallet {
    margin-bottom: calc(172px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot,
  .m-bubble {
    transition: none;
  }
}

.m-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.m-pose {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}

.m-pose.on {
  opacity: 1;
}

.m-rest {
  transform-origin: 50% 100%;
}

.m-rest.on.lying {
  animation: hero-breathe 3.2s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-pose {
    transition: none;
  }
  .m-rest.on.lying {
    animation: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cal-head .brand {
  font-size: 22px;
  font-weight: 700;
}

.brand-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
}

.brand-ico svg {
  display: block;
  width: 14px;
  height: 14px;
}

.brand-m .brand-ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.brand-m .brand-ico svg {
  width: 11px;
  height: 11px;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .brand-m {
    display: inline-flex;
    gap: 6px;
  }
}

.brand-m {
  display: none;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .brand-m {
    display: inline-flex;
  }
}

.w-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.w-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 10px 8px 10px 12px;
  border-radius: 10px;
  background-color: var(--grey-100);
  font-size: 14px;
}

.w-row.hl {
  background-color: var(--grey-200);
}

@media (hover: hover) {
  .w-row:hover {
    background-color: var(--grey-200);
  }
}

.w-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.w-range {
  font-size: 15px;
  color: var(--ink);
}

.w-range .num {
  font-weight: 700;
}

.w-range .wd-k {
  margin-left: 2px;
  font-size: 12px;
  color: var(--muted);
}

.w-range .dash {
  margin: 0 5px;
  color: var(--symbol);
}

.w-dd {
  flex: none;
  padding: 2px 6px;
  border-radius: 6px;
  background-color: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.w-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

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

.w-sum {
  padding: 3px 8px;
  border-radius: 8px;
  background-color: var(--blue-50);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.w-sum .num,
.w-leave .num {
  font-weight: 700;
}

.w-row .w-x {
  flex: none;
  margin-left: 0;
}

.m-d {
  font-family: var(--font-num);
  font-weight: 900;
  color: var(--accent);
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .w-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main x" "meta x";
    row-gap: 6px;
    column-gap: 8px;
    padding: 12px 6px 12px 14px;
  }
  .w-main {
    grid-area: main;
  }
  .w-meta {
    grid-area: meta;
  }
  .w-row .w-x {
    grid-area: x;
    align-self: center;
  }
  .w-range {
    font-size: 16px;
  }
}

.m-bubble {
  transform: scale(0.92);
  transform-origin: 0 calc(100% - 19px);
}

.mascot.open .m-bubble {
  transform: none;
}

.m-dots {
  position: absolute;
  left: 139px;
  bottom: 94px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  opacity: 1;
  transform: none;
  transform-origin: 0 calc(100% - 19px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s;
}

.m-dots::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #fff;
  transform: rotate(45deg);
}

.m-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b95a1;
  animation: m-dot 1.4s ease-in-out infinite;
}

.m-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.m-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes m-dot {
  0%,
  60%,
  100% {
    opacity: 0.35;
  }
  30% {
    opacity: 1;
  }
}

.mascot.open .m-dots {
  opacity: 0;
  transform: scale(0.92);
  visibility: hidden;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
}

@media (max-width: 900px) {
  .m-bubble {
    transform-origin: 100% calc(100% - 19px);
  }
  .m-dots {
    left: auto;
    right: 107px;
    bottom: 60px;
    transform-origin: 100% calc(100% - 19px);
  }
  .m-dots::before {
    left: auto;
    right: -6px;
    border-left: 0;
    border-bottom: 0;
    border-top: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-dots,
  .mascot.open .m-dots {
    transition: none;
  }
  .m-dots span {
    animation: none;
    opacity: 0.7;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .panel-head {
    height: calc(52px + env(safe-area-inset-top));
  }
  .seg-year button {
    height: 44px;
    padding: 0 2px;
  }
  .mp button .num {
    font-size: 13px;
  }
  .card.r1 .c-rank,
  .card.r2 .c-rank,
  .card.r3 .c-rank,
  .card .c-sub .c-gain .num,
  .card.r2 .c-sub .c-gain .num,
  .card.r3 .c-sub .c-gain .num {
    font-size: 13px;
  }
  .stepper {
    top: calc(52px + env(safe-area-inset-top));
    height: 56px;
  }
  .legend li,
  .mt-unit,
  .mt-hol,
  .wd span,
  .seg-year .yo,
  .seg-year .yo-n,
  .seg-mode button,
  .mp button,
  .c-rank,
  .card .c-range .wd-k,
  .card .c-range .yy,
  .card .c-gain,
  .card .c-gain *,
  .w-dd,
  .w-range .wd-k,
  .pin-meta,
  .pin-del,
  .wallet .share-btn {
    font-size: 13px;
  }
  .pop {
    bottom: var(--kb, 0px);
    padding-top: 26px;
    touch-action: pan-x;
  }
  .pop::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 2px;
    background: var(--grey-300);
  }
  .mascot {
    transform-origin: 100% 100%;
  }
  .mascot.in.scrolling {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@media (min-width: 401px) and (max-width: 768px) {
  .brand-row .help-btn {
    width: 32px;
    min-width: 32px;
    padding: 0;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
}

.d {
  isolation: isolate;
}

.d .t {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: -1;
  display: none;
  height: 24px;
  margin-top: -12px;
  background-color: #fdeeee;
  pointer-events: none;
}

.d.ht .t {
  display: block;
}

.d.hs .t {
  left: 3px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.d.he .t {
  right: 3px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.d.past .t {
  opacity: 0.5;
}

.d.hol .n::after,
.d.sub .n::after,
.d.tmp .n::after {
  opacity: 0;
}

.d.cus:not(.hol):not(.sub):not(.tmp) .n::after {
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  bottom: -1px;
  border-radius: 50%;
  opacity: 1;
}

.wd span:last-child {
  color: var(--sat);
}

.mt-off {
  flex: none;
  margin-left: auto;
  padding-left: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.mt-off .num {
  font-weight: 700;
  color: var(--sun);
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .d .t {
    height: 32px;
    margin-top: -16px;
  }
  .d.hs .t {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }
  .d.he .t {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }
  .mt-off {
    font-size: 13px;
  }
}

.months .d.past.hol .n::after,
.months .d.past.sub .n::after,
.months .d.past.tmp .n::after {
  opacity: 0;
}

.tour {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.tour-dim {
  fill: rgba(25, 31, 40, 0.55);
}

.tour-ring {
  stroke: #1b64da;
  stroke-width: 2;
  animation: tour-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes tour-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.5;
  }
}

.tour-tip {
  width: 312px;
  padding: 18px 18px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 31, 40, 0.22);
}

.tour-arrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.tour-arrow[hidden] {
  display: none;
}

.tour-count {
  position: relative;
  justify-content: flex-start;
  gap: 10px;
  height: 16px;
  font-size: 12px;
  color: var(--muted);
}

.tour-dots {
  gap: 4px;
}

.tour-dots span {
  width: 6px;
  height: 6px;
  background: var(--grey-300);
}

.tour-dots span.on {
  width: 16px;
  border-radius: 3px;
  background: #1b64da;
}

.tour-title {
  position: relative;
  margin: 10px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  word-break: keep-all;
}

.tour-text {
  position: relative;
  margin: 0 0 16px;
  min-height: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #4e5968;
  white-space: normal;
  word-break: keep-all;
}

.tour-actions {
  position: relative;
}

.tour-skip {
  height: 36px;
  padding: 0 2px;
  font-size: 13px;
  color: var(--muted);
}

.tour-nav {
  display: flex;
  gap: 6px;
}

.tour-prev {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4e5968;
  background: var(--grey-100);
  transition: background-color var(--t) var(--ease);
}

@media (hover: hover) {
  .tour-prev:hover {
    background: #e5e8eb;
  }
}

.tour-prev:disabled {
  visibility: hidden;
}

.tour-next {
  min-width: 76px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background-color: #1b64da;
  font-size: 13px;
  font-weight: 700;
}

.tour-tip button:focus-visible {
  outline: 2px solid #1b64da;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tour-ring {
    animation: none;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .tour-tip {
    width: calc(100vw - 32px);
    max-width: none;
  }
}

.area-title {
  display: flex;
  align-items: center;
  height: 26px;
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 700;
  line-height: 26px;
  color: var(--ink);
}

.area-title .num {
  font-weight: 700;
}

.mt[tabindex] {
  cursor: default;
}

.mt[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.mf {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.mf-used {
  font-size: 13px;
  color: var(--muted);
}

.mf-used .num {
  font-weight: 700;
  color: var(--ink);
}

.mf [hidden] {
  display: none;
}

.mt-hol {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .area-title {
    margin: 0;
    padding: 18px 16px 8px;
    height: auto;
    font-size: 18px;
  }
  .tip.hol-pop {
    display: block;
    pointer-events: auto;
  }
  .mf-used {
    font-size: 13px;
  }
}

.mt-hol {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex: 0 1 auto;
}

.mh-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-more {
  flex: none;
  white-space: nowrap;
}

@media (min-width: 769px) and (pointer: fine), (min-width: 769px) and (min-height: 501px) {
  .area-plan {
    margin-bottom: var(--sec-gap, 5px);
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .area-title {
    padding: 20px 0 5px;
  }
  .area-plan {
    order: 1;
    margin: 0 16px;
  }
  .cal-top + .area-title {
    padding-top: 6px;
  }
}

.m-face {
  touch-action: none;
  cursor: grab;
  transition: transform 160ms var(--ease-out);
}

.mascot.dragging,
.mascot.dragging .m-face {
  cursor: grabbing;
}

.mascot.dragging .m-face {
  transform: scale(1.04);
}

.mascot.dragging {
  transition: opacity 300ms var(--ease-out);
}

.mascot {
  --fw: 150px;
  --bb: 94px;
}

.mascot.side-r {
  flex-direction: row;
}

.mascot.side-r .m-bubble {
  margin: 0 0 var(--bb) calc(var(--fw) * -0.14);
  transform-origin: 0 calc(100% - 19px);
}

.mascot.side-r .m-bubble::before,
.mascot.side-r .m-dots::before {
  left: -6px;
  right: auto;
  border: 0;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.mascot.side-r .m-dots {
  left: calc(var(--fw) * 0.927);
  right: auto;
  bottom: var(--bb);
  transform-origin: 0 calc(100% - 19px);
}

.mascot.side-l {
  flex-direction: row-reverse;
}

.mascot.side-l .m-bubble {
  margin: 0 calc(var(--fw) * -0.067) var(--bb) 0;
  transform-origin: 100% calc(100% - 19px);
}

.mascot.side-l .m-bubble::before,
.mascot.side-l .m-dots::before {
  left: auto;
  right: -6px;
  border: 0;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}

.mascot.side-l .m-dots {
  left: auto;
  right: calc(var(--fw) * 1.03);
  bottom: var(--bb);
  transform-origin: 100% calc(100% - 19px);
}

@media (max-width: 900px) {
  .mascot {
    --fw: 104px;
    --bb: 60px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .mascot.side-r {
    transform-origin: 0 100%;
  }
  .mascot.side-l {
    transform-origin: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-face {
    transition: none;
  }
}

.d {
  cursor: default;
}

.d.pk,
.month.dim .d:not(.out) {
  cursor: pointer;
}

@media (hover: hover) and (min-width: 769px) and (pointer: fine), (hover: hover) and (min-width: 769px) and (min-height: 501px) {
  .d.pk .n {
    transition: background-color 120ms var(--ease), filter 120ms var(--ease);
  }
  .d.pk:not(.f):hover .n {
    background-color: #f2f4f6;
  }
  .d.pk:is(.k1, .k2, .k3, .pin):not(.f):hover .n {
    background-color: rgba(25, 31, 40, 0.06);
  }
  .d.pk.f:hover .n {
    filter: brightness(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .d.pk .n {
    transition: none;
  }
}

.seg-year .yo-u {
  display: none;
}

[data-noring]:focus-visible {
  outline: none;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .seg-year .yo-l {
    display: none;
  }
  .seg-year .yo-u {
    display: inline;
  }
  .seg-year .yo-n {
    min-width: 0;
  }
  .seg-year .yo,
  .seg-year .yo-n {
    font-size: 13px;
  }
  .seg-year button {
    padding: 0 4px;
  }
  .results .card:is(.r1, .r2, .r3) {
    grid-template-columns: 40px minmax(0, 1fr) 64px;
    column-gap: 10px;
    padding: 14px 12px 14px 14px;
  }
  .results .card:is(.r1, .r2, .r3) .pin-btn {
    width: 64px;
    min-width: 0;
    padding: 0;
  }
  .results .card .c-gain {
    font-size: 13px;
  }
  .stepper {
    box-shadow: 0 0 0 9px var(--page), -24px 0 0 9px var(--page), 24px 0 0 9px var(--page), 0 1px 0 9px rgba(25, 31, 40, 0.03), -24px 1px 0 9px rgba(25, 31, 40, 0.03), 24px 1px 0 9px rgba(25, 31, 40, 0.03);
  }
  .mascot {
    --fw: 88px;
    --bb: 51px;
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .m-face {
    width: 88px;
    height: 118px;
  }
}

.mt-nav {
  display: none;
}

.mt-head {
  display: contents;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .months .month:not(.cur) {
    display: none;
  }
  .months .month.cur .mt {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 44px;
    grid-template-areas: "prev head head next" "hol hol off off";
    align-items: center;
    column-gap: 4px;
    row-gap: 2px;
    height: auto;
    padding: 0;
  }
  .mt-head {
    grid-area: head;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
  }
  .months .mt-num {
    font-size: 20px;
  }
  .mt-nav {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--ink);
    transition: background-color 120ms var(--ease);
  }
  .mt-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mt-nav:active {
    background-color: var(--grey-100);
  }
  .mt-nav:disabled {
    color: var(--grey-300);
  }
  .mt-prev {
    grid-area: prev;
  }
  .mt-next {
    grid-area: next;
  }
  .months .month.cur .mt-hol {
    grid-area: hol;
    padding-left: 6px;
  }
  .months .month.cur .mt-off {
    grid-area: off;
    padding-right: 6px;
  }
  .months .month.cur {
    touch-action: pan-y;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .mt-head .mt-unit {
    margin-left: 0;
    font-size: 15px;
  }
}

.ann-card {
  flex: none;
  padding: 14px 16px 12px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: var(--surface);
}

.an-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.an-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.an-step {
  height: 34px;
}

.an-step button {
  width: 30px;
  height: 30px;
}

.an-step .mini-val {
  min-width: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.ann-card .gauge {
  margin: 12px 0 8px;
  height: 10px;
  border-radius: 5px;
}

.g-seg,
.ann-card .g-seg {
  background: linear-gradient(90deg, #8b95a1 var(--u, 0%), #333d4b var(--u, 0%));
}

.g-seg.hl,
.ann-card .g-seg.hl {
  background: var(--accent);
}

.an-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.an-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.an-legend .num {
  margin-right: 8px;
  font-weight: 700;
  color: var(--ink);
}

.an-key {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.an-key.k-used {
  background: #8b95a1;
}

.an-key.k-plan {
  background: #333d4b;
}

.an-remain {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.an-remain .num {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.an-remain.warn .num {
  color: #cc2b33;
}

.an-sum {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--grey-100);
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.an-sum.has {
  color: var(--ink-2);
}

.an-sum .num {
  font-weight: 700;
  color: #1b64da;
}

.w-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex: none;
  margin-bottom: 8px;
}

.w-h {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.w-count {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .area-plan {
    order: 3;
  }
  .ann-card {
    order: 3;
    margin: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .an-step {
    height: 40px;
  }
  .an-step button {
    width: 40px;
    height: 40px;
  }
  .results-wrap {
    margin-top: 12px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .ann-card {
    padding: 12px 14px 10px;
  }
  .ann-card .gauge {
    margin: 10px 0 6px;
  }
  .an-sum {
    margin-top: 6px;
    padding-top: 6px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .cal {
    display: contents;
  }
  #secCal {
    order: 5;
    margin: 14px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .period {
    order: 6;
    margin: 0;
  }
  .cal-top {
    order: 7;
    margin: 8px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }
  .months {
    order: 8;
    margin: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .wallet {
    order: 9;
  }
}

.share-note,
.share-note:empty {
  display: none;
}

.mascot.corner {
  transform-origin: 100% 100%;
}

.mascot.corner.in.scrolling {
  opacity: 0.45;
  transform: scale(0.82);
}

.m-dots::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: -8px;
  bottom: -8px;
}

@media (min-width: 901px) {
  .cond {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "lbl step mode" "mp mp mp";
  }
  .cond .stepper .box-label {
    display: block;
    grid-area: lbl;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
  }
  .mt-hol {
    cursor: help;
    transition: color 120ms var(--ease);
  }
}

@media (min-width: 901px) and (hover: hover) {
    .mt[tabindex]:hover .mt-hol {
      color: var(--ink);
    }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .mt-nav {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (min-width: 901px) {
  .mt-hol .mh-more {
    font-size: 12px;
  }
}

#share #shareNote {
  display: none;
}

.brand-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.brand-ico svg {
  width: 16px;
  height: 16px;
}

.brand-m .brand-ico {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.brand-m .brand-ico svg {
  width: 12px;
  height: 12px;
}

.cal-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  height: 26px;
  margin: 0 0 5px;
}

.cal-sub #secCal {
  margin: 0;
}

.cal-sub .legend {
  align-content: center;
  max-height: none;
  padding: 0;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .cal-sub {
    order: 5;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: auto;
    margin: 14px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }
  .cal-sub #secCal {
    margin: 0;
    padding: 6px 0 0;
  }
  .cal-top {
    order: 7;
    margin: 0;
  }
}

.results-wrap .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  min-height: 34px;
}

.use-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.us-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.use-step .mini-val output {
  font: inherit;
  color: inherit;
}

.mini-step button[aria-disabled="true"] {
  opacity: 0.35;
}

@media (min-width: 901px) {
  .cond {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "mode" "mp";
  }
  .cond .seg-mode {
    justify-self: start;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .use-step .an-step {
    height: 40px;
  }
  .use-step .an-step button {
    width: 40px;
    height: 40px;
  }
  .period {
    order: 6;
  }
}

.cbar {
  position: fixed;
  top: 12px;
  left: 0;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 10px 0 10px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 31, 40, 0.06);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.cbar.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (min-width: 901px) {
  .cbar {
    display: flex;
  }
}

html.touring .cbar {
  visibility: hidden;
}

.cb-mode {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border-radius: 10px;
  background: var(--grey-100);
}

.cb-mode button {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.cb-mode button[aria-checked="true"] {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(25, 31, 40, 0.08);
}

.cb-mwrap {
  position: relative;
  flex: none;
}

.cb-mwrap[hidden] {
  display: none;
}

.cb-month {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 8px 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 120ms var(--ease);
}

.cb-month[aria-expanded="true"] {
  background: var(--grey-100);
}

@media (hover: hover) {
  .cb-month:hover {
    background: var(--grey-100);
  }
}

.cb-month svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cb-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 52px);
  gap: 4px;
  padding: 8px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 31, 40, 0.12);
}

.cb-pop[hidden] {
  display: none;
}

.cb-pop button {
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

@media (hover: hover) {
  .cb-pop button:hover {
    background: var(--grey-100);
  }
}

.cb-pop button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.cb-use {
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cbar {
    transition: none;
  }
}

.cal-sub .legend {
  order: 2;
}

.cal-sub #secCal {
  order: 0;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .panel-head {
    z-index: 40;
    box-shadow: 0 1px 0 rgba(25, 31, 40, 0.06);
  }
}

@media (min-width: 901px) {
  .app {
    column-gap: 24px;
  }
}

.help-btn,
.brand-row .help-btn,
.help-d {
  position: relative;
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 12px 0 6px;
  gap: 6px;
  justify-content: flex-start;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.help-btn::before {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

@media (min-width: 769px) and (pointer: fine), (min-width: 769px) and (min-height: 501px) {
  .help-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    bottom: -6px;
  }
}

@media (min-width: 401px) and (max-width: 768px) {
  .brand-row .help-btn {
    width: auto;
    padding: 0 12px 0 6px;
    gap: 6px;
    font-size: 13px;
  }
}

@media (max-width: 339px) {
  .hb-more {
    display: none;
  }
}

.help-hint {
  position: absolute;
  z-index: 60;
  left: 0;
  top: 0;
  max-width: 240px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--grey-900);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.help-hint.fixed {
  position: fixed;
}

.help-hint.on {
  opacity: 1;
  transform: none;
}

.help-hint[hidden] {
  display: none;
}

.help-hint::before {
  content: "";
  position: absolute;
  top: -5px;
  left: var(--tx, 16px);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--grey-900);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .help-hint {
    transition: none;
  }
}

.results-wrap .use-step {
  gap: 10px;
}

.results-wrap .us-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-800);
}

.results-wrap .use-step .an-step {
  height: 48px;
  padding: 0;
  gap: 0;
  border-radius: 14px;
  background: var(--grey-100);
}

.results-wrap .use-step .an-step button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 18px;
  color: var(--ink-2);
}

@media (hover: hover) {
  .results-wrap .use-step .an-step button:hover:not(:disabled):not([aria-disabled="true"]) {
    background-color: var(--grey-200);
  }
}

.results-wrap .use-step .mini-val {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  min-width: 52px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.results-wrap .use-step .mini-val output {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.results-wrap .sec-head {
  flex-wrap: wrap;
  row-gap: 8px;
}

@media (max-width: 339px) {
  .results-wrap .use-step {
    flex: 1 1 100%;
  }
  .results-wrap .use-step .an-step {
    flex: 1;
    justify-content: space-between;
  }
}

.w-leave {
  flex: none;
  width: 58px;
  text-align: left;
}

.w-sum {
  flex: none;
  box-sizing: border-box;
  width: 78px;
  text-align: center;
}

.w-leave .num,
.w-sum .num,
.w-range .num,
.card .num {
  font-variant-numeric: tabular-nums;
}

.w-range {
  white-space: nowrap;
}

.help-btn,
.brand-row .help-btn,
.help-d {
  height: 26px;
  padding: 0 6px 0 4px;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  color: var(--muted);
}

@media (hover: hover) {
  .help-btn:hover,
  .brand-row .help-btn:hover,
  .help-d:hover {
    background-color: var(--grey-100);
    color: var(--grey-800);
  }
}

.help-btn::before {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--grey-500);
  border-radius: 50%;
  background: transparent;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
}

@media (hover: hover) {
  .help-btn:hover::before {
    border-color: var(--grey-700);
    color: var(--grey-800);
  }
}

@media (min-width: 769px) and (pointer: fine), (min-width: 769px) and (min-height: 501px) {
  .help-btn::after {
    top: -9px;
    bottom: -9px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .brand-row .help-btn,
  .help-btn {
    background-color: transparent;
  }
}

@media (min-width: 769px) and (pointer: fine), (min-width: 769px) and (min-height: 501px) {
  .cal-head {
    column-gap: 12px;
  }
  .help-d {
    height: 32px;
    line-height: 32px;
  }
  .help-btn::after {
    top: -6px;
    bottom: -6px;
  }
}

html {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  overscroll-behavior-y: contain;
}

button,
[role="button"],
a,
.d {
  touch-action: manipulation;
}

.d {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.an-sum {
  word-break: keep-all;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .cus-in,
  .cus-form input,
  .cus-form select {
    font-size: 16px;
  }
  .mp {
    gap: 8px;
  }
  .mp button,
  .mp.off button {
    height: 44px;
  }
  .seg-year {
    --yg: 8px;
    column-gap: 8px;
  }
  .seg-year button {
    height: 44px;
  }
}

@media (max-width: 340px) {
  .months {
    margin-left: 12px;
    margin-right: 12px;
  }
  .months .month {
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .results .card:is(.r1, .r2, .r3) {
    height: auto;
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .results .card .c-range,
  .results .card .c-gain,
  .results .card .rl {
    white-space: normal;
    text-overflow: clip;
    word-break: keep-all;
  }
}

@media (max-width: 340px) {
  .results .card:is(.r1, .r2, .r3) {
    grid-template-columns: 26px minmax(0, 1fr) 60px;
    column-gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .results .card:is(.r1, .r2, .r3) .pin-btn {
    width: 60px;
  }
  .c-rank .cr-u {
    display: none;
  }
  .c-rank .num {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grey-200);
    color: var(--ink);
    font-size: 13px;
  }
  .card.r1 .c-rank .num {
    background: var(--accent);
    color: #fff;
  }
}

.mp-row,
.mbar {
  display: none;
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .mp-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
  }
  .mp-nav {
    min-width: 96px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--grey-100);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
  }
  .mp-nav:disabled {
    color: var(--grey-400);
  }
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 42;
    display: flex;
    align-items: center;
    gap: 10px;
    height: calc(56px + env(safe-area-inset-bottom));
    padding: 0 max(12px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left));
    border-top: 1px solid #dfe3e8;
    background: #fff;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  }
  .mbar.on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  html.touring .mbar,
  html.sheet-on .mbar {
    opacity: 0;
    pointer-events: none;
  }
  .mbar .an-step {
    flex: none;
    height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 12px;
    background: var(--grey-100);
  }
  .mbar .an-step button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
  }
  .mbar .mini-val {
    min-width: 38px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
  }
  .mbar .mini-val .num {
    font-size: 17px;
    font-weight: 800;
  }
  .mb-sum {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    color: var(--ink-2);
    white-space: nowrap;
  }
  .mb-sum b {
    color: #1b64da;
    font-weight: 700;
  }
  .mb-pin {
    flex: none;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
  }
  .mb-pin:disabled {
    background: var(--grey-200);
    color: var(--muted);
  }
  .mascot {
    --fw: 63px;
    --bb: 36px;
  }
  .m-face {
    width: 63px;
    height: 84px;
  }
  html.mbar-on .mascot {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  html.mbar-on .toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .mascot.pass {
    opacity: 0.35;
    pointer-events: none;
  }
  .mascot.pass * {
    pointer-events: none;
  }
}

@media (hover: none) {
  button:active:not(:disabled),
  [role="button"]:active {
    filter: brightness(0.94);
  }
  .d.pk:active .n {
    background-color: #f2f4f6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mbar {
    transition: none;
  }
}

@media (pointer: coarse) and (max-height: 500px) and (min-width: 600px) {
  .tour-tip {
    width: 460px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .results .card .c-range,
  .results .card .c-gain,
  .results .card .c-sub {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 360px) {
  .mbar {
    gap: 8px;
  }
  .mbar .an-step button {
    width: 40px;
  }
  .mbar .mini-val {
    min-width: 34px;
  }
  .mb-sum {
    font-size: 13px;
    overflow: hidden;
  }
  .mb-pin {
    padding: 0 14px;
  }
}

@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  .panel-head {
    column-gap: 8px;
  }
  .brand-row {
    gap: 8px;
    min-width: 0;
  }
  .brand-row .brand.brand-m {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
  }
}

@media (max-width: 390px) {
  .hb-more {
    display: none;
  }
}

@media (max-width: 360px) {
  .seg-year {
    --yg: 6px;
    column-gap: 6px;
  }
  .seg-year button {
    padding: 0 3px;
  }
  .seg-year .yr {
    font-size: 13px;
  }
  .seg-year .yo,
  .seg-year .yo-n {
    font-size: 12px;
  }
}

@media (max-width: 339px) {
  .brand-row .brand.brand-m {
    font-size: 15px;
  }
  .brand-row .help-btn {
    width: 28px;
    padding: 0 6px;
    gap: 0;
    font-size: 0;
    justify-content: center;
  }
  .brand-row .help-btn::before {
    margin: 0;
  }
  .seg-year .yo-s {
    display: none;
  }
}

.help-btn {
  white-space: nowrap;
}

@media (max-width: 390px) {
  .seg-year .yo-s {
    display: none;
  }
  .seg-year .yo,
  .seg-year .yo-n {
    font-size: 12px;
  }
}
