









.acct-card {
  background: var(--warm-card, var(--mw-surface));
  border: 1px solid var(--warm-line, var(--mw-line));
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  overflow: hidden;
  max-width: 780px;
  margin-bottom: 16px;
}


.acct-card-head { padding: 16px 20px; border-bottom: 1px solid var(--warm-line, var(--mw-line)); }
.acct-card-head h3 {
  margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em;
  color: var(--warm-ink, var(--mw-ink));
}
.acct-card-head p {
  margin: 5px 0 0; font-size: 12px; line-height: 1.6;
  color: var(--warm-sub, var(--mw-muted));
}


.acct-hero {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px; border-bottom: 1px solid var(--warm-line, var(--mw-line));
  background: var(--warm-bg, var(--mw-surface-sunken));
}
.acct-avatar, .acct-avatar-empty {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 16px; object-fit: cover;
  background: var(--warm-card, var(--mw-neutral-soft));
  border: 1px solid var(--warm-line, var(--mw-line));
}
.acct-avatar-empty {
  display: flex; align-items: center; justify-content: center;




  font-size: 22px; color: var(--warm-sub, var(--mw-ink-soft));
}
.acct-hero-text { flex: 1 1 160px; min-width: 0; }
.acct-hero-name {
  font-size: 17px; font-weight: 800; letter-spacing: -.01em;
  color: var(--warm-ink, var(--mw-ink));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct-hero-sub { margin-top: 5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.acct-chip {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft, var(--mw-accent-soft));
  color: var(--accent-ink, var(--mw-accent-ink));
}
.acct-hero-note { font-size: 12px; color: var(--warm-sub, var(--mw-muted)); }


.acct-sec {
  display: grid; grid-template-columns: minmax(160px, 210px) 1fr; gap: 6px 28px;
  padding: 18px 20px;
}
.acct-sec + .acct-sec { border-top: 1px solid var(--warm-line, var(--mw-line)); }


.acct-sec.acct-sec-wide { grid-template-columns: 1fr; gap: 12px; }
.acct-sec-head h4 {
  margin: 0; font-size: 13px; font-weight: 800;
  color: var(--warm-ink, var(--mw-ink));
}
.acct-sec-head p {
  margin: 5px 0 0; font-size: 11.5px; line-height: 1.65;
  color: var(--warm-sub, var(--mw-muted));
}


.acct-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-content: start; }
.acct-fields.one-col { grid-template-columns: 1fr; }
.acct-field { display: block; min-width: 0; }
.acct-field > span {
  display: block; margin-bottom: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--warm-sub, var(--mw-muted));
}
.acct-field input, .acct-field select, .acct-field textarea {
  width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px;
  border: 1px solid var(--warm-line, var(--mw-line-strong)); border-radius: 10px;
  font-size: 13.5px; font-family: inherit;
  color: var(--warm-ink, var(--mw-ink));
  background: var(--warm-bg, var(--mw-surface-sunken));
  transition: border-color var(--mw-dur, .15s) var(--mw-ease, ease),
              box-shadow var(--mw-dur, .15s) var(--mw-ease, ease),
              background var(--mw-dur, .15s) var(--mw-ease, ease);
}
.acct-field input:focus, .acct-field select:focus, .acct-field textarea:focus {
  outline: none; background: var(--warm-card, var(--mw-surface));
  border-color: var(--accent, var(--mw-accent));
  box-shadow: 0 0 0 3px var(--accent-soft, var(--mw-accent-soft));
}
.acct-field input::placeholder { color: var(--warm-sub, var(--mw-muted)); opacity: .7; }
.acct-hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--warm-sub, var(--mw-muted)); }



.acct-card .inq-form select, .acct-card .inq-form input, .acct-card .inq-form textarea {
  padding: 10px 12px; border-radius: 10px;
  background: var(--warm-bg, var(--mw-surface-sunken));
  transition: border-color var(--mw-dur, .15s) var(--mw-ease, ease),
              box-shadow var(--mw-dur, .15s) var(--mw-ease, ease),
              background var(--mw-dur, .15s) var(--mw-ease, ease);
}
.acct-card .inq-form select, .acct-card .inq-form input { height: 40px; }
.acct-card .inq-form textarea { height: auto; }
.acct-card .inq-form select:focus, .acct-card .inq-form input:focus, .acct-card .inq-form textarea:focus {
  background: var(--warm-card, var(--mw-surface));
}
.acct-card .inq-item { border-radius: 12px; }


.acct-readout {
  padding: 12px 14px; border-radius: 12px;
  background: var(--warm-bg, var(--mw-surface-sunken));
  border: 1px solid var(--warm-line, var(--mw-line));
  font-size: 13px; line-height: 1.7; color: var(--warm-ink, var(--mw-ink));
}
.acct-readout:empty { display: none; }


.acct-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--warm-line, var(--mw-line));
  background: var(--warm-bg, var(--mw-surface-sunken));
}
.acct-foot .error { margin: 0; margin-right: auto; }

.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }


.acct-steps { counter-reset: acct-step; list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.acct-steps li {
  position: relative; padding-left: 30px;
  font-size: 13px; line-height: 1.65; color: var(--warm-ink, var(--mw-ink));
}
.acct-steps li::before {
  counter-increment: acct-step; content: counter(acct-step);
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent-soft, var(--mw-accent-soft));
  color: var(--accent-ink, var(--mw-accent-ink));
  font-size: 11px; font-weight: 800; line-height: 21px; text-align: center;
}
.acct-callout {
  margin-top: 12px; padding: 10px 13px; border-radius: 10px;
  background: var(--mw-warn-soft); color: var(--mw-warn-ink);
  font-size: 12px; line-height: 1.6;
}
.acct-cta {
  display: block; text-align: center; text-decoration: none;
  padding: 13px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: var(--mw-good); color: #fff;
}
.acct-cta:hover { filter: brightness(1.06); }

#remote-code { height: 46px; font-size: 18px; letter-spacing: 2px; text-align: center; font-variant-numeric: tabular-nums; }




.plan-grid {
  display: grid; gap: 12px; margin-top: 4px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.plan-loading { color: var(--mw-muted); font-size: 13px; padding: 20px 0; }
.plan-card {
  position: relative; display: flex; flex-direction: column; text-align: center;
  padding: 20px 16px 18px; border: 1px solid var(--mw-line); border-radius: 14px;
  background: var(--mw-surface); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;

  animation: plan-rise .42s cubic-bezier(.22, .8, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes plan-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(31, 36, 48, .12); border-color: var(--mw-line-strong); }
.plan-card:focus-visible { outline: 2px solid var(--mw-accent); outline-offset: 2px; }

.plan-card.picked { border-color: var(--mw-accent); background: var(--mw-accent-soft); box-shadow: 0 8px 22px rgba(47, 95, 218, .18); }
.plan-card.picked:hover { transform: translateY(-4px); }

.plan-card.current { border-color: var(--mw-good); }
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap;
  background: var(--mw-good); color: #fff;
}
.plan-card.picked .plan-badge.pick-badge { background: var(--mw-accent); }
.plan-name { font-size: 15px; font-weight: 800; color: var(--mw-ink); margin: 2px 0 10px; }
.plan-fee { font-size: 25px; font-weight: 800; letter-spacing: -.5px; color: var(--mw-ink); line-height: 1.15; }
.plan-fee .unit { font-size: 13px; font-weight: 700; color: var(--mw-muted); margin-left: 2px; }
.plan-fee.negotiable { font-size: 20px; }
.plan-quota { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--mw-accent-ink); }
.plan-sub { margin-top: 4px; font-size: 11.5px; color: var(--mw-muted); }
.plan-feats { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--mw-line); display: flex; flex-direction: column; gap: 7px; text-align: left; }
.plan-card.picked .plan-feats { border-top-color: rgba(47, 95, 218, .25); }
.plan-feat { display: flex; gap: 7px; font-size: 12px; color: var(--mw-ink-soft); line-height: 1.45; }
.plan-feat .tick { color: var(--mw-good-ink); font-weight: 800; flex: 0 0 auto; }
.plan-feat.off .tick { color: var(--mw-muted); }
.plan-feat.off { color: var(--mw-muted); }

.plan-pick-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--mw-accent-soft); border: 1px solid var(--mw-accent);
  animation: plan-rise .28s ease backwards;
}
.plan-pick-bar[hidden] { display: none; }
.plan-pick-text { font-size: 13px; font-weight: 700; color: var(--mw-accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .plan-card, .plan-pick-bar { animation: none; }
  .plan-card { transition: border-color .15s ease; }
  .plan-card:hover { transform: none; box-shadow: none; }
}
@media (max-width: 560px) {
  .plan-grid { grid-template-columns: 1fr; gap: 10px; }
  .plan-card { text-align: left; padding: 16px 14px; }
  .plan-badge { left: 14px; transform: none; }
  .plan-feats { text-align: left; }
  .plan-pick-bar { justify-content: stretch; }

  .plan-pick-bar .btn { flex: 1 1 auto; min-height: 44px; }
}





.bill-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.bill-panel {
  min-width: 0; padding: 16px; border: 1px solid var(--mw-line); border-radius: 14px;
  background: var(--mw-surface);
  animation: plan-rise .42s cubic-bezier(.22, .8, .3, 1) backwards;
}
.bill-panel + .bill-panel { animation-delay: 90ms; }
.bill-head { display: flex; align-items: center; gap: 11px; }
.bill-month {
  flex: 0 0 auto; width: 54px; padding: 7px 0; border-radius: 12px; text-align: center;
  background: var(--mw-accent-soft); color: var(--mw-accent-ink);
  font-variant-numeric: tabular-nums;
}
.bill-month .y { display: block; font-size: 10px; font-weight: 700; opacity: .85; }
.bill-month .m { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; }
.bill-head-text { min-width: 0; }
.bill-title { font-size: 11.5px; font-weight: 700; color: var(--mw-muted); }
.bill-plan {
  margin-top: 3px; font-size: 14px; font-weight: 800; color: var(--mw-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bill-amount {
  margin-top: 15px; font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  color: var(--mw-ink); font-variant-numeric: tabular-nums;
}
.bill-amount .unit { font-size: 15px; font-weight: 700; letter-spacing: 0; margin-left: 2px; }
.bill-amount.negotiable { font-size: 21px; letter-spacing: -.3px; color: var(--mw-muted); }
.bill-vat { margin-top: 5px; font-size: 11.5px; color: var(--mw-muted); font-variant-numeric: tabular-nums; }
.bill-rows { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--mw-line); display: grid; gap: 9px; }
.bill-row { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; color: var(--mw-ink-soft); }
.bill-row .lbl { flex: 0 1 auto; min-width: 0; }
.bill-row .note { font-size: 11px; color: var(--mw-muted); }

.bill-row .lead { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted var(--mw-line-strong); transform: translateY(-4px); }
.bill-row .val { flex: 0 0 auto; font-weight: 700; color: var(--mw-ink); font-variant-numeric: tabular-nums; }
.bill-row.minus .val { color: var(--mw-good-ink); }
.bill-row.total { margin-top: 1px; padding-top: 10px; border-top: 1px solid var(--mw-line); font-size: 13px; color: var(--mw-ink); }
.bill-row.total .lbl { font-weight: 800; }
.bill-row.total .val { font-size: 15px; font-weight: 800; }

.bill-sub { font-size: 11.5px; font-weight: 800; color: var(--mw-ink); margin-bottom: 11px; }
.bill-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--mw-neutral-soft); }
.bill-bar i { display: block; height: 100%; transform-origin: left; animation: bill-grow .55s cubic-bezier(.22, .8, .3, 1) .15s backwards; }
.bill-bar.empty { opacity: .5; }
@keyframes bill-grow { from { transform: scaleX(0); } }
.bill-bar i.c1, .bill-leg .dot.c1 { background: var(--mw-accent); }
.bill-bar i.c2, .bill-leg .dot.c2 { background: var(--mw-good); }
.bill-bar i.c3, .bill-leg .dot.c3 { background: var(--mw-warn); }
.bill-legend { margin-top: 12px; display: grid; gap: 8px; }
.bill-leg { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mw-ink-soft); }
.bill-leg .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.bill-leg .val { margin-left: auto; font-weight: 700; color: var(--mw-ink); font-variant-numeric: tabular-nums; }
.bill-leg.zero { color: var(--mw-muted); }
.bill-leg.zero .dot { opacity: .3; }
.bill-leg.zero .val { color: var(--mw-muted); font-weight: 400; }

.bill-use { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mw-line); }
.bill-use-item + .bill-use-item { margin-top: 12px; }
.bill-use-item .t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mw-ink-soft); margin-bottom: 6px; }
.bill-use-item .t .note { font-size: 10.5px; color: var(--mw-muted); }
.bill-use-item .t b { flex: 0 0 auto; color: var(--mw-ink); font-variant-numeric: tabular-nums; }
.bill-track { height: 7px; border-radius: 999px; background: var(--mw-neutral-soft); overflow: hidden; }
.bill-track i { display: block; height: 100%; border-radius: 999px; background: var(--mw-accent); transform-origin: left; animation: bill-grow .55s cubic-bezier(.22, .8, .3, 1) .2s backwards; }
.bill-track i.warn { background: var(--mw-warn); }
.bill-track i.over { background: var(--mw-bad); }






.inv-wrap { display: grid; gap: 12px; }
.inv-wrap > * { min-width: 0; }
.inv-empty {
  padding: 16px; border: 1px dashed var(--mw-line-strong); border-radius: 12px;
  font-size: 12.5px; color: var(--mw-muted); text-align: center;
}
.inv-chart-card { padding: 16px; border: 1px solid var(--mw-line); border-radius: 14px; background: var(--mw-surface); }
.inv-unit { font-weight: 400; color: var(--mw-muted); }


.inv-chart-scroll { overflow-x: auto; overflow-y: hidden; }
.inv-chart { display: flex; align-items: flex-end; gap: 6px; height: 132px; min-width: 100%; }

.inv-col { flex: 1 0 40px; min-width: 0; max-width: 96px; display: flex; flex-direction: column; height: 100%; }
.inv-val { font-size: 10.5px; font-weight: 700; color: var(--mw-muted); text-align: center; font-variant-numeric: tabular-nums; }
.inv-bar-slot { flex: 1 1 auto; display: flex; align-items: flex-end; margin: 4px 0 6px; }
.inv-bar-slot i {
  display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--mw-accent);
  transform-origin: bottom; animation: inv-grow .5s cubic-bezier(.22, .8, .3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes inv-grow { from { transform: scaleY(0); } }

.inv-col.open .inv-bar-slot i {
  background: repeating-linear-gradient(135deg, var(--mw-accent) 0 6px, var(--mw-accent-ink) 6px 12px);
}
.inv-col.open .inv-val { color: var(--mw-accent-ink); }

.inv-bar-slot i.none { height: 3px; background: var(--mw-line-strong); border-radius: 2px; animation: none; }
.inv-x { font-size: 10.5px; color: var(--mw-muted); text-align: center; font-variant-numeric: tabular-nums; }

.inv-list { display: grid; gap: 8px; }
.inv-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; border: 1px solid var(--mw-line); border-radius: 12px; background: var(--mw-surface);
}
.inv-period { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--mw-ink); font-variant-numeric: tabular-nums; }
.inv-mid { flex: 1 1 150px; min-width: 0; }
.inv-plan { font-size: 12.5px; font-weight: 700; color: var(--mw-ink); display: flex; align-items: center; gap: 7px; }
.inv-state {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: var(--mw-neutral-soft); color: var(--mw-muted);
}
.inv-state.open { background: var(--mw-accent-soft); color: var(--mw-accent-ink); }
.inv-parts { margin-top: 3px; font-size: 11px; color: var(--mw-muted); }
.inv-total { flex: 0 0 auto; margin-left: auto; font-size: 14px; font-weight: 800; color: var(--mw-ink); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .bill-panel, .bill-bar i, .bill-track i, .inv-bar-slot i { animation: none; }
}

@media (max-width: 720px) {
  .bill-wrap { grid-template-columns: 1fr; }
  .bill-panel + .bill-panel { animation-delay: 0s; }
}

@media (max-width: 860px) {

  .acct-sec { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .acct-card { border-radius: 14px; }
  .acct-hero, .acct-sec, .acct-card-head, .acct-foot { padding-left: 14px; padding-right: 14px; }
  .acct-fields { grid-template-columns: 1fr; }
  .acct-foot { justify-content: stretch; }
  .acct-foot .btn { flex: 1 1 auto; }
}
