/* OffScript Client Portal — front end. Uses the OffScript theme tokens when present, with fallbacks. */
.nmcp-wrap, .nmcp-login, .nmcp, .nmcp-solo {
	--p-green: var(--os-orange, #FF5A1F);
	--p-green-deep: var(--os-ink, #111113);
	--p-wash: var(--os-peach, #FFD6C7);
	--p-kraft: var(--os-stone, #C9C6BF);
	--p-kraft-soft: var(--os-paper, #F4F2EE);
	--p-ink: var(--os-ink, #111113);
	--p-grey: #545454;
	--p-line: rgba(17, 17, 19, .1);
	--p-radius: 22px;
	--p-display: var(--nm-display, "Space Grotesk", system-ui, sans-serif);
	font-family: var(--nm-font, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.nmcp-wrap { width: min(100% - 2 * var(--nm-gutter, 1.25rem), 1320px); margin: clamp(1.25rem, 3vw, 2.5rem) auto clamp(3rem, 7vw, 6rem); }
.nmcp-wrap *, .nmcp-wrap *::before, .nmcp-wrap *::after { box-sizing: border-box; }
.nmcp-i { width: 1.2em; height: 1.2em; flex: none; }
.nmcp-muted { color: var(--p-grey); font-size: .92rem; }
.nmcp-strong { font-weight: 680; text-decoration: none; }
.nmcp-strong:hover { text-decoration: underline; text-decoration-color: var(--p-green); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.nmcp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 46px; padding: .6rem 1.15rem; border: 1.5px solid var(--p-ink); border-radius: 999px; background: #fff; color: var(--p-ink); font: inherit; font-weight: 660; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s; }
.nmcp-btn:hover { transform: translateY(-1px); background: var(--p-kraft-soft); }
.nmcp-btn--primary { background: var(--p-green); box-shadow: 0 2px 0 var(--p-ink); }
.nmcp-btn--primary:hover { background: var(--p-green); box-shadow: 0 3px 0 var(--p-ink); }
.nmcp-btn--sm { min-height: 36px; padding: .35rem .85rem; font-size: .88rem; }
.nmcp-btn--block { width: 100%; }
.nmcp-btn:focus-visible, .nmcp a:focus-visible, .nmcp button:focus-visible, .nmcp select:focus-visible { outline: 3px solid var(--p-green); outline-offset: 2px; }

/* Forms */
.nmcp-form { display: grid; gap: 1rem; }
.nmcp-field { display: grid; gap: .35rem; }
.nmcp-field > span { font-weight: 640; font-size: .93rem; }
.nmcp-field input, .nmcp-pass input { width: 100%; min-height: 50px; padding: .75rem 1rem; font: inherit; font-size: 1rem; border: 1.5px solid var(--p-ink); border-radius: 10px; background: #fff; color: var(--p-ink); }
.nmcp-field input:focus, .nmcp-pass input:focus { outline: none; border-color: var(--p-green-deep); box-shadow: 0 0 0 4px rgba(34, 160, 75, .3); }
.nmcp-pass { position: relative; display: block; }
.nmcp-pass input { padding-right: 4.5rem; }
.nmcp-pass__toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-weight: 650; font-size: .88rem; padding: .5rem .6rem; cursor: pointer; color: var(--p-green-deep); }
.nmcp-check { display: flex; align-items: center; gap: .55rem; font-size: .95rem; }
.nmcp-check input { width: 20px; height: 20px; accent-color: var(--p-green-deep); }
.nmcp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nmcp-alert { padding: .9rem 1.1rem; border-radius: 10px; border: 1.5px solid var(--p-ink); background: var(--p-kraft-soft); font-weight: 600; margin-bottom: 1rem; }
.nmcp-alert--err { background: #fde8e6; }
.nmcp-alert--ok { background: var(--p-wash); }

/* ===================== Login ===================== */
.nmcp-login { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); overflow: hidden; background: #fff; min-height: 620px; }
.nmcp-login__pitch { position: relative; padding: clamp(2rem, 5vw, 4rem); background: var(--p-kraft-soft); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.nmcp-login__kicker { font-weight: 700; color: var(--p-green-deep); margin: 0 0 1rem; }
.nmcp-login__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); font-weight: 800; line-height: .95; letter-spacing: -.035em; margin: 0 0 2rem; max-width: 12ch; font-variation-settings: "opsz" 96, "wdth" 85; }
.nmcp-login__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 34ch; }
.nmcp-login__list li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 560; }
.nmcp-login__list .nmcp-i { margin-top: .15em; color: var(--p-green-deep); }
.nmcp-login__plane { position: absolute; right: -10px; bottom: 28px; width: 150px; transform: rotate(-10deg); }
.nmcp-login__card { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.nmcp-login__card h1 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .35rem; line-height: 1; }
.nmcp-login__card > .nmcp-muted { margin: 0 0 1.75rem; }
.nmcp-login__links { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; font-size: .95rem; }
.nmcp-login__links a { color: var(--p-ink); text-decoration-color: var(--p-green); text-underline-offset: .2em; }

/* ===================== Portal shell ===================== */
.nmcp { display: grid; grid-template-columns: 270px 1fr; grid-template-areas: "bar bar" "side main"; gap: 0 clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.nmcp-adminbar { grid-area: bar; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .6rem 1rem; margin-bottom: 1.25rem; background: #fff6d8; border: 1.5px dashed #8a6d00; border-radius: 10px; font-size: .9rem; }
.nmcp-adminbar > span { display: flex; align-items: center; gap: .5rem; font-weight: 600; flex: 1 1 260px; }
.nmcp-adminbar select { font: inherit; padding: .35rem .6rem; border: 1.5px solid var(--p-ink); border-radius: 8px; background: #fff; }
.nmcp-adminbar a { font-weight: 650; color: var(--p-ink); }

.nmcp-side { grid-area: side; position: sticky; top: calc(var(--nm-header-h, 72px) + 1rem); border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.admin-bar .nmcp-side { top: calc(var(--nm-header-h, 72px) + 32px + 1rem); }
.nmcp-brand { display: flex; align-items: center; gap: .85rem; padding: 1.1rem; background: var(--client); color: var(--client-ink); border-bottom: 1.5px solid var(--p-ink); }
.nmcp-brand__logo { flex: none; width: 56px; height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 6px; border: 1.5px solid var(--p-ink); }
.nmcp-brand__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.nmcp-brand__initials { flex: none; width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #000; font-weight: 800; font-size: 1.2rem; border: 1.5px solid var(--p-ink); }
.nmcp-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nmcp-brand__text strong { font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; overflow-wrap: anywhere; }
.nmcp-brand__text span { font-size: .82rem; opacity: .85; }
.nmcp-nav ul { list-style: none; margin: 0; padding: .6rem; display: grid; gap: .15rem; }
.nmcp-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 10px; color: var(--p-ink); text-decoration: none; font-weight: 600; }
.nmcp-nav a:hover { background: var(--p-kraft-soft); }
.nmcp-nav a[aria-current="page"] { background: var(--p-ink); color: #fff; }
.nmcp-count { margin-left: auto; font-style: normal; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; display: grid; place-items: center; border-radius: 999px; background: var(--p-green); color: #000; font-size: .8rem; font-weight: 750; }
.nmcp-side__foot { padding: .9rem 1.1rem 1.1rem; border-top: 1px solid var(--p-line); display: grid; gap: .8rem; }
.nmcp-side__help { margin: 0; font-size: .88rem; display: grid; gap: .1rem; }
.nmcp-side__help span { color: var(--p-grey); font-size: .8rem; }
.nmcp-side__out { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; font-size: .92rem; color: var(--p-ink); text-decoration: none; }
.nmcp-side__out:hover { color: var(--p-green-deep); }

.nmcp-main { grid-area: main; min-width: 0; }
.nmcp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nmcp-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0 0 .35rem; font-variation-settings: "opsz" 96, "wdth" 88; }
.nmcp-head p { margin: 0; color: var(--p-grey); }
.nmcp-h2 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; margin: 2.5rem 0 1rem; }

.nmcp-notice { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; margin-bottom: 1rem; border: 1.5px solid var(--p-ink); border-radius: 10px; background: var(--p-wash); color: var(--p-ink); text-decoration: none; font-weight: 600; }
.nmcp-notice p { margin: 0; flex: 1; }
.nmcp-notice--action { background: #e7efff; }
.nmcp-notice--action:hover { background: #dbe7ff; }

/* Stats */
.nmcp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.nmcp-stat { display: flex; flex-direction: column; gap: .2rem; padding: 1.2rem 1.25rem; border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); background: #fff; color: var(--p-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.nmcp-stat:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--p-ink); }
.nmcp-stat:first-child { background: var(--p-kraft-soft); }
.nmcp-stat.is-alert { background: #fde8e6; }
.nmcp-stat__label { font-size: .88rem; font-weight: 600; color: #333; }
.nmcp-stat strong { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nmcp-stat__sub { font-size: .85rem; color: var(--p-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards */
.nmcp-card { border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); background: #fff; padding: 1.25rem; margin-bottom: 1rem; min-width: 0; }
.nmcp-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.nmcp-card__head h2 { font-size: 1.15rem; font-weight: 750; letter-spacing: -.015em; margin: 0; }
.nmcp-card__head a { font-size: .9rem; font-weight: 640; color: var(--p-ink); text-decoration-color: var(--p-green); text-underline-offset: .2em; }
.nmcp-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; }
.nmcp-table--compact .nmcp-strong { display: inline-block; line-height: 1.25; }
.nmcp-cols .nmcp-card { margin: 0 0 1rem; }

.nmcp-perf__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.nmcp-perf__grid div { padding-left: .9rem; border-left: 3px solid var(--client); }
.nmcp-perf__grid dt { font-size: .85rem; color: var(--p-grey); }
.nmcp-perf__grid dd { margin: .2rem 0 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nmcp-delta { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--p-green-deep); background: var(--p-wash); padding: .1rem .45rem; border-radius: 999px; vertical-align: middle; letter-spacing: 0; }
.nmcp-delta.is-down { color: #a31b12; background: #fde8e6; }

/* Pills */
.nmcp-pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.nmcp-pill--paid, .nmcp-pill--done { background: var(--p-wash); color: var(--p-green-deep); }
.nmcp-pill--due, .nmcp-pill--progress, .nmcp-pill--planning { background: #fff2cf; color: #6e4b00; }
.nmcp-pill--overdue { background: #fde3e1; color: #a31b12; }
.nmcp-pill--review { background: #e1ecff; color: #1d4ea6; }

/* Progress + projects */
.nmcp-progress { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; flex: 1; }
.nmcp-progress span { display: block; height: 100%; background: var(--p-green); border-radius: inherit; }
.nmcp-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.nmcp-projects--done { opacity: .8; }
.nmcp-project { padding: 1rem 0; border-top: 1px solid var(--p-line); }
.nmcp-card .nmcp-project:first-of-type { border-top: 0; padding-top: 0; }
.nmcp-projects .nmcp-project { padding: 1.25rem; border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); background: #fff; }
.nmcp-projects .nmcp-project.is-review { box-shadow: inset 5px 0 0 #1d4ea6; }
.nmcp-project__top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.nmcp-project__svc { margin: 0 0 .15rem; font-size: .8rem; font-weight: 650; color: var(--p-green-deep); }
.nmcp-project h3 { margin: 0; font-size: 1.1rem; font-weight: 720; letter-spacing: -.015em; line-height: 1.2; }
.nmcp-project__desc { margin: .5rem 0 0; font-size: .93rem; color: #333; }
.nmcp-project__bar { display: flex; align-items: center; gap: .75rem; margin: .9rem 0 .5rem; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.nmcp-project__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; font-size: .88rem; color: var(--p-grey); }
.nmcp-project__meta a { color: var(--p-ink); font-weight: 650; text-decoration-color: var(--p-green); }
.nmcp-timeline { list-style: none; margin: .9rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--p-kraft); display: grid; gap: .65rem; }
.nmcp-timeline li { position: relative; font-size: .9rem; display: grid; }
.nmcp-timeline li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .35em; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--p-kraft); }
.nmcp-timeline li:first-child::before { background: var(--p-green); border-color: var(--p-ink); }
.nmcp-timeline time { font-size: .78rem; color: var(--p-grey); font-weight: 600; }

/* Tables */
.nmcp-table-wrap { overflow-x: auto; }
.nmcp-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.nmcp-table th, .nmcp-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--p-line); vertical-align: middle; }
.nmcp-table thead th { font-size: .8rem; font-weight: 700; color: var(--p-grey); border-bottom: 1.5px solid var(--p-ink); }
.nmcp-table th:first-child, .nmcp-table td:first-child { padding-left: 0; }
.nmcp-table th:last-child, .nmcp-table td:last-child { padding-right: 0; }
.nmcp-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nmcp-actions { text-align: right; white-space: nowrap; }
.nmcp-main > .nmcp-table-wrap { border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); background: #fff; padding: .5rem 1.25rem; }

/* Invoice detail */
.nmcp-invoice { border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); background: #fff; padding: clamp(1.25rem, 3vw, 2.5rem); }
.nmcp-invoice__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.nmcp-invoice__from, .nmcp-invoice__to { margin: 0 0 1rem; }
.nmcp-invoice__meta { margin: 0; display: grid; grid-template-columns: auto auto; gap: .5rem 1.5rem; align-content: start; }
.nmcp-invoice__meta div { display: contents; }
.nmcp-invoice__meta dt { color: var(--p-grey); font-size: .9rem; }
.nmcp-invoice__meta dd { margin: 0; font-weight: 650; text-align: right; }
.nmcp-table--lines tfoot th, .nmcp-table--lines tfoot td { border-bottom: 0; border-top: 1.5px solid var(--p-ink); font-size: 1.15rem; padding-top: 1rem; }
.nmcp-invoice__notes { margin: 1.5rem 0 0; padding: 1rem; background: var(--p-kraft-soft); border-radius: 8px; }
.nmcp-invoice__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

/* Files */
.nmcp-kit .nmcp-swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.nmcp-swatches li { display: grid; gap: .4rem; }
.nmcp-swatch { width: 96px; height: 72px; border-radius: 8px; border: 1.5px solid var(--p-ink); display: block; }
.nmcp-copy { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; padding: .2rem 0; color: var(--p-ink); }
.nmcp-copy .nmcp-i { width: 1em; height: 1em; }
.nmcp-copy.is-copied span::after { content: " copied"; color: var(--p-green-deep); }
.nmcp-kit__fonts { margin: 1rem 0 0; font-weight: 600; }
.nmcp-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.nmcp-filter button { font: inherit; font-size: .9rem; font-weight: 620; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--p-ink); background: #fff; cursor: pointer; color: var(--p-ink); }
.nmcp-filter button[aria-pressed="true"] { background: var(--p-ink); color: #fff; }
.nmcp-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.nmcp-files--row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.nmcp-file { display: flex; flex-direction: column; border: 1.5px solid var(--p-ink); border-radius: var(--p-radius); background: #fff; overflow: hidden; }
.nmcp-file[hidden] { display: none; }
.nmcp-file__prev { aspect-ratio: 4 / 3; display: grid; place-items: center; background: repeating-conic-gradient(#f3f0ea 0% 25%, #fff 0% 50%) 50% / 18px 18px; border-bottom: 1.5px solid var(--p-ink); }
.nmcp-file__prev img { max-width: 80%; max-height: 80%; object-fit: contain; }
.nmcp-file__ext { font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; padding: .7rem 1rem; background: #fff; border: 1.5px solid var(--p-ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--p-kraft); }
.nmcp-file__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.nmcp-file h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.nmcp-file .nmcp-muted { margin: 0; font-size: .82rem; }
.nmcp-file__desc { margin: 0; font-size: .88rem; color: #333; }
.nmcp-file .nmcp-btn { margin-top: auto; align-self: flex-start; }
.nmcp-file__body > .nmcp-btn { margin-top: .6rem; }

/* Empty */
.nmcp-empty { padding: 2rem 1.25rem; text-align: center; border: 1.5px dashed rgba(0, 0, 0, .3); border-radius: var(--p-radius); background: #fcfbf8; }
.nmcp-empty p { margin: 0; color: var(--p-grey); }
.nmcp-empty .nmcp-empty__t { color: var(--p-ink); font-weight: 700; margin-bottom: .25rem; }
.nmcp-card .nmcp-empty { border: 0; background: none; padding: 1.5rem 0; }

/* Account */
.nmcp-account fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; }
.nmcp-account legend { font-weight: 750; font-size: 1.1rem; margin-bottom: .75rem; }
.nmcp-account .nmcp-muted { margin: -.5rem 0 0; }
.nmcp-account .nmcp-btn { justify-self: start; }

.nmcp-solo { max-width: 560px; margin: 4rem auto; padding: 2rem; border: 1.5px solid #000; border-radius: 6px; background: #fff; }
.nmcp-solo h1 { font-size: 1.8rem; letter-spacing: -.02em; }

/* ===================== Responsive ===================== */
@media (max-width: 1200px) {
	.nmcp-cols { grid-template-columns: 1fr; }
	.nmcp-perf__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.nmcp { grid-template-columns: 1fr; grid-template-areas: "bar" "side" "main"; }
	.nmcp-side { position: static; margin-bottom: 1.25rem; }
	.nmcp-nav { padding: .5rem; }
	.nmcp-nav ul { display: none; padding: .35rem 0 0; }
	.nmcp-nav.is-open ul { display: grid; }
	.nmcp-nav a { padding: .75rem .85rem; }
	.nmcp-side__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; }
	.nmcp-side__help { font-size: .8rem; min-width: 0; overflow-wrap: anywhere; }
	.nmcp-side__out { white-space: nowrap; }
	.nmcp-login { grid-template-columns: 1fr; min-height: 0; }
	.nmcp-login__pitch { padding-bottom: 2rem; }
	.nmcp-login__list, .nmcp-login__plane { display: none; }
	.nmcp-login__title { margin: 0; font-size: 2rem; }
	.nmcp-login__card { order: -1; }
	.nmcp-login__pitch { order: 2; }
}
@media (max-width: 640px) {
	.nmcp-stats { grid-template-columns: 1fr; }
	.nmcp-stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; }
	.nmcp-stat__label { width: 100%; }
	.nmcp-row { grid-template-columns: 1fr; }
	.nmcp-projects { grid-template-columns: 1fr; }
	.nmcp-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.nmcp-file__body { padding: .75rem; }
	.nmcp-file .nmcp-btn { width: 100%; }
	.nmcp-brand__logo, .nmcp-brand__initials { width: 46px; height: 46px; }
	/* Invoice table becomes stacked rows */
	.nmcp-table:not(.nmcp-table--lines) thead { display: none; }
	.nmcp-table:not(.nmcp-table--lines) tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .9rem 0; border-bottom: 1px solid var(--p-line); }
	.nmcp-table:not(.nmcp-table--lines) td { border: 0; padding: 0 !important; text-align: left !important; }
	.nmcp-table:not(.nmcp-table--lines) td:first-child { grid-column: 1 / -1; }
	.nmcp-table:not(.nmcp-table--lines) td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--p-grey); font-size: .82rem; }
	.nmcp-table:not(.nmcp-table--lines) .nmcp-actions { grid-column: 1 / -1; margin-top: .4rem; }
	.nmcp-table:not(.nmcp-table--lines) .nmcp-actions .nmcp-btn { width: 100%; }
	.nmcp-main > .nmcp-table-wrap { padding: .25rem 1rem; }
	.nmcp-invoice__meta dd { text-align: left; }
}

/* Print: just the invoice */
@media print {
	body * { visibility: hidden !important; }
	.nmcp-invoice, .nmcp-invoice * { visibility: visible !important; }
	.nmcp-invoice { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
	.nmcp-invoice__actions { display: none !important; }
}

/* ===================== OffScript brand layer ===================== */
.nmcp h1, .nmcp h2, .nmcp h3, .nmcp-login h1, .nmcp-login h2, .nmcp-stat strong, .nmcp-perf__grid dd, .nmcp-brand__text strong, .nmcp-file__ext, .nmcp-solo h1 { font-family: var(--p-display); letter-spacing: -.035em; }
.nmcp-btn { border: 2px solid var(--p-ink); font-weight: 600; }
.nmcp-btn--primary { background: var(--p-green); border-color: var(--p-green); box-shadow: none; }
.nmcp-btn--primary:hover { background: #ff6d38; box-shadow: none; }
.nmcp-btn:hover { background: var(--os-paper, #F4F2EE); }
.nmcp-field input, .nmcp-pass input { border: 1.5px solid var(--p-kraft); border-radius: 12px; }
.nmcp-field input:focus, .nmcp-pass input:focus { border-color: var(--p-ink); box-shadow: 0 0 0 4px rgba(255, 90, 31, .3); }
.nmcp-pass__toggle { color: var(--p-ink); text-decoration: underline; text-decoration-color: var(--p-green); }
.nmcp-alert { border: 0; border-radius: 14px; background: var(--os-white, #fff); }
.nmcp-alert--ok { background: var(--p-wash); }

.nmcp-login { border: 0; border-radius: var(--p-radius); background: var(--os-white, #fff); }
.nmcp-login__pitch { background: var(--p-wash); }
.nmcp-login__kicker { color: var(--p-ink); font-family: var(--p-display); font-size: 1.1rem; }
.nmcp-login__title { font-family: var(--p-display); font-weight: 700; letter-spacing: -.05em; }
.nmcp-login__list .nmcp-i { color: var(--p-ink); }
.nmcp-login__plane { display: none; }
.nmcp-login__crew { position: absolute; right: 24px; bottom: 20px; display: flex; align-items: flex-end; }
.nmcp-login__crew .nm-dot { margin-left: -8px; margin-bottom: 34px; }

.nmcp-side, .nmcp-stat, .nmcp-card, .nmcp-invoice, .nmcp-file, .nmcp-projects .nmcp-project, .nmcp-main > .nmcp-table-wrap, .nmcp-solo { border: 0; border-radius: var(--p-radius); background: var(--os-white, #fff); }
.nmcp-brand { border-bottom: 0; }
.nmcp-brand__logo, .nmcp-brand__initials { border: 0; border-radius: 14px; }
.nmcp-nav a:hover { background: var(--p-kraft-soft); }
.nmcp-nav a[aria-current="page"] { background: var(--p-ink); color: var(--os-paper, #F4F2EE); }
.nmcp-count { background: var(--p-green); color: var(--p-ink); border-radius: 30%; }
.nmcp-stat:hover { box-shadow: 0 20px 34px -24px rgba(17, 17, 19, .5); transform: translateY(-3px); }
.nmcp-stat:first-child { background: var(--p-wash); }
.nmcp-stat.is-alert { background: #ffe1d6; box-shadow: inset 0 0 0 2px var(--p-green); }
.nmcp-notice { border: 0; border-radius: 16px; background: var(--os-white, #fff); box-shadow: inset 4px 0 0 var(--p-green); }
.nmcp-notice--action { background: var(--p-ink); color: var(--os-paper, #F4F2EE); box-shadow: none; }
.nmcp-notice--action:hover { background: #2a2a2e; }
.nmcp-progress { background: var(--p-kraft-soft); }
.nmcp-progress span { background: var(--p-green); }
.nmcp-timeline { border-left: 2px dotted var(--p-kraft); }
.nmcp-timeline li::before { border-radius: 30%; border-color: var(--p-kraft); }
.nmcp-timeline li:first-child::before { background: var(--p-green); border-color: var(--p-green); }
.nmcp-projects .nmcp-project.is-review { box-shadow: inset 5px 0 0 var(--p-green); }
.nmcp-pill--review { background: var(--p-ink); color: var(--os-paper, #F4F2EE); }
.nmcp-pill--due, .nmcp-pill--progress, .nmcp-pill--planning { background: var(--p-wash); color: var(--p-ink); }
.nmcp-pill--paid, .nmcp-pill--done { background: #e2f0e5; color: #1d6b36; }
.nmcp-table thead th { border-bottom: 2px solid var(--p-ink); }
.nmcp-file__prev { border-bottom: 0; background: repeating-conic-gradient(#efece6 0% 25%, #fff 0% 50%) 50% / 18px 18px; }
.nmcp-file__ext { border: 0; border-radius: 18%; background: var(--p-green); box-shadow: none; }
.nmcp-swatch { border: 0; border-radius: 18%; box-shadow: inset 0 0 0 1px rgba(17, 17, 19, .12); }
.nmcp-filter button { border: 0; background: var(--os-white, #fff); }
.nmcp-filter button[aria-pressed="true"] { background: var(--p-ink); color: var(--os-paper, #F4F2EE); }
.nmcp-invoice__notes { background: var(--p-kraft-soft); }
.nmcp-empty { border: 2px dashed var(--p-kraft); border-radius: var(--p-radius); background: transparent; }
.nmcp-adminbar { border-radius: 14px; }
@media (max-width: 900px) { .nmcp-login__crew { display: none; } }

/* Portal menu toggle (dropdown on phones and small tablets) */
.nmcp-nav__toggle { display: none; }
@media (max-width: 900px) {
	html:not(.nm-js) .nmcp-nav ul { display: grid; }
	.nmcp-nav__toggle { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 48px; padding: .7rem .85rem; border: 0; border-radius: 12px; background: var(--p-kraft-soft); color: var(--p-ink); font: 600 1rem/1 var(--nm-font, inherit); cursor: pointer; text-align: left; }
	.nmcp-nav__toggle > span:not(.screen-reader-text) { flex: 1; }
	.nmcp-nav__chev { width: 20px; height: 20px; transition: transform .2s; }
	.nmcp-nav.is-open .nmcp-nav__chev { transform: rotate(180deg); }
	.nmcp-nav__toggle:focus-visible { outline: 3px solid var(--p-green); outline-offset: 2px; }
}
