/* NextEra client portal. Calm, legible, works on a phone. */
:root { --bg: #F4F4F1; --card: #fff; --ink: #141A2A; --ink2: #5A6275; --line: #DEE0E6; --brand: #3B3FE0; --brand-ink: #fff; --side: #14182A; --ok: #1F6B4A; --wait: #C2560C; --danger: #B3261E; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); line-height: 1.15; margin: 0 0 .4rem; }
h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand span { font-weight: 400; color: var(--ink2); }
.top-link { font-weight: 600; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); padding: .4rem .8rem; border-radius: 6px; }
.shell { max-width: 1200px; margin: 0 auto; }
.shell.has-side { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: none; min-height: calc(100vh - 58px); }
.side { background: var(--side); color: #fff; padding: 1.25rem 1rem; }
.side-biz { font-weight: 800; margin: 0; }
.side-plan { display: inline-block; margin: .4rem 0 1rem; font-size: .8rem; background: #fff; color: var(--wait); padding: .1rem .5rem; border-radius: 4px; font-weight: 700; }
.side nav { display: grid; gap: .15rem; }
.side nav a, .side-out { display: block; color: #D8DAE6; text-decoration: none; padding: .55rem .7rem; border-radius: 6px; font-weight: 600; font-size: .95rem; background: none; border: 0; text-align: left; width: 100%; font-family: inherit; cursor: pointer; }
.side nav a:hover, .side-out:hover { background: rgba(255,255,255,.08); color: #fff; }
.side nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.side form { margin: 0; }
.main { padding: 1.75rem 1.5rem 4rem; max-width: 1000px; width: 100%; }
.shell:not(.has-side) .main { margin: 0 auto; }
.lead { color: var(--ink2); margin: 0 0 1.25rem; }
.muted { color: var(--ink2); font-size: .92rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; margin: 0 0 1.1rem; }
.narrow { max-width: 440px; margin: 3rem auto; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.card-head h2 a { color: var(--ink); }
.pc { color: var(--ink2); font-weight: 600; font-size: .9rem; }
progress.bar { width: 100%; height: 8px; border: 0; border-radius: 99px; background: #E7E8EC; appearance: none; overflow: hidden; margin: .2rem 0 .9rem; }
progress.bar::-webkit-progress-bar { background: #E7E8EC; border-radius: 99px; }
progress.bar::-webkit-progress-value { background: var(--ok); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--ok); border-radius: 99px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #B9BDC8; }
.step-done .dot { background: var(--ok); border-color: var(--ok); }
.step-now .dot { border-color: var(--brand); background: radial-gradient(var(--brand) 40%, transparent 45%); }
.step-wait .dot { border-color: var(--wait); }
.step-d { color: var(--ink2); font-size: .85rem; white-space: nowrap; }
.tag { display: inline-block; margin-left: .4rem; font-size: .75rem; padding: .05rem .45rem; border-radius: 99px; background: #FDEBDD; color: var(--wait); }
.tag-now { background: #E8E9FD; color: var(--brand); }
.approve { margin-top: 1rem; padding: 1rem; border: 2px solid var(--wait); border-radius: 10px; background: #FFF8F2; }
.approve p { margin: 0 0 .8rem; }
.approve form.inline { display: inline-block; margin: 0 .5rem .5rem 0; vertical-align: top; }
.changes { display: inline-block; vertical-align: top; }
.changes[open] { display: block; margin-top: .5rem; }
.changes summary { list-style: none; }
.changes summary::-webkit-details-marker { display: none; }
.changes form { margin-top: .8rem; }
.note-wait { margin: .8rem 0 0; font-weight: 700; }
.note-wait a { color: var(--wait); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin: 0 0 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; color: var(--ink); text-decoration: none; }
.stat b { display: block; font-size: 1.6rem; }
.stat-wait { border-color: var(--wait); background: #FFF8F2; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.cols { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) {
  .shell.has-side { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side nav { grid-auto-flow: column; overflow-x: auto; }
  .side nav a, .side-out { white-space: nowrap; }
  .cols { grid-template-columns: 1fr; }
}
label { display: grid; gap: .3rem; font-weight: 600; margin: 0 0 .9rem; }
input, textarea, select { font: inherit; color: var(--ink); background: #fff; border: 1px solid #B9C0CF; border-radius: 8px; padding: .55rem .7rem; width: 100%; font-weight: 400; }
input[type=file] { padding: .45rem; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem 1.1rem; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font-family: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.upload { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; }
.upload label { margin: 0; }
@media (max-width: 760px) { .upload { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--ink2); }
td a { word-break: break-word; }
.nowrap { white-space: nowrap; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.dl dt { color: var(--ink2); }
.dl dd { margin: 0; word-break: break-word; }
.flash { background: #E8F5EE; border: 1px solid #B6DFC8; color: var(--ok); padding: .7rem 1rem; border-radius: 8px; font-weight: 600; }
.error { background: #FBEAEA; border: 1px solid #F0C2C0; color: var(--danger); padding: .7rem 1rem; border-radius: 8px; }
.empty { text-align: center; padding: 2rem 1rem; }
