.nc-long-term {
  --nc-border: #d8dde6;
  --nc-muted: #5f6875;
  --nc-soft: #f7f9fc;
  --nc-blue-soft: #eef5ff;
  --nc-text: #17202a;
  --nc-accent: #1558d6;
  max-width: 920px;
  margin: 1.5rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--nc-border);
  border-radius: 18px;
  background: #fff;
  color: var(--nc-text);
  box-sizing: border-box;
}
.nc-long-term *, .nc-long-term *::before, .nc-long-term *::after { box-sizing: border-box; }
.nc-long-term__eyebrow { margin: 0 0 .45rem; font-size: 18px !important; line-height: 1.35; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; color: var(--nc-accent); }
.nc-long-term h2 { margin: 0 0 .7rem; font-size: clamp(1.55rem, 5vw, 2.15rem); line-height: 1.15; }
.nc-long-term__intro > p:last-child { margin: 0 0 1.35rem; color: var(--nc-muted); font-size: 17px; line-height: 1.5; }
.nc-long-term__section { margin: 0 0 1rem; padding: 1rem; border: 1px solid #e3e7ed; border-radius: 14px; background: #fff; }
.nc-long-term__section legend { padding: 0 .35rem; font-size: 17px; line-height: 1.35; font-weight: 800; }
.nc-long-term__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.nc-long-term__field label { display: block; margin-bottom: .45rem; font-size: 16px; line-height: 1.35; font-weight: 700; }
.nc-long-term input, .nc-long-term select { width: 100%; min-height: 52px; padding: .72rem .85rem; border: 1px solid #aeb7c4; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.nc-long-term input:focus, .nc-long-term select:focus { outline: 3px solid rgba(21,88,214,.18); border-color: var(--nc-accent); }
.nc-long-term__help { margin: .45rem 0 0; color: var(--nc-muted); font-size: 15px; line-height: 1.45; }
.nc-long-term__submit { width: 100%; min-height: 50px; margin-top: .2rem; padding: .78rem 1rem; border: 0; border-radius: 10px; background: var(--nc-accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.nc-long-term__submit:hover { filter: brightness(.94); }
.nc-long-term__submit:disabled { opacity: .65; cursor: wait; }
.nc-long-term__error { margin: .8rem 0 0; padding: .8rem .95rem; border-radius: 9px; background: #fff7e8; color: #7b4208; font-size: 15px; line-height: 1.45; }
.nc-long-term__result { margin-top: 1.5rem; border-top: 1px solid var(--nc-border); padding-top: 1.5rem; }
.nc-long-term__status { padding: 1rem 1.1rem; border: 1px solid #cbd8ef; border-radius: 14px; background: var(--nc-blue-soft); }
.nc-long-term__status[data-status="eligible"], .nc-long-term__status[data-status="possible"] { border-color: #b9dfcf; background: #edf8f3; }
.nc-long-term__status[data-status="review"], .nc-long-term__status[data-status="risk"] { border-color: #ecd79a; background: #fff8df; }
.nc-long-term__status[data-status="track"] { border-color: #cbd8ef; background: #eef5ff; }
.nc-long-term__status-label { display: block; margin-bottom: .3rem; font-size: 14px; line-height: 1.35; font-weight: 900; letter-spacing: .04em; color: var(--nc-accent); }
.nc-long-term__status[data-status="eligible"] .nc-long-term__status-label, .nc-long-term__status[data-status="possible"] .nc-long-term__status-label { color: #146c4b; }
.nc-long-term__status[data-status="review"] .nc-long-term__status-label, .nc-long-term__status[data-status="risk"] .nc-long-term__status-label { color: #80620a; }
.nc-long-term__status strong { display: block; font-size: clamp(1.15rem, 4vw, 1.45rem); line-height: 1.25; }
.nc-long-term__status p { margin: .45rem 0 0; color: var(--nc-muted); font-size: 15px; line-height: 1.5; }
.nc-long-term__timeline { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1rem; }
.nc-long-term__date-card { padding: 1rem; border-radius: 14px; background: var(--nc-soft); }
.nc-long-term__date-card span { display: block; color: var(--nc-muted); font-size: 15px; line-height: 1.4; }
.nc-long-term__date-card strong { display: block; margin-top: .25rem; font-size: clamp(1.08rem, 4vw, 1.35rem); line-height: 1.25; overflow-wrap: anywhere; }
.nc-long-term__progress-block { margin-top: 1rem; padding: 1rem 1.05rem; border: 1px solid #dfe5ee; border-radius: 14px; background: #fbfcfe; }
.nc-long-term__progress-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 15px; line-height: 1.4; }
.nc-long-term__progress-head strong { font-size: 18px; }
.nc-long-term__progress { height: 12px; margin-top: .65rem; overflow: hidden; border-radius: 999px; background: #e7ebf2; }
.nc-long-term__progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--nc-accent); transition: width .3s ease; }
.nc-long-term__progress-block p { margin: .55rem 0 0; color: var(--nc-muted); font-size: 15px; line-height: 1.45; }
.nc-long-term__action { margin-top: 1rem; padding: 1rem 1.05rem; border: 1px solid #cbd8ef; border-radius: 14px; background: #f5f8ff; }
.nc-long-term__action > span { display: block; color: var(--nc-accent); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.nc-long-term__action strong { display: block; margin-top: .3rem; font-size: 18px; line-height: 1.3; }
.nc-long-term__action p { margin: .35rem 0 0; color: var(--nc-muted); font-size: 15px; line-height: 1.45; }
.nc-long-term__review { margin-top: 1rem; padding: .95rem 1rem; border: 1px solid #ecd79a; border-radius: 12px; background: #fff8df; }
.nc-long-term__review strong { display: block; color: #80620a; font-size: 16px; }
.nc-long-term__review ul { margin: .6rem 0 0 1.15rem; padding: 0; font-size: 15px; line-height: 1.5; }
.nc-long-term__basis { margin-top: 1.2rem; padding: .9rem 1rem; border: 1px solid var(--nc-border); border-radius: 12px; }
.nc-long-term__basis summary { cursor: pointer; font-size: 16px; line-height: 1.4; font-weight: 700; }
.nc-long-term__rules { margin: .9rem 0 0 1.2rem; padding: 0; color: var(--nc-muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.nc-long-term__rules li { margin-bottom: .35rem; overflow-wrap: anywhere; word-break: break-word; }
.nc-long-term__effective, .nc-long-term__notice { margin: .8rem 0 0; color: var(--nc-muted); font-size: 15px; line-height: 1.5; }
.nc-long-term__notice strong { display: block; margin-bottom: .25rem; color: var(--nc-text); font-size: 16px; }
.nc-long-term__notice p { margin: 0; }

.nc-long-term__section-copy { margin: 0 0 .9rem; color: var(--nc-muted); font-size: 15px; line-height: 1.5; }
.nc-long-term__summary { margin-top: 1rem; padding: 1rem; border: 1px solid #dfe5ee; border-radius: 14px; background: #fff; }
.nc-long-term__summary dl { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 0; }
.nc-long-term__summary dl > div { padding-bottom: .65rem; border-bottom: 1px solid #edf0f4; }
.nc-long-term__summary dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.nc-long-term__summary dt { color: var(--nc-muted); font-size: 14px; font-weight: 700; }
.nc-long-term__summary dd { margin: .2rem 0 0; font-size: 16px; font-weight: 700; }
@media (min-width: 720px) { .nc-long-term__summary dl { grid-template-columns: 1fr 1fr; } }

@media (min-width: 720px) {
  .nc-long-term__grid { grid-template-columns: 1fr 1fr; }
  .nc-long-term__field--wide { grid-column: 1 / -1; }
  .nc-long-term__timeline { grid-template-columns: repeat(3, 1fr); }
  .nc-long-term__submit { width: auto; min-width: 260px; }
}
@media (max-width: 719px) {
  body.newcomer-long-term-residence-calculator-page h1 { font-size: clamp(2rem, 9vw, 2.55rem) !important; line-height: 1.08 !important; letter-spacing: -.025em; }
  .nc-long-term { margin: 1rem auto; padding: 1rem; border-radius: 14px; }
  .nc-long-term h2 { font-size: 1.45rem; }
  .nc-long-term__section { padding: .85rem; }
  .nc-long-term__help, .nc-long-term__rules, .nc-long-term__effective, .nc-long-term__notice { font-size: .92rem; line-height: 1.5; }
  .nc-long-term__progress-head { align-items: flex-start; flex-direction: column; gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) { .nc-long-term * { scroll-behavior: auto !important; transition: none !important; } }

/* 0.13.3: keep technical Rule/source provenance out of the public UI. */
.nc-long-term__basis { display: none !important; }
