/* Nodebook admin */
.nb-wrap { --nb-ink: #17212b; --nb-muted: #646970; --nb-line: #e2e5ea; --nb-accent: #0f7f81; --nb-soft: #e8f4f4; --nb-r: 16px; --nb-r-sm: 10px; --nb-r-xs: 8px; --nb-pill: 999px; }
.nb-wrap [hidden] { display: none !important; }
.nb-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.nb-muted { color: var(--nb-muted); }
.nb-danger, .nb-danger:hover { color: #b32d2e; }
.nb-intro { max-width: 760px; color: var(--nb-muted); }

.nb-card { background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-r); padding: 16px 18px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.nb-card h2 { margin: 0 0 12px; font-size: 15px; }
.nb-card h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-muted); }
.nb-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; margin-top: 12px; }

.nb-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--nb-soft); color: var(--nb-accent); font-weight: 600; vertical-align: middle; }
.nb-avatar--lg { width: 52px; height: 52px; font-size: 22px; margin: 0; flex: none; }
.column-name .row-title { vertical-align: middle; }

.nb-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f0f0f1; color: #3c434a; }
.nb-badge--customer, .nb-badge--smart { background: #e5f5ec; color: #146c43; }
.nb-badge--lead { background: #e8f0fe; color: #1a4fa0; }
.nb-badge--prospect { background: #fff4e0; color: #8a5300; }
.nb-badge--subscriber, .nb-badge--static { background: var(--nb-soft); color: var(--nb-accent); }
.nb-badge--inactive { background: #f0f0f1; color: #787c82; }

/* Profile */
.nb-profile { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
.nb-profile .nb-col--main { order: 2; }
.nb-profile .nb-col--side { order: 1; }
.nb-profile:has(> .nb-col--main:first-child) { grid-template-columns: minmax(0, 1fr) 340px; }
.nb-profile:has(> .nb-col--main:first-child) .nb-col--main { order: 1; }
.nb-profile:has(> .nb-col--main:first-child) .nb-col--side { order: 2; }
@media (max-width: 1100px) { .nb-profile, .nb-profile:has(> .nb-col--main:first-child) { grid-template-columns: 1fr; } }
.nb-card--id { display: flex; gap: 14px; align-items: center; }
.nb-card--id h2 { margin: 0 0 4px; font-size: 18px; }
.nb-card--id p { margin: 0 0 6px; }
.nb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 10px; text-align: center; }
.nb-stats strong { display: block; font-size: 16px; color: var(--nb-ink); }
.nb-stats span { font-size: 12px; color: var(--nb-muted); }
.nb-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.nb-dl dt { color: var(--nb-muted); }
.nb-dl dd { margin: 0; overflow-wrap: anywhere; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-chips p { width: 100%; margin: 6px 0 0; }
.nb-chip { cursor: pointer; }
.nb-chip input { position: absolute; opacity: 0; }
.nb-chip span { display: inline-block; padding: 4px 10px; border: 1px solid var(--nb-line); border-radius: 99px; font-size: 12px; }
.nb-chip input:checked + span { background: var(--nb-soft); border-color: var(--nb-accent); color: var(--nb-accent); font-weight: 600; }
.nb-chip input:focus-visible + span { outline: 2px solid var(--nb-accent); outline-offset: 1px; }
.nb-people { margin: 0; }
.nb-people li { margin: 0 0 6px; }

/* Notes + timeline */
.nb-note-form { display: flex; gap: 10px; align-items: flex-start; }
.nb-note-form textarea { flex: 1; min-height: 40px; }
.nb-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.nb-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--nb-line); }
.nb-tl { position: relative; padding: 0 0 18px 28px; margin: 0; }
.nb-tl__dot { position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #a7aaad; box-sizing: border-box; }
.nb-tl--visit .nb-tl__dot { border-color: #72aee6; }
.nb-tl--form .nb-tl__dot { border-color: var(--nb-accent); background: var(--nb-soft); }
.nb-tl--order .nb-tl__dot { border-color: #00a32a; background: #e5f5ec; }
.nb-tl--refund .nb-tl__dot { border-color: #d63638; }
.nb-tl--note .nb-tl__dot { border-color: #dba617; background: #fcf9e8; }
.nb-tl__head strong { color: var(--nb-ink); }
.nb-tl__body p { margin: 4px 0; }
.nb-pages { margin: 6px 0 0; padding: 0; list-style: none; }
.nb-pages li { margin: 2px 0; font-size: 12px; }
.nb-pages code { font-size: 11px; background: #f6f7f7; }
.nb-items { margin: 6px 0 0 16px; list-style: disc; }
.nb-quote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--nb-accent); background: #f6f7f7; }
.nb-tl details { margin-top: 6px; }
.nb-tl details summary { cursor: pointer; color: var(--nb-accent); }

/* Forms */
.nb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; }
.nb-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; }
.nb-field label { font-weight: 600; }
.nb-field input, .nb-field select, .nb-field textarea { width: 100%; max-width: 100%; }
.nb-field--textarea { grid-column: 1 / -1; }
.nb-meta__row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-bottom: 6px; max-width: 720px; }
.nb-seg-type { display: flex; gap: 18px; align-items: center; min-height: 30px; }
.nb-seg-type label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.nb-field input[type="radio"], .nb-field input[type="checkbox"] { width: auto; }
.nb-cond { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; margin: 0 0 6px; background: #f6f7f7; border-radius: 8px; }
.nb-cond .nb-danger { font-size: 18px; text-decoration: none; padding: 0 6px; }
.nb-cond__value { min-width: 180px; }
.nb-map td, .nb-map th { vertical-align: middle; }
.nb-map select { min-width: 240px; }
.nb-int { display: inline-block; margin: 0 14px 6px 0; }
.nb-settings .form-table th { width: 220px; }
.nb-segment-note { background: var(--nb-soft); padding: 8px 12px; border-radius: 8px; display: inline-block; }
.nb-row-actions { white-space: nowrap; }

/* Progress */
.nb-progress__bar { height: 10px; background: #f0f0f1; border-radius: 99px; overflow: hidden; }
.nb-progress__bar span { display: block; height: 100%; width: 0; background: var(--nb-accent); transition: width .3s ease; }
.nb-progress__text { margin: 8px 0 0; }

/* 1.1: signals + journeys */
.nb-pill { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 1.6; vertical-align: middle; }
.nb-pill--hot { background: #fde8e4; color: #b3261e; }
.nb-pill--live { background: #e5f5ec; color: #146c43; }
.nb-star { color: #dba617; }
.nb-watch { display: inline-block; margin-left: 6px; }
.nb-watch .is-watching { color: #8a5300; border-color: #dba617; background: #fcf9e8; }
.nb-journey h3 { margin-bottom: 12px; }
.nb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; counter-reset: s; }
.nb-steps li { position: relative; margin: 0; padding: 10px 12px 10px 14px; background: #f6f7f7; border-radius: 8px; border-left: 3px solid var(--nb-accent); display: flex; flex-direction: column; gap: 2px; }
.nb-steps__k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-muted); }
.nb-steps strong { color: var(--nb-ink); }
.nb-steps .nb-muted { font-size: 12px; }
.nb-range { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--nb-line); border-radius: 8px; padding: 3px; margin: 4px 0 14px; }
.nb-range a { padding: 4px 10px; border-radius: 6px; text-decoration: none; color: var(--nb-muted); }
.nb-range a.is-active { background: var(--nb-soft); color: var(--nb-accent); font-weight: 600; }
.nb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.nb-kpi { background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-r); padding: 14px 16px; }
.nb-kpi strong { display: block; font-size: 22px; color: var(--nb-ink); }
.nb-kpi span { color: var(--nb-muted); font-size: 12px; }
.nb-columns--wide { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
.nb-report td, .nb-report th { vertical-align: middle; }
.nb-bar-cell { position: relative; min-width: 120px; }
.nb-bar { position: absolute; left: 6px; top: 50%; height: 18px; margin-top: -9px; background: var(--nb-soft); border-radius: 4px; max-width: calc(100% - 12px); }
.nb-bar-cell span:last-child { position: relative; padding-left: 4px; font-weight: 600; }
.nb-live { margin: 0; }
.nb-live li { padding: 6px 0; border-bottom: 1px solid #f0f0f1; margin: 0; }
#nodebook_live .nb-muted { color: #646970; }

/* 1.2: duplicates */
.nb-dupe__why { margin-bottom: 10px; color: var(--nb-accent); }
.nb-dupe__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .nb-dupe__pair { grid-template-columns: 1fr; } }
.nb-dupe__side { border: 1px solid var(--nb-line); border-radius: 8px; padding: 12px 14px; }
.nb-dupe__side h3 { margin: 0 0 8px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--nb-ink); }
.nb-dupe__side form { margin-top: 10px; }
.nb-dupe__dismiss { margin-top: 10px; text-align: right; }
.nb-merge-box summary { cursor: pointer; font-weight: 600; }
.nb-merge-box form { margin-top: 10px; display: grid; gap: 6px; }
.nb-tl--merge .nb-tl__dot { border-color: #8c5cff; background: #f1ebff; }

/* 1.3: interests, bookings, clicks */
.nb-tl--booking .nb-tl__dot, .nb-tl--appointment .nb-tl__dot { border-color: #00a32a; background: #00a32a; }
.nb-tl--click .nb-tl__dot { border-color: #dba617; background: #fcf3dc; }
.nb-pill--ok { background: #e5f5ec; color: #00702a; }
.nb-ints { list-style: none; margin: 0; padding: 0; }
.nb-ints li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--nb-line); }
.nb-ints li:first-child { border-top: 0; padding-top: 0; }
.nb-ints__main a { font-weight: 600; text-decoration: none; }
.nb-ints__attrs { display: block; font-size: 12px; margin-top: 2px; }
.nb-ints__meta { white-space: nowrap; text-align: right; font-size: 12px; }
.nb-dates { margin: 12px 0 0; }
.nb-chip-static { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 10px; background: var(--nb-soft); font-size: 12px; }
.nb-timeline--compact .nb-tl__body { padding-bottom: 6px; }

/* 1.4: getting started, follow up, status, templates */
.nb-setup__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nb-setup__head h2 { margin: 0; font-size: 15px; }
.nb-progress { flex: 0 0 140px; height: 6px; border-radius: 3px; background: var(--nb-line); overflow: hidden; }
.nb-progress span { display: block; height: 100%; background: var(--nb-accent); }
.nb-steps-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.nb-step { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--nb-line); border-radius: 8px; }
.nb-step p { margin: 4px 0 8px; }
.nb-step.is-next { border-color: var(--nb-accent); background: var(--nb-soft); }
.nb-step.is-done { opacity: .65; }
.nb-step__check { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid var(--nb-line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.nb-step.is-done .nb-step__check { background: var(--nb-accent); border-color: var(--nb-accent); }
.nb-setup__hide { margin-top: 8px; text-align: right; }
.nb-follow h2 { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nb-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #b3261e; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.nb-follow__list { list-style: none; margin: 10px 0 0; padding: 0; }
.nb-follow__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nb-line); flex-wrap: wrap; }
.nb-follow__list .nb-follow__row:first-child { border-top: 0; }
.nb-follow__row--bar { padding: 12px 16px; margin: 0 0 16px; border: 1px solid #f0c2bb; border-radius: var(--nb-r); background: #fff7f5; }
.nb-follow__name { font-weight: 600; text-decoration: none; }
.nb-follow__why { display: block; font-size: 12px; margin-top: 2px; }
.nb-follow__do { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nb-follow__do form { margin: 0; }
.nb-quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.nb-act--whatsapp { border-color: #1f9d55 !important; color: #136c3a !important; }
.nb-checks { list-style: none; margin: 0; padding: 0; }
.nb-check { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nb-line); }
.nb-check:first-child { border-top: 0; }
.nb-check p { margin: 2px 0 6px; }
.nb-check__state { flex: 0 0 64px; height: 22px; line-height: 22px; border-radius: 11px; text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.nb-check__state--ok { background: #e5f5ec; color: #00702a; }
.nb-check__state--warn { background: #fcf3dc; color: #8a5a00; }
.nb-check__state--bad { background: #fde8e4; color: #b3261e; }
.nb-subhead { margin: 28px 0 10px; font-size: 15px; }
.nb-templates { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.nb-template { background: #fff; border: 1px dashed var(--nb-line); border-radius: 8px; padding: 12px; margin: 0; }
.nb-template p { margin: 4px 0 8px; }
@media (max-width: 782px) { .nb-follow__do .button { min-height: 36px; } }

/* 1.5: profile header, flow, timeline by day, company overview */
.nb-hero { padding: 20px 22px 0; }
.nb-hero__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nb-avatar--xl { width: 60px; height: 60px; font-size: 26px; margin: 0; flex: none; }
.nb-avatar--co { border-radius: 14px; }
.nb-hero__id { flex: 1 1 260px; min-width: 0; }
.nb-hero__id h2 { margin: 0; font-size: 22px; line-height: 1.25; color: var(--nb-ink); }
.nb-hero__sub { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--nb-muted); }
.nb-hero__sub a { text-decoration: none; }
.nb-hero__sub .dashicons { font-size: 16px; width: 16px; height: 16px; margin-right: 3px; vertical-align: -3px; }
.nb-hero__badges { margin: 8px 0 0; }
.nb-hero__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nb-hero__actions .nb-watch { margin: 0; }
.nb-hero__actions .nb-act--call, .nb-hero__actions .nb-act--whatsapp { font-weight: 600; }
.nb-hero__actions .nb-act--whatsapp { background: #1f9d55 !important; border-color: #1f9d55 !important; color: #fff !important; }
.nb-hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 18px -22px 0; border-top: 1px solid var(--nb-line); }
.nb-hero__stats > div { padding: 12px 22px; border-left: 1px solid var(--nb-line); }
.nb-hero__stats > div:first-child { border-left: 0; }
.nb-hero__stats dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-muted); }
.nb-hero__stats dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--nb-ink); }
.nb-profile--side-right { grid-template-columns: minmax(0, 1fr) 320px; }
.nb-profile--side-right .nb-col--main { order: 1; }
.nb-profile--side-right .nb-col--side { order: 2; }
@media (max-width: 1100px) { .nb-profile--side-right { grid-template-columns: 1fr; } }
.nb-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.nb-card__head a { text-decoration: none; font-size: 12px; }
.nb-dl--stack { display: block; }
.nb-dl--stack dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-muted); margin-top: 10px; }
.nb-dl--stack dt:first-child { margin-top: 0; }
.nb-dl--stack dd { margin: 2px 0 0; word-break: break-word; }
.nb-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nb-flow li { position: relative; flex: 1 1 160px; padding: 10px 12px; background: #f6f7f7; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; }
.nb-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--nb-muted); font-size: 12px; z-index: 1; background: #fff; border-radius: 50%; width: 14px; text-align: center; }
.nb-flow__k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-muted); }
.nb-flow strong { color: var(--nb-ink); }
.nb-flow .nb-muted { font-size: 12px; }
.nb-journey__note { margin: 10px 0 0; font-size: 12px; }
.nb-tl { padding-left: 36px; }
.nb-timeline::before { left: 11px; }
.nb-tl__dot { left: 0; top: 0; width: 24px; height: 24px; border-width: 1px; display: inline-flex; align-items: center; justify-content: center; color: #646970; }
.nb-tl__dot .dashicons { font-size: 14px; width: 14px; height: 14px; }
.nb-tl--order .nb-tl__dot, .nb-tl--booking .nb-tl__dot, .nb-tl--appointment .nb-tl__dot { color: #00702a; background: #e5f5ec; border-color: #b8e1c6; }
.nb-tl--form .nb-tl__dot { color: var(--nb-accent); }
.nb-tl--click .nb-tl__dot, .nb-tl--note .nb-tl__dot { color: #8a5a00; }
.nb-tl--visit .nb-tl__dot { color: #2271b1; }
.nb-tl__head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding-top: 3px; }
.nb-tl__meta { color: var(--nb-muted); font-size: 12px; }
.nb-tl--status .nb-tl__head strong, .nb-tl--created .nb-tl__head strong, .nb-tl--segment .nb-tl__head strong, .nb-tl--followup .nb-tl__head strong { font-weight: 400; color: var(--nb-muted); }
.nb-tl-day { list-style: none; margin: 4px 0 10px; padding-left: 36px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--nb-muted); position: relative; }
.nb-tl-day:not(:first-child) { margin-top: 6px; }
.nb-more summary { cursor: pointer; font-weight: 600; }
.nb-more h4 { margin: 14px 0 6px; }
.nb-more__danger { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--nb-line); }
.nb-form--compact .nb-grid { grid-template-columns: 1fr; }
.nb-people--rich { list-style: none; margin: 0; padding: 0; }
.nb-people--rich li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.nb-people--rich li > div { display: flex; flex-direction: column; min-width: 0; }
.nb-people--rich a { font-weight: 600; text-decoration: none; }
.nb-people--rich .nb-muted { font-size: 12px; }

/* 1.6: team, reminders, logging */
.nb-owner-form { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--nb-muted); }
.nb-owner-form select { min-height: 28px; font-size: 13px; }
.nb-owner { display: inline-block; padding: 0 7px; border-radius: 9px; background: #f0f0f1; color: #50575e; font-size: 11px; line-height: 18px; }
.nb-seg { display: inline-flex; border: 1px solid var(--nb-line); border-radius: 6px; overflow: hidden; }
.nb-seg a { padding: 3px 10px; text-decoration: none; color: var(--nb-muted); font-size: 12px; }
.nb-seg a.is-active { background: var(--nb-soft); color: var(--nb-accent); font-weight: 600; }
.nb-pipes a { padding: 5px 12px; font-size: 13px; }
.nb-log__kinds { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nb-log .nb-chip input { position: absolute; opacity: 0; }
.nb-log .nb-chip span { display: inline-block; padding: 3px 12px; border: 1px solid var(--nb-line); border-radius: 14px; cursor: pointer; }
.nb-log .nb-chip input:checked + span { border-color: var(--nb-accent); background: var(--nb-soft); color: var(--nb-accent); font-weight: 600; }
.nb-log .nb-chip input:focus-visible + span { outline: 2px solid var(--nb-accent); outline-offset: 1px; }
.nb-log textarea { width: 100%; }
.nb-log__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nb-log__foot label { color: var(--nb-muted); }
.nb-log__foot .button-primary { margin-left: auto; }
.nb-log.is-ready { box-shadow: 0 0 0 2px var(--nb-accent); }
.nb-reminder { margin: 12px 0 0; padding: 8px 10px; border-radius: 6px; background: #f6f7f7; color: #50575e; }
.nb-reminder.is-due { background: #fcf3dc; color: #8a5a00; }
.nb-reminder .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: -3px; }
.nb-tl--touch .nb-tl__dot { color: var(--nb-accent); background: var(--nb-soft); border-color: #b9dcdc; }

/* 1.7: app shell, board, list rows */
.nb-app { --nb-shell: #0f2a2b; margin-top: 10px; }

.nb-board-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.nb-board-bar .nb-muted { margin: 0 0 0 auto; }
.nb-board-filter { margin: 0; }
.nb-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.nb-col-board { background: #eef0f2; border-radius: 12px; padding: 10px; min-height: 160px; transition: background .15s, box-shadow .15s; }
.nb-col-board.is-over { background: var(--nb-soft); box-shadow: inset 0 0 0 2px var(--nb-accent); }
.nb-col-board header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.nb-col-board h2 { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #50575e; }
.nb-col-board__count { font-size: 12px; color: var(--nb-muted); background: #fff; border-radius: 10px; padding: 0 8px; line-height: 20px; }
.nb-col-board--customer h2 { color: #00702a; }
.nb-col-board--lead h2 { color: #1d4ed8; }
.nb-col-board--prospect h2 { color: #8a5a00; }
.nb-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.nb-card-mini { margin: 0; background: #fff; border: 1px solid var(--nb-line); border-radius: 10px; padding: 10px; cursor: grab; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: box-shadow .15s, transform .15s, opacity .15s; }
.nb-card-mini:hover { box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.nb-card-mini.is-dragging { opacity: .45; transform: rotate(1deg); }
.nb-card-mini.is-saving { opacity: .7; }
.nb-card-mini__top { display: flex; gap: 8px; align-items: center; }
.nb-card-mini__top .nb-avatar { margin: 0; flex: none; }
.nb-card-mini__id { display: flex; flex-direction: column; min-width: 0; }
.nb-card-mini__name { font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--nb-ink); }
.nb-card-mini__id .nb-muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-card-mini__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 8px; font-size: 12px; }
.nb-card-mini__seen { margin-left: auto; }
.nb-card-mini__move { margin: 8px 0 0; }
.nb-card-mini__move select { width: 100%; min-height: 26px; font-size: 12px; color: var(--nb-muted); border-color: transparent; background-color: #f6f7f7; }
.nb-card-mini__move select:focus, .nb-card-mini:hover .nb-card-mini__move select { border-color: var(--nb-line); color: var(--nb-ink); }
.nb-pill .dashicons { font-size: 12px; width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.nb-pill--due { background: #fcf3dc; color: #8a5a00; }
.nb-col-board__more { display: block; text-align: center; margin-top: 8px; font-size: 12px; text-decoration: none; }
.nb-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100000; background: #1d2327; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.nb-toast .button-link { color: #7dd3c8; margin-left: 10px; text-decoration: underline; }

.nb-row-id { display: flex; gap: 10px; align-items: flex-start; }
.nb-row-id .nb-avatar { margin: 2px 0 0; flex: none; }
.nb-row-id__sub { display: block; font-size: 12px; color: var(--nb-muted); }
.nb-app .wp-list-table td { vertical-align: middle; }
.nb-app .wp-list-table tbody tr:hover { background: #f8fafb; }
.nb-hero__pickers { display: flex; gap: 14px; flex-wrap: wrap; }

/* 1.7.1: rounder, softer (iOS-like). Scoped to Nodebook screens only. */
.nb-wrap .nb-card, .nb-wrap .nb-hero, .nb-wrap .nb-follow__row--bar, .nb-wrap .nb-template, .nb-wrap .nb-kpi { border-radius: var(--nb-r); }
.nb-wrap .nb-card { border-color: #e6e8ec; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .04); }
.nb-wrap .nb-hero__stats { border-radius: 0 0 var(--nb-r) var(--nb-r); overflow: hidden; }
.nb-wrap .nb-col-board { border-radius: 18px; }
.nb-wrap .nb-card-mini { border-radius: 14px; }
.nb-wrap .nb-card-mini__move select { border-radius: var(--nb-r-xs); }
.nb-wrap .nb-flow li, .nb-wrap .nb-steps li, .nb-wrap .nb-step, .nb-wrap .nb-reminder, .nb-wrap .nb-dupe__side { border-radius: 12px; }
.nb-wrap .nb-avatar { border-radius: 50%; }
.nb-wrap .nb-avatar--co { border-radius: 16px; }
.nb-wrap .nb-badge, .nb-wrap .nb-pill, .nb-wrap .nb-owner, .nb-wrap .nb-chip span, .nb-wrap .nb-chip-static, .nb-wrap .nb-count, .nb-wrap .nb-tab__badge, .nb-wrap .nb-col-board__count, .nb-wrap .nb-check__state { border-radius: var(--nb-pill); }
.nb-wrap .nb-seg, .nb-wrap .nb-range { border-radius: var(--nb-pill); overflow: hidden; }
.nb-wrap .nb-seg a, .nb-wrap .nb-range a { border-radius: var(--nb-pill); }

/* Controls */
.nb-wrap .button, .nb-wrap .page-title-action { border-radius: var(--nb-r-sm); }
.nb-wrap .button-small { border-radius: var(--nb-r-xs); }
.nb-wrap input[type="text"], .nb-wrap input[type="email"], .nb-wrap input[type="tel"], .nb-wrap input[type="url"], .nb-wrap input[type="number"], .nb-wrap input[type="date"], .nb-wrap input[type="search"], .nb-wrap select, .nb-wrap textarea { border-radius: var(--nb-r-sm); border-color: #d5d9de; }
.nb-wrap input:focus, .nb-wrap select:focus, .nb-wrap textarea:focus { border-color: var(--nb-accent); box-shadow: 0 0 0 3px rgba(15, 127, 129, .15); outline: none; }
.nb-wrap textarea { padding: 10px 12px; }
.nb-wrap input[type="checkbox"] { border-radius: 6px; }

/* Tables become rounded cards */
.nb-wrap .wp-list-table, .nb-wrap table.widefat { border-radius: var(--nb-r); overflow: hidden; border-color: #e6e8ec; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); border-collapse: separate; border-spacing: 0; }
.nb-wrap .nb-card table.widefat { box-shadow: none; border-radius: 12px; }
.nb-wrap .tablenav .actions select, .nb-wrap .search-box input { border-radius: var(--nb-r-sm); }

/* Notices and toast */
.nb-wrap .notice { border-radius: 12px; }
.nb-toast { border-radius: 14px; }
.nb-wrap .nb-bar { border-radius: var(--nb-pill); }
.nb-wrap .nb-progress, .nb-wrap .nb-progress span { border-radius: var(--nb-pill); }

/* 1.7.2: list layout and header spacing */
.nb-app { clear: both; }
#screen-meta-links + .wrap.nb-app, #screen-meta + #screen-meta-links + .wrap.nb-app { padding-top: 4px; }
.nb-app .wp-list-table .column-name { width: 24%; min-width: 220px; }
.nb-app .wp-list-table .column-email { width: 18%; }
.nb-app .wp-list-table .column-company { width: 14%; }
.nb-app .wp-list-table .column-email, .nb-app .wp-list-table .column-company, .nb-app .wp-list-table .column-touch { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.nb-app .wp-list-table .column-email a, .nb-app .wp-list-table .column-company a { overflow: hidden; text-overflow: ellipsis; }
.nb-app .wp-list-table .column-orders, .nb-app .wp-list-table .column-visits { width: 70px; }
.nb-app .wp-list-table .column-spent, .nb-app .wp-list-table .column-status, .nb-app .wp-list-table .column-last_seen, .nb-app .wp-list-table .column-created, .nb-app .wp-list-table .column-owner { width: 110px; }
.nb-app .wp-list-table td { padding-top: 12px; padding-bottom: 12px; }
.nb-row-id .row-title { word-break: normal; }
.nb-cards__empty { list-style: none; display: none; padding: 18px 10px; border: 2px dashed #d5d9de; border-radius: 12px; text-align: center; color: var(--nb-muted); font-size: 12px; }
.nb-cards__empty:only-child { display: block; }
.nb-col-board.is-over .nb-cards__empty { border-color: var(--nb-accent); color: var(--nb-accent); }

/* 1.7.3: settings */
.nb-checkrow { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.nb-checkrow .nb-int { margin: 0; }
.nb-also { color: var(--nb-muted); }
.nb-sections { position: sticky; top: 32px; z-index: 20; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; margin: 0 0 14px; background: rgba(240, 240, 241, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--nb-pill); }
.nb-sections a { padding: 5px 14px; border-radius: var(--nb-pill); text-decoration: none; color: #50575e; font-weight: 500; }
.nb-sections a:hover, .nb-sections a:focus { background: #fff; color: var(--nb-accent); }
.nb-section { scroll-margin-top: 96px; }
#nb-status { scroll-margin-top: 96px; }
.nb-savebar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; padding: 12px 16px; margin: 0 -4px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid #e6e8ec; border-radius: var(--nb-r); box-shadow: 0 -4px 16px rgba(16, 24, 40, .06); }
.nb-savebar .button-primary { min-height: 36px; padding: 0 20px; }
.nb-copy { display: flex; gap: 8px; align-items: center; }
.nb-copy input { flex: 1; }
@media (max-width: 782px) { .nb-sections { top: 46px; } }

/* 1.9: gone quiet, snooze, pinned facts */
.nb-follow__why--quiet { color: #8a5300; }
.nb-follow__pin { color: var(--nb-ink); }
.nb-follow__pin::before, .nb-pin__text::before { content: "📌 "; }
.nb-follow__do .nb-snooze select { min-height: 26px; height: 26px; line-height: 1.2; padding: 0 22px 0 8px; font-size: 12px; border-radius: var(--nb-pill); max-width: 110px; background-position: right 6px top 55%; }
.nb-pin { margin: 8px 0 0; max-width: 640px; }
.nb-pin summary { cursor: pointer; list-style: none; display: inline-block; padding: 6px 10px; border-radius: var(--nb-r-sm); background: #fff8e1; color: var(--nb-ink); }
.nb-pin summary::-webkit-details-marker { display: none; }
.nb-pin--empty summary { background: transparent; padding: 2px 0; color: var(--nb-accent); }
.nb-pin__edit { color: var(--nb-accent); font-size: 12px; margin-left: 4px; }
.nb-pin textarea { width: 100%; border-radius: var(--nb-r-xs); margin-top: 4px; }
.nb-pin p { margin: 6px 0 0; }
.nb-inline-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 4px; }

/* 1.10: fields */
.nb-fields-table { border-radius: var(--nb-r-sm); overflow: hidden; margin-bottom: 8px; }
.nb-fields-table td, .nb-fields-table th { vertical-align: middle; padding: 8px 10px; }
.nb-fields-table input[type=text] { width: 100%; max-width: 320px; border-radius: var(--nb-r-xs); }
.nb-fields-table__own td:first-child { border-left: 3px solid var(--nb-accent); }
.nb-fields-table__builtin input[type=text] { background: #fbfbfc; }
.nb-fields-table__count { display: block; font-size: 12px; margin-top: 2px; }
.nb-fields-table__act { white-space: nowrap; }
.nb-fields-table__act .button-link { padding: 0 4px; text-decoration: none; font-size: 15px; }
.nb-danger-check { color: #b3261e; margin-left: 8px; }
.nb-addfield { border-top: 1px solid var(--nb-line); margin-top: 16px; padding-top: 12px; }
.nb-addfield h3 { margin-bottom: 6px; }
.nb-presets { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.nb-presets h2 { margin: 0 0 6px; font-size: 15px; }
.nb-chip--static { cursor: default; padding: 4px 10px; border-radius: var(--nb-pill); background: var(--nb-soft); display: inline-block; margin: 0 6px 6px 0; }
.nb-promote { margin-top: 12px; }
.nb-found .check-column { width: 2.2em; }
.nb-fields-link { margin: 4px 0 12px; }
.nb-builtin { margin: 12px 0 8px; }
.nb-builtin > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.nb-builtin .nb-fields-table { max-width: 560px; margin-top: 6px; }
/* Modules */
.nb-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; max-width: 1100px; }
.nb-module { display: flex; flex-direction: column; margin: 0; }
.nb-module.is-on { border-color: var(--nb-accent); }
.nb-module__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nb-module__head h2 { margin: 0 auto 0 0; font-size: 15px; }
.nb-module p { margin: 10px 0 0; }
.nb-module__footprint { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.nb-module__footprint li { margin: 0; padding: 2px 8px; border: 1px solid var(--nb-line); border-radius: var(--nb-pill); font-size: 12px; color: var(--nb-muted); }
.nb-module__problem { color: #8a5a00; }
.nb-module__actions { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; }
.nb-inline { display: inline; margin: 0; }
.nb-pill--on { background: #e5f5ec; color: #00702a; }
.nb-pill--off { background: #f0f0f1; color: var(--nb-muted); }
.nb-pill--pro { background: #efe8fb; color: #5b2bb5; }
.nb-pill--provider { background: var(--nb-soft); color: var(--nb-accent); }
/* Email consent */
.nb-pill--email-subscribed { background: #e5f5ec; color: #00702a; }
.nb-pill--email-pending { background: #fcf3dc; color: #8a5a00; }
.nb-pill--email-none { background: #f0f0f1; color: var(--nb-muted); }
.nb-pill--email-unsubscribed, .nb-pill--email-bounced, .nb-pill--email-complained { background: #fde8e4; color: #b3261e; }
.nb-consent p { margin: 6px 0; }
.nb-consent__change summary { cursor: pointer; color: var(--nb-accent); }
.nb-consent__change select, .nb-consent__change input[type=text] { max-width: 100%; margin-top: 6px; }
/* Pinned segments */
.nb-pinned { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.nb-pinned__item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--nb-line); border-radius: var(--nb-pill); background: #fff; text-decoration: none; color: var(--nb-ink); font-size: 13px; }
.nb-pinned__item.is-active { border-color: var(--nb-accent); background: var(--nb-soft); color: var(--nb-accent); font-weight: 600; }
.nb-pinned__manage { font-size: 12px; }
.nb-seg-pin { text-decoration: none; color: var(--nb-muted); font-size: 15px; }
.nb-seg-pin.is-pinned { color: #c08a00; }
.nb-clear-filters { margin-left: 6px; vertical-align: middle; }
.nb-bulk-field { display: inline-flex; gap: 4px; align-items: center; margin-right: 6px; vertical-align: middle; }
.nb-bulk-field[hidden] { display: none; }
/* Today and tasks */
.nb-today { display: grid; gap: 16px; max-width: 1100px; }
.nb-today > .nb-card { margin: 0; }
.nb-today__who { justify-self: end; }
.nb-today__clear h2 { margin: 0 0 6px; }
.nb-today__asked { border-color: #f0c2bb; }
.nb-today__soon summary { cursor: pointer; list-style: none; }
.nb-today__soon summary h2 { display: inline; font-size: 15px; }
.nb-today__soon[open] summary { margin-bottom: 8px; }
.nb-today-pointer { margin: 12px 0; }
.nb-today-pointer a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--nb-line); border-radius: var(--nb-pill); background: #fff; text-decoration: none; font-weight: 600; }
.nb-follow__last { color: var(--nb-muted); }
.nb-follow__next { color: var(--nb-ink); }
.nb-follow__next.is-overdue, .nb-task.is-overdue .nb-task__meta { color: #b3261e; }
.nb-tasklist { margin: 0; padding: 0; list-style: none; }
.nb-task { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--nb-line); flex-wrap: wrap; }
.nb-tasklist .nb-task:first-child { border-top: 0; }
.nb-tasklist--inline .nb-task { padding: 2px 0; border: 0; }
.nb-task__what { display: flex; flex-direction: column; min-width: 180px; }
.nb-task__meta { font-size: 12px; color: var(--nb-muted); }
.nb-task.is-done strong { text-decoration: line-through; color: var(--nb-muted); font-weight: 400; }
.nb-task__do { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nb-task__do form { margin: 0; display: inline-flex; gap: 4px; align-items: center; }
.nb-task__outcome { width: 150px; min-height: 26px; height: 26px; font-size: 12px; }
.nb-task__move { min-height: 26px; height: 26px; font-size: 12px; padding: 0 22px 0 8px; border-radius: var(--nb-pill); }
.nb-task-add summary, .nb-task-done summary { cursor: pointer; color: var(--nb-accent); margin-top: 8px; }
.nb-task-add form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.nb-task-add input[type=text] { flex: 1 1 220px; }
.nb-log__outcome, .nb-log__next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.nb-log__outcome[hidden] { display: none; }
.nb-log__next label, .nb-log__outcome label { color: var(--nb-muted); }
.nb-log__next input[type=text] { flex: 1 1 200px; }
.nb-log__next .button-primary { margin-left: auto; }
.nb-template-pick { min-height: 26px; height: 26px; font-size: 12px; padding: 0 22px 0 8px; border-radius: var(--nb-pill); max-width: 140px; }
.nb-tpl-row { display: grid; grid-template-columns: 200px 1fr; gap: 8px; margin-bottom: 8px; max-width: 760px; }
@media (max-width: 782px) { .nb-tpl-row { grid-template-columns: 1fr; } }

/* Deals (1.15) */
.nb-deals-bar { gap: 10px; }
.nb-deal-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; color: var(--nb-muted); }
.nb-deal-sum strong { color: var(--nb-ink); font-size: 15px; }
.nb-col-board__total { margin: -4px 4px 8px; font-size: 12px; font-weight: 600; color: #00702a; min-height: 16px; }
.nb-deal-card .nb-card-mini__name { display: block; white-space: normal; }
.nb-deal-card__who { display: block; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-deals-empty { max-width: 640px; }
.nb-deal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; }
.nb-deal-head__value { font-size: 15px; }
.nb-deal-state { font-size: 12px; }
.nb-badge.nb-deal-state--open, .nb-deal-list .nb-deal-state--open { background: #e8f0fe; color: #1a4fa0; }
.nb-deal-state--won { background: #e6f4ea; color: #00702a; }
.nb-deal-state--lost { background: #f0f0f1; color: #787c82; }
.nb-deal-list .nb-deal-state { padding: 0 6px; border-radius: 10px; }
.nb-deal-form .nb-form__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 14px; }
.nb-deal-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.nb-deal-form input[type="text"], .nb-deal-form input[type="date"], .nb-deal-form select { width: 100%; max-width: 100%; }
.nb-deal-form #nb-deal-contact { max-width: 420px; }
.nb-deal-form .nb-muted { display: block; margin-top: 4px; }
.nb-upper { text-transform: uppercase; }
.nb-deal-outcome form { display: inline-block; margin: 0 6px 6px 0; vertical-align: top; }
.nb-deal-outcome details[open] { display: block; margin-top: 8px; }
.nb-deal-outcome details label { display: block; margin: 8px 0 4px; }
.nb-deal-outcome .nb-deal-close--lost { display: inline-block; }
.nb-deal-outcome details[open] summary { margin-bottom: 4px; }
.nb-deal-outcome details summary { list-style: none; }
.nb-deal-outcome details summary::-webkit-details-marker { display: none; }
.nb-task-add--deal { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nb-task-add--deal input[type="text"] { flex: 1 1 100%; }
.nb-deal-history__list { margin: 0; padding: 0; list-style: none; }
.nb-deal-history__list li { padding: 6px 0; border-bottom: 1px solid var(--nb-line); display: flex; justify-content: space-between; gap: 12px; }
.nb-deal-history__list li:last-child { border-bottom: 0; }
.nb-deal-list { margin: 0; padding: 0; list-style: none; }
.nb-deal-list__item { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--nb-line); }
.nb-deal-list__item:last-child { border-bottom: 0; }
.nb-deal-list__item a { font-weight: 600; text-decoration: none; }
.nb-deal-list__item.is-closed a { font-weight: 400; color: var(--nb-muted); }
.nb-deal-list__meta { font-size: 12px; color: var(--nb-muted); }
.nb-deal-reasons ul { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nb-deals-table .nb-num { text-align: right; white-space: nowrap; }

/* Pickers and deal fields (1.17) */
.nb-pick__box { position: relative; display: block; }
.nb-pick__box input { width: 100%; }
.nb-pick__list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--nb-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 300px; overflow: auto; }
.nb-pick__list li { display: flex; flex-direction: column; padding: 7px 12px; cursor: pointer; }
.nb-pick__list li .nb-muted { font-size: 12px; }
.nb-pick__list li[aria-selected="true"], .nb-pick__list li:hover { background: #f0f4ff; }
.nb-pick__list li.is-new strong { color: #1a4fa0; }
.nb-pick__list .nb-pick__empty { cursor: default; color: var(--nb-muted); }
.nb-pick__help { display: block; margin-top: 4px; }
.nb-deal-form .nb-form__row--two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; margin-bottom: 8px; max-width: 760px; }
.nb-deal-form .nb-pick label { display: block; font-weight: 600; margin-bottom: 4px; }
.nb-deal-fields { margin: 4px 0 8px; }
.nb-deal-card__fields { display: block; font-size: 12px; margin-top: 3px; color: var(--nb-ink); }
.nb-deal-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nb-deal-paid { margin: 0 0 8px; }
.nb-deal-paid label { display: block; font-weight: 600; margin-bottom: 4px; }
.nb-deal-paid select { max-width: 100%; }
.nb-deal-paid .nb-muted { display: block; font-size: 12px; margin-top: 3px; }
.nb-deal-outcome .nb-deal-close--won { display: block; }

/* ==================================================================
 * 1.18: the look. One quiet system: near-black for the main action,
 * neutral greys, thin borders instead of shadows, normal-case headings.
 * This layer comes last and wins over the older rules above.
 * ================================================================== */
.nb-wrap {
	--nb-ink: #18181b; --nb-text: #3f3f46; --nb-muted: #71717a; --nb-faint: #a1a1aa;
	--nb-line: #e4e4e7; --nb-line-2: #d4d4d8; --nb-fill: #f4f4f5; --nb-fill-2: #fafafa;
	--nb-accent: #18181b; --nb-soft: #f4f4f5; --nb-link: #2563eb;
	--nb-ok: #15803d; --nb-ok-bg: #f0fdf4; --nb-warn: #a16207; --nb-warn-bg: #fefce8; --nb-bad: #b91c1c; --nb-bad-bg: #fef2f2;
	--nb-r: 12px; --nb-r-sm: 8px; --nb-r-xs: 6px; --nb-pill: 999px;
	color: var(--nb-text);
}
body.nb-screen #wpcontent, body.nb-screen #wpbody-content { background: #f7f7f8; }
body.nb-screen #wpbody-content { padding-bottom: 40px; }
.nb-wrap a { color: var(--nb-link); }
.nb-wrap h1, .nb-wrap h2, .nb-wrap h3, .nb-wrap h4 { color: var(--nb-ink); }
.nb-icon { display: inline-block; vertical-align: middle; flex: none; }

/* App header: white, flush with the screen edges */
.nb-wrap.nb-app { margin: 0 20px 0 0; }

/* Sub-tabs: one line under the header, underline on the active one */

/* Page header: title left, buttons right */
.nb-wrap .nb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 24px 0 16px; }
.nb-wrap .nb-head h1 { margin: 0; padding: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--nb-ink); }
.nb-head__count { color: var(--nb-muted); font-weight: 500; font-size: 18px; }
.nb-head__sub { margin: 4px 0 0; color: var(--nb-muted); }
.nb-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nb-wrap a.nb-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 6px -2px; color: var(--nb-muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.nb-wrap a.nb-back:hover { color: var(--nb-ink); }
.nb-wrap .wp-header-end { margin: 0; visibility: hidden; height: 0; }

/* Buttons */
.nb-wrap .button, .nb-wrap .page-title-action, .nb-wrap .nb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; margin: 0; border: 1px solid var(--nb-line); border-radius: var(--nb-r-sm); background: #fff; color: var(--nb-ink); font-weight: 500; font-size: 13px; line-height: 1; text-decoration: none; box-shadow: 0 1px 2px rgba(24, 24, 27, .04); top: 0; vertical-align: middle; }
.nb-wrap .button:hover, .nb-wrap .page-title-action:hover, .nb-wrap .nb-btn:hover { background: var(--nb-fill-2); border-color: var(--nb-line-2); color: var(--nb-ink); }
.nb-wrap .button:focus, .nb-wrap .page-title-action:focus, .nb-wrap .nb-btn:focus { box-shadow: 0 0 0 3px rgba(24, 24, 27, .12); outline: none; color: var(--nb-ink); }
.nb-wrap .button-primary, .nb-wrap .nb-btn--primary, .nb-wrap .page-title-action.nb-btn--primary { background: var(--nb-ink); border-color: var(--nb-ink); color: #fff; }
.nb-wrap .button-primary:hover, .nb-wrap .nb-btn--primary:hover, .nb-wrap .page-title-action.nb-btn--primary:hover, .nb-wrap .button-primary:focus, .nb-wrap .nb-btn--primary:focus { background: #27272a; border-color: #27272a; color: #fff; }
.nb-wrap .button-primary[disabled], .nb-wrap .button[disabled] { opacity: .5; }
.nb-wrap .button-small { min-height: 28px; padding: 0 10px; font-size: 12px; }
.nb-wrap .button-link { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--nb-link); }
.nb-wrap .button-link:hover { background: none; text-decoration: underline; }
.nb-wrap .nb-danger, .nb-wrap .nb-danger:hover, .nb-wrap .button-link.nb-danger { color: var(--nb-bad); }

/* Inputs */
.nb-wrap input[type="text"], .nb-wrap input[type="email"], .nb-wrap input[type="tel"], .nb-wrap input[type="url"], .nb-wrap input[type="number"], .nb-wrap input[type="date"], .nb-wrap input[type="search"], .nb-wrap input[type="password"], .nb-wrap select, .nb-wrap textarea { min-height: 36px; border: 1px solid var(--nb-line); border-radius: var(--nb-r-sm); background-color: #fff; color: var(--nb-ink); box-shadow: 0 1px 2px rgba(24, 24, 27, .03); }
.nb-wrap input[type="text"], .nb-wrap input[type="email"], .nb-wrap input[type="tel"], .nb-wrap input[type="url"], .nb-wrap input[type="number"], .nb-wrap input[type="date"], .nb-wrap input[type="password"] { padding: 0 12px; }
.nb-wrap select { padding: 0 32px 0 12px; }
.nb-wrap input::placeholder, .nb-wrap textarea::placeholder { color: var(--nb-faint); }
.nb-wrap input:focus, .nb-wrap select:focus, .nb-wrap textarea:focus { border-color: var(--nb-ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .08); outline: none; }
.nb-wrap input[type="checkbox"], .nb-wrap input[type="radio"] { border-color: var(--nb-line-2); box-shadow: none; }
.nb-wrap input[type="checkbox"]:checked { background: var(--nb-ink); border-color: var(--nb-ink); }
.nb-wrap input[type="checkbox"]:checked::before { filter: brightness(0) invert(1); }
.nb-wrap input[type="radio"]:checked::before { background: var(--nb-ink); }
.nb-wrap label, .nb-wrap .nb-field label { color: var(--nb-ink); }
.nb-wrap p.description, .nb-wrap .description { color: var(--nb-muted); font-size: 13px; }

/* Cards */
.nb-wrap .nb-card, .nb-wrap .nb-hero { border: 1px solid var(--nb-line); border-radius: var(--nb-r); box-shadow: none; background: #fff; }
.nb-wrap .nb-card { padding: 20px 24px; }
.nb-wrap .nb-card h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.nb-wrap .nb-card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--nb-ink); }
.nb-wrap .nb-card h4 { font-size: 13px; font-weight: 600; }
.nb-wrap .nb-intro { color: var(--nb-muted); font-size: 14px; margin: -6px 0 18px; }

/* Badges, pills, counts */
.nb-wrap .nb-badge, .nb-wrap .nb-pill, .nb-wrap .nb-count { font-weight: 500; }
.nb-wrap .nb-badge { background: var(--nb-fill); color: var(--nb-text); }
.nb-wrap .nb-badge--customer, .nb-wrap .nb-badge--smart { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-badge--lead { background: #eff6ff; color: #1d4ed8; }
.nb-wrap .nb-badge--prospect { background: var(--nb-warn-bg); color: var(--nb-warn); }
.nb-wrap .nb-badge--subscriber, .nb-wrap .nb-badge--static { background: var(--nb-fill); color: var(--nb-text); }
.nb-wrap .nb-count { background: var(--nb-fill); color: var(--nb-muted); }
.nb-wrap .nb-pill--due { background: var(--nb-warn-bg); color: var(--nb-warn); }
.nb-wrap .nb-pill--hot { background: var(--nb-bad-bg); color: var(--nb-bad); }
.nb-wrap .nb-pill--ok { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-avatar { background: var(--nb-fill); color: var(--nb-text); }

/* Segmented controls (Mine / Everyone, ranges) */
.nb-wrap .nb-seg, .nb-wrap .nb-range { display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: var(--nb-r-sm); background: var(--nb-fill); }
.nb-wrap .nb-seg a, .nb-wrap .nb-range a { padding: 5px 12px; border-radius: 6px; color: var(--nb-muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.nb-wrap .nb-seg a.is-active, .nb-wrap .nb-range a.is-active { background: #fff; color: var(--nb-ink); box-shadow: 0 1px 2px rgba(24, 24, 27, .08); }

/* Tables */
.nb-wrap .wp-list-table, .nb-wrap table.widefat { border: 1px solid var(--nb-line); border-radius: var(--nb-r); box-shadow: none; background: #fff; }
.nb-wrap .wp-list-table thead th, .nb-wrap .wp-list-table thead td, .nb-wrap table.widefat thead th, .nb-wrap table.widefat thead td, .nb-wrap .wp-list-table tfoot th, .nb-wrap .wp-list-table tfoot td { background: var(--nb-fill-2); color: var(--nb-muted); font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--nb-line); }
.nb-wrap .wp-list-table thead th a, .nb-wrap .wp-list-table thead th a span { color: var(--nb-muted); }
.nb-wrap .striped > tbody > :nth-child(odd), .nb-wrap ul.striped > :nth-child(odd), .nb-wrap .alternate { background: #fff; }
.nb-wrap .wp-list-table tbody tr td, .nb-wrap .wp-list-table tbody tr th, .nb-wrap table.widefat tbody td, .nb-wrap table.widefat tbody th { border-top: 1px solid #f0f0f2; }
.nb-wrap .wp-list-table tbody tr:first-child td, .nb-wrap .wp-list-table tbody tr:first-child th { border-top: 0; }
.nb-wrap .wp-list-table tbody tr:hover, .nb-wrap table.widefat tbody tr:hover { background: var(--nb-fill-2); }
.nb-wrap .wp-list-table .row-title, .nb-wrap .nb-row-id .row-title { color: var(--nb-ink); font-weight: 600; }
.nb-wrap .tablenav { margin: 10px 0; }
.nb-wrap .subsubsub { margin: 0 0 4px; }
.nb-wrap .subsubsub a { color: var(--nb-muted); }
.nb-wrap .subsubsub a.current { color: var(--nb-ink); }

/* Notices */
.nb-wrap .notice, .nb-wrap div.updated, .nb-wrap div.error { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--nb-line); border-left-width: 3px; border-radius: var(--nb-r-sm); box-shadow: none; background: #fff; }
.nb-wrap .notice-success { border-left-color: var(--nb-ok); }
.nb-wrap .notice-error { border-left-color: var(--nb-bad); }
.nb-wrap .notice-warning { border-left-color: #eab308; }
.nb-wrap .notice-info { border-left-color: var(--nb-line-2); }
.nb-wrap .notice p { margin: 2px 0; }

/* Boards */
.nb-wrap .nb-col-board { background: var(--nb-fill); border-radius: var(--nb-r); padding: 10px; }
.nb-wrap .nb-col-board h2 { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--nb-ink); }
.nb-wrap .nb-col-board--customer h2, .nb-wrap .nb-col-board--lead h2, .nb-wrap .nb-col-board--prospect h2 { color: var(--nb-ink); }
.nb-wrap .nb-col-board.is-over { background: #ececef; box-shadow: inset 0 0 0 2px var(--nb-ink); }
.nb-wrap .nb-card-mini { border-radius: 10px; border-color: var(--nb-line); box-shadow: 0 1px 2px rgba(24, 24, 27, .04); }
.nb-wrap .nb-card-mini:hover { border-color: var(--nb-line-2); box-shadow: 0 2px 6px rgba(24, 24, 27, .06); }
.nb-wrap .nb-col-board__total { color: var(--nb-ok); }
.nb-wrap .nb-cards__empty { border: 1px dashed var(--nb-line-2); }
.nb-toast { background: var(--nb-ink, #18181b); border-radius: 10px; }
.nb-toast .button-link { color: #fff; }

/* Timeline */
.nb-wrap .nb-timeline::before { background: var(--nb-line); }
.nb-wrap .nb-tl__dot { border-color: var(--nb-line-2); }
.nb-wrap .nb-tl--form .nb-tl__dot { border-color: var(--nb-ink); background: #fff; }
.nb-wrap .nb-quote { border-left-color: var(--nb-line-2); background: var(--nb-fill-2); border-radius: 0 6px 6px 0; }
.nb-wrap .nb-chip input:checked + span { background: var(--nb-ink); border-color: var(--nb-ink); color: #fff; }

/* Settings: menu on the left, rows with the label on the left */
.nb-settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.nb-settings-main { min-width: 0; max-width: 980px; }
.nb-wrap .nb-sections--side { position: sticky; top: 48px; display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; background: none; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nb-wrap .nb-sections--side a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--nb-r-sm); color: var(--nb-text); font-weight: 500; font-size: 14px; text-decoration: none; }
.nb-wrap .nb-sections--side a .nb-icon { color: var(--nb-muted); }
.nb-wrap .nb-sections--side a:hover { background: #fff; color: var(--nb-ink); }
.nb-wrap .nb-sections--side a.is-active { background: #fff; color: var(--nb-ink); box-shadow: 0 0 0 1px var(--nb-line); }
.nb-wrap .nb-sections--side a.is-active .nb-icon { color: var(--nb-ink); }
@media (max-width: 1100px) { .nb-settings-layout { grid-template-columns: 1fr; } .nb-wrap .nb-sections--side { position: static; flex-direction: row; flex-wrap: wrap; } }
.nb-wrap .nb-section { scroll-margin-top: 48px; }
.nb-wrap .nb-section > .form-table, .nb-wrap .nb-card > .form-table { margin: 0; }
.nb-wrap .form-table th { width: 32%; padding: 18px 24px 18px 0; color: var(--nb-ink); font-weight: 500; font-size: 14px; vertical-align: top; }
.nb-wrap .form-table td { padding: 14px 0; }
.nb-wrap .form-table tr + tr th, .nb-wrap .form-table tr + tr td { border-top: 1px solid #f0f0f2; }
.nb-wrap .form-table td p.description { margin-top: 6px; }
.nb-wrap .nb-savebar { margin: 0; padding: 12px 16px; justify-content: flex-end; align-items: center; gap: 12px; background: rgba(255, 255, 255, .92); border: 1px solid var(--nb-line); border-radius: var(--nb-r); box-shadow: 0 -2px 12px rgba(24, 24, 27, .05); }
.nb-savebar__hint { color: var(--nb-muted); font-size: 12px; }
.nb-savebar__hint kbd { padding: 1px 5px; border: 1px solid var(--nb-line); border-radius: 4px; background: #fff; font: inherit; }
.nb-wrap .nb-sections:not(.nb-sections--side) { top: 40px; background: #fff; border: 1px solid var(--nb-line); }
.nb-wrap .nb-sections:not(.nb-sections--side) a:hover { color: var(--nb-ink); background: var(--nb-fill); }

/* Empty states */
.nb-empty { padding: 48px 24px; text-align: center; }
.nb-wrap .nb-empty h2 { margin: 0 0 6px; font-size: 20px; }
.nb-empty > p { margin: 0 auto; max-width: 520px; color: var(--nb-muted); font-size: 14px; }
.nb-empty__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: center; gap: 16px; margin: 28px 0 20px; text-align: left; }
.nb-wrap a.nb-empty__card { display: block; padding: 20px; border: 1px solid var(--nb-line); border-radius: var(--nb-r); background: #fff; color: var(--nb-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.nb-wrap a.nb-empty__card:hover, .nb-wrap a.nb-empty__card:focus { border-color: var(--nb-line-2); box-shadow: 0 2px 8px rgba(24, 24, 27, .06); color: var(--nb-text); }
.nb-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 8px; background: var(--nb-fill); color: var(--nb-ink); }
.nb-empty__card strong { display: block; margin-bottom: 4px; color: var(--nb-ink); font-size: 14px; }
.nb-empty__card span:last-child { font-size: 13px; line-height: 1.5; color: var(--nb-muted); }
.nb-empty__more { font-size: 13px; color: var(--nb-muted); }

/* Smaller things */
.nb-wrap .nb-board-bar { margin: 0 0 14px; }
.nb-wrap .nb-deal-sum strong, .nb-wrap .nb-stats strong { color: var(--nb-ink); }
.nb-wrap .nb-flow li, .nb-wrap .nb-steps li, .nb-wrap .nb-step { border-radius: 10px; }
.nb-wrap .nb-pick__list { border-radius: 10px; box-shadow: 0 8px 24px rgba(24, 24, 27, .1); }
.nb-wrap .nb-pick__list li[aria-selected="true"], .nb-wrap .nb-pick__list li:hover { background: var(--nb-fill); }
.nb-wrap .nb-pick__list li.is-new strong { color: var(--nb-ink); }
.nb-wrap .nb-deal-state--open, .nb-wrap .nb-badge.nb-deal-state--open { background: #eff6ff; color: #1d4ed8; }
.nb-wrap .nb-deal-state--won { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-sections a { color: var(--nb-text); }
.nb-app .wp-list-table.contacts, .nb-app .wp-list-table.companies { table-layout: auto; }
.nb-app .wp-list-table.contacts th, .nb-app .wp-list-table.companies th { white-space: nowrap; }
.nb-app .wp-list-table.contacts .column-email, .nb-app .wp-list-table.contacts .column-company, .nb-app .wp-list-table.contacts .column-touch { max-width: 220px; }
.nb-app .wp-list-table.contacts .column-name { width: auto; min-width: 200px; }
.nb-app .wp-list-table.contacts td.column-last_seen, .nb-app .wp-list-table.contacts td.column-created, .nb-app .wp-list-table.contacts td.column-spent { white-space: nowrap; }
.nb-wrap .nb-check__state, .nb-wrap .nb-checks .nb-badge { text-transform: none; letter-spacing: 0; }
body.nb-screen #screen-meta-links { margin: 0 20px 0 0; }
body.nb-screen #screen-meta-links .show-settings { border-radius: 0 0 8px 8px; }
.nb-wrap .wp-list-table tfoot th a, .nb-wrap .wp-list-table tfoot th a span { color: var(--nb-muted); }
.nb-wrap .wp-list-table tfoot th, .nb-wrap .wp-list-table tfoot td { border-top: 1px solid var(--nb-line); border-bottom: 0; }
.nb-wrap [data-nb-reorder] { color: var(--nb-muted); }
.nb-wrap [data-nb-reorder]:hover { color: var(--nb-ink); }
.nb-wrap .search-box input[type="search"] { min-width: 220px; }
.nb-wrap .nb-fields-table__own td:first-child { border-left: 0; }
.nb-head__title { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.nb-wrap .nb-steps__k, .nb-wrap .nb-hero__stats dt, .nb-wrap .nb-dl--stack dt, .nb-wrap .nb-flow__k, .nb-wrap .nb-tl-day, .nb-wrap .nb-check__state { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.nb-wrap .nb-hero__stats dd { color: var(--nb-ink); }
.nb-wrap a.nb-card-mini__name, .nb-wrap a.nb-follow__name, .nb-wrap .nb-hero h2 a, .nb-wrap .nb-deal-list__item a { color: var(--nb-ink); text-decoration: none; }
.nb-wrap a.nb-card-mini__name:hover, .nb-wrap a.nb-follow__name:hover, .nb-wrap .nb-deal-list__item a:hover { text-decoration: underline; }
.nb-wrap .nb-deal-list__item.is-closed a { color: var(--nb-muted); }

/* --------------------------------------------------------------------------
 * 1.19: Node. A soft green blob that breathes, blinks and changes mood.
 * ------------------------------------------------------------------------ */
.nb-node { --nb-node: 56px; position: relative; display: inline-block; flex: none; width: var(--nb-node); height: var(--nb-node); }
.nb-node__body { position: absolute; inset: 0; background: radial-gradient(120% 120% at 30% 20%, #a7f3d0 0%, #34d399 55%, #059669 100%); border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; box-shadow: 0 6px 16px -6px rgba(5, 150, 105, .55), inset 0 -4px 8px rgba(4, 120, 87, .25); animation: nb-node-morph 7s ease-in-out infinite, nb-node-breathe 3.5s ease-in-out infinite; }
.nb-node__shine { position: absolute; left: 22%; top: 16%; width: 22%; height: 14%; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-20deg); }
.nb-node__eye { position: absolute; top: 40%; width: 11%; height: 15%; border-radius: 50%; background: #052e1f; animation: nb-node-blink 5s infinite; transform-origin: center 60%; }
.nb-node__eye--l { left: 32%; }
.nb-node__eye--r { right: 32%; }
.nb-node__mouth { position: absolute; left: 50%; top: 60%; width: 22%; height: 11%; transform: translateX(-50%); border: 2px solid #052e1f; border-top: 0; border-radius: 0 0 999px 999px; }
.nb-node.is-happy .nb-node__mouth, .nb-node.is-hello .nb-node__mouth { height: 14%; width: 26%; background: #052e1f; border: 0; }
.nb-node.is-happy .nb-node__eye { height: 8%; top: 43%; border-radius: 999px 999px 0 0; background: transparent; border: 2px solid #052e1f; border-bottom: 0; animation: none; }
.nb-node.is-alert .nb-node__body { background: radial-gradient(120% 120% at 30% 20%, #fde68a 0%, #34d399 60%, #059669 100%); animation-duration: 3.5s, 1.6s; }
.nb-node.is-alert .nb-node__mouth { width: 12%; height: 12%; border: 2px solid #052e1f; border-radius: 50%; }
.nb-node.is-alert .nb-node__eye { height: 17%; }
.nb-node.is-hello { animation: nb-node-hop 2.8s ease-in-out infinite; }
@keyframes nb-node-morph {
	0%, 100% { border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; }
	33% { border-radius: 45% 55% 48% 52% / 58% 44% 56% 42%; }
	66% { border-radius: 52% 48% 40% 60% / 46% 56% 44% 54%; }
}
@keyframes nb-node-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04, .97); } }
@keyframes nb-node-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes nb-node-hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
	.nb-node, .nb-node__body, .nb-node__eye { animation: none !important; }
}

.nb-wrap .nb-nodecard { padding: 20px 22px; margin-bottom: 20px; background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%); border-color: #d1fae5; }
.nb-wrap .nb-nodecard.is-happy { background: #fff; border-color: var(--nb-line); }
.nb-nodecard__top { display: flex; gap: 16px; align-items: flex-start; }
.nb-nodecard__say { flex: 1; min-width: 0; }
.nb-wrap .nb-nodecard__line { position: relative; margin: 6px 0 0; padding: 10px 14px; background: #fff; border: 1px solid var(--nb-line); border-radius: 4px 14px 14px 14px; font-size: 15px; line-height: 1.5; color: var(--nb-ink); font-weight: 500; display: inline-block; max-width: 100%; box-sizing: border-box; }
.nb-nodecard__list { list-style: none; margin: 14px 0 0 72px; padding: 0; }
.nb-nodecard__item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nb-line); margin: 0; }
.nb-nodecard__item:first-child { border-top: 0; }
.nb-nodecard__n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--nb-fill); color: var(--nb-muted); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.nb-nodecard__item.is-asked .nb-nodecard__n, .nb-nodecard__item.is-late .nb-nodecard__n { background: #fef3c7; color: #92400e; }
.nb-nodecard__text { flex: 1; min-width: 0; color: var(--nb-text); font-size: 14px; line-height: 1.45; }
.nb-nodecard__do { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.nb-nodecard__do form { margin: 0; }
.nb-wrap .nb-nodecard__later { color: var(--nb-muted); font-size: 12px; text-decoration: none; }
.nb-wrap .nb-nodecard__later:hover { color: var(--nb-ink); text-decoration: underline; }
.nb-nodecard__step { margin-top: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-r-sm); }
.nb-nodecard__step p { margin: 4px 0 12px; }
.nb-nodecard__foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.nb-nodecard__foot form { margin: 0 0 0 auto; }
.nb-nodecard__dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nb-nodecard__dots li { width: 22px; height: 6px; border-radius: 999px; background: var(--nb-line-2); margin: 0; }
.nb-nodecard__dots li.is-done { background: #10b981; }
.nb-nodecard__dots li.is-next { background: #a7f3d0; }
@media (max-width: 782px) {
	.nb-nodecard__list { margin-left: 0; }
	.nb-nodecard__item { flex-wrap: wrap; }
	.nb-nodecard__do { width: 100%; padding-left: 34px; }
}

.nb-node-fab { position: fixed; right: 24px; bottom: 24px; z-index: 9990; }
.nb-node-fab__btn { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12)); transition: transform .15s ease; }
.nb-node-fab__btn:hover, .nb-node-fab.is-open .nb-node-fab__btn { transform: translateY(-2px) scale(1.05); }
.nb-node-fab__btn:focus { outline: none; }
.nb-node-fab__btn:focus-visible { outline: 2px solid var(--nb-link, #2563eb); outline-offset: 4px; border-radius: 50%; }
.nb-node-fab__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #18181b; color: #fff; font: 600 11px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: center; border: 2px solid #fff; }
@media print { .nb-node-fab { display: none; } }

/* 1.20: deal stages editor inside Settings */
.nb-stages { list-style: none; margin: 14px 0 10px; padding: 0; max-width: 520px; }
.nb-stage { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0; border-top: 1px solid var(--nb-line); }
.nb-stage:first-child { border-top: 0; }
.nb-stage__n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--nb-fill); color: var(--nb-muted); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.nb-wrap .nb-stage input[type=text] { flex: 1; min-width: 0; }
.nb-stage__tools { flex: none; display: inline-flex; gap: 2px; }
.nb-wrap .nb-icon-btn { width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: var(--nb-r-xs); background: transparent; color: var(--nb-muted); font-size: 15px; line-height: 1; cursor: pointer; }
.nb-wrap .nb-icon-btn:hover:not(:disabled), .nb-wrap .nb-icon-btn:focus-visible { background: var(--nb-fill); color: var(--nb-ink); border-color: var(--nb-line); }
.nb-wrap .nb-icon-btn--danger:hover:not(:disabled) { color: var(--nb-bad); background: var(--nb-bad-bg); }
.nb-wrap .nb-icon-btn:disabled { opacity: .3; cursor: default; }
.nb-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-choice { margin: 0; }

/* 1.20: Node everywhere — panel, tips, empty states, notices */
.nb-node-panel { position: absolute; right: 0; bottom: 60px; width: 380px; max-width: calc(100vw - 32px); max-height: min(70vh, 560px); overflow: auto; background: #fff; border: 1px solid var(--nb-line, #e4e4e7); border-radius: 14px; box-shadow: 0 18px 48px -12px rgba(24, 24, 27, .28); font-size: 13px; color: var(--nb-text, #3f3f46); transform-origin: bottom right; animation: nb-pop .16s ease-out; }
@keyframes nb-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.nb-node-panel__body { padding: 14px 16px 12px; }
.nb-node-panel__head { display: flex; align-items: center; gap: 10px; }
.nb-node-panel__head p { flex: 1; margin: 0; font-size: 14px; font-weight: 600; color: var(--nb-ink, #18181b); line-height: 1.4; }
.nb-node-panel__here { margin-top: 12px; padding: 12px; border-radius: 10px; background: #f0fdf4; border: 1px solid #d1fae5; }
.nb-node-panel__here p { margin: 4px 0 10px; color: var(--nb-ink, #18181b); line-height: 1.45; }
.nb-node-panel__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #047857; }
.nb-node-panel__list { list-style: none; margin: 10px 0 0; padding: 0; }
.nb-node-panel__list li { margin: 0; padding: 10px 0; border-top: 1px solid var(--nb-line, #e4e4e7); transition: opacity .2s; }
.nb-node-panel__list li.is-going { opacity: .35; }
.nb-node-panel__list p { margin: 0 0 8px; line-height: 1.45; }
.nb-node-panel__list span { display: flex; align-items: center; gap: 10px; }
.nb-node-panel__foot { display: flex; justify-content: space-between; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--nb-line, #e4e4e7); }
.nb-node-panel__foot a { text-decoration: none; font-weight: 500; }
.nb-node-panel .nb-btn { min-height: 30px; padding: 0 12px; font-size: 12px; display: inline-flex; align-items: center; border: 1px solid var(--nb-line, #e4e4e7); border-radius: 8px; background: #fff; color: var(--nb-ink, #18181b); text-decoration: none; font-weight: 500; }
.nb-node-panel .nb-btn--primary { background: var(--nb-ink, #18181b); border-color: var(--nb-ink, #18181b); color: #fff; }
.nb-wrap .nb-nodetip { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 14px; background: #f0fdf4; border: 1px solid #d1fae5; border-radius: var(--nb-r); }
.nb-wrap .nb-nodetip.is-alert { background: #fffbeb; border-color: #fde68a; }
.nb-nodetip p { flex: 1; margin: 0; color: var(--nb-ink); font-size: 14px; line-height: 1.45; }
.nb-nodesays { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.nb-nodesays > div { flex: 1; min-width: 0; }
.nb-nodesays__do { margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.nb-wrap .notice.nb-notice--node { display: flex; align-items: center; gap: 10px; }
.nb-wrap .notice.nb-notice--node .nb-node { flex: none; }
@media (max-width: 600px) { .nb-node-fab { right: 14px; bottom: 14px; } }

/* 1.20: Journeys — every number leads somewhere */
.nb-jbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.nb-jbar .nb-range { margin: 0; }
.nb-jbar .nb-report-meta { margin: 0; }
.nb-jinsight { margin: 0 0 16px; padding: 16px 18px; background: linear-gradient(180deg, #f0fdf4 0%, #fff 80%); border: 1px solid #d1fae5; border-radius: var(--nb-r); }
.nb-jinsight .nb-nodesays { margin: 0; align-items: center; }
.nb-wrap .nb-kpis--j { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.nb-wrap .nb-kpis--j .nb-kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--nb-line); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.nb-kpis--j .nb-kpi strong { font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.nb-kpis--j .nb-kpi span { font-size: 13px; color: var(--nb-text); }
.nb-kpis--j .nb-kpi small { font-size: 12px; color: var(--nb-faint); }
.nb-kpi__icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; margin-bottom: 8px; border-radius: 8px; background: var(--nb-fill); color: var(--nb-ink); }
.nb-wrap .nb-kpi--link:hover, .nb-wrap .nb-kpi--link:focus { border-color: var(--nb-ink); box-shadow: 0 6px 18px -8px rgba(24, 24, 27, .25); transform: translateY(-1px); outline: none; }
.nb-kpi__go { position: absolute; top: 16px; right: 16px; color: var(--nb-faint); transition: transform .15s, color .15s; }
.nb-kpi--link:hover .nb-kpi__go { color: var(--nb-ink); transform: translateX(3px); }
.nb-wrap .nb-journeys { gap: 16px; align-items: start; }
.nb-wrap .nb-jcard { padding: 18px 8px 8px; }
.nb-jcard .nb-card__head { padding: 0 12px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nb-jcard h2 { margin: 0; font-size: 16px; }
.nb-jcard > .nb-muted { padding: 0 12px 10px; }
.nb-jlist { list-style: none; margin: 0; padding: 0; }
.nb-jlist > li { margin: 0; border-top: 1px solid var(--nb-line); }
.nb-jlist > li:first-child { border-top: 0; }
.nb-wrap .nb-jrow, .nb-jrow summary { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; text-decoration: none; color: inherit; cursor: pointer; list-style: none; transition: background .12s; }
.nb-jrow--more { padding: 0 !important; display: block !important; cursor: default; }
.nb-jrow summary::-webkit-details-marker { display: none; }
.nb-wrap a.nb-jrow:hover, .nb-jrow summary:hover, .nb-wrap a.nb-jrow:focus-visible, .nb-jrow summary:focus-visible { background: var(--nb-fill-2); outline: none; }
.nb-jrow[open] summary { background: var(--nb-fill-2); }
.nb-jrow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nb-jrow__name { font-weight: 600; color: var(--nb-ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-jrow__name .nb-muted { font-weight: 400; font-size: 12px; }
.nb-jrow__path { text-transform: none; }
.nb-jbar-track { display: block; height: 6px; border-radius: 999px; background: var(--nb-fill); overflow: hidden; }
.nb-jbar-track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #10b981, #34d399); }
.nb-jrow__stats { flex: none; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--nb-muted); }
.nb-jrow__stats strong { color: var(--nb-ink); font-size: 14px; }
.nb-jrow__money { font-weight: 600; color: var(--nb-ink); min-width: 84px; text-align: right; }
.nb-jrow__go { flex: none; width: 18px; color: var(--nb-faint); display: inline-flex; justify-content: center; transition: transform .15s, color .15s; }
a.nb-jrow:hover .nb-jrow__go { color: var(--nb-ink); transform: translateX(3px); }
.nb-jrow[open] .nb-jrow__go { transform: rotate(180deg); color: var(--nb-ink); }
.nb-wrap .nb-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--nb-fill); color: var(--nb-text); font-style: normal; font-size: 12px; font-weight: 600; }
.nb-wrap .nb-pill.is-good { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-pill.is-hot { background: #fff7ed; color: #c2410c; }
.nb-jpeople { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 12px 14px 12px; }
.nb-wrap .nb-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--nb-line); border-radius: 999px; background: #fff; color: var(--nb-ink); text-decoration: none; font-size: 13px; }
.nb-wrap .nb-person:hover { border-color: var(--nb-ink); }
.nb-person__av { width: 22px; height: 22px; border-radius: 50%; background: #d1fae5; color: #047857; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nb-wrap .nb-jpeople__open { margin-left: auto; font-size: 13px; text-decoration: none; }
.nb-jtip { margin-top: 20px; }
.nb-filter-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 4px 6px 4px 12px; border: 1px solid var(--nb-line); border-radius: 999px; background: #fff; font-size: 13px; }
.nb-filter-chip a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--nb-muted); }
.nb-filter-chip span { font-weight: 600; color: var(--nb-ink); }
.nb-wrap .nb-filter-chip__x { width: 22px; height: 22px; justify-content: center; border-radius: 50%; background: var(--nb-fill); color: var(--nb-ink); }
@media (max-width: 782px) { .nb-jrow__stats { flex-wrap: wrap; justify-content: flex-end; } .nb-jrow__money { min-width: 0; } }

/* 1.21: Growth */
.nb-wrap .nb-ghead { margin: 0 0 18px; padding: 18px 20px; background: linear-gradient(180deg, #f0fdf4 0%, #fff 85%); border: 1px solid #d1fae5; border-radius: var(--nb-r); }
.nb-ghead .nb-nodesays { margin: 0 0 12px; align-items: center; }
.nb-ghead__bar { display: flex; align-items: center; gap: 12px; max-width: 520px; }
.nb-ghead__bar .nb-jbar-track { flex: 1; height: 10px; }
.nb-ghead__bar strong { font-size: 15px; color: var(--nb-ink); }
.nb-ghead__meta { margin: 10px 0 0; }
.nb-ghead.is-checking .nb-ghead__meta { opacity: .6; }
.nb-growth { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .nb-growth { grid-template-columns: 1fr; } }
.nb-growth__main { display: flex; flex-direction: column; gap: 16px; }
.nb-wrap .nb-gcard { padding: 18px 8px 8px; margin: 0; }
.nb-gcard .nb-card__head { padding: 0 12px 6px; display: flex; justify-content: space-between; align-items: baseline; }
.nb-gcard h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.nb-glist { list-style: none; margin: 0; padding: 0; }
.nb-grow { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px; border-top: 1px solid var(--nb-line); border-radius: 10px; scroll-margin-top: 80px; }
.nb-glist > .nb-grow:first-child { border-top: 0; }
.nb-grow:target { background: #fefce8; }
.nb-grow__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nb-fill); color: var(--nb-muted); }
.nb-grow.is-ok .nb-grow__icon { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-grow.is-todo .nb-grow__icon { background: #fef3c7; color: #b45309; }
.nb-grow__body { flex: 1; min-width: 0; }
.nb-grow__body strong { display: block; color: var(--nb-ink); font-size: 14px; }
.nb-grow__body p { margin: 4px 0 0; color: var(--nb-text); font-size: 13px; line-height: 1.5; }
.nb-wrap .nb-grow__detail { color: var(--nb-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-grow.is-ok .nb-grow__body strong, .nb-grow.is-skip .nb-grow__body strong { font-weight: 500; color: var(--nb-text); }
.nb-grow__do { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.nb-grow__do form { margin: 0; }
.nb-wrap .nb-grow__skip { color: var(--nb-muted); font-size: 12px; text-decoration: none; }
.nb-wrap .nb-grow__skip:hover { color: var(--nb-ink); text-decoration: underline; }
.nb-gdone { margin: 4px 12px 8px; }
.nb-gdone summary { cursor: pointer; color: var(--nb-muted); font-size: 13px; padding: 6px 0; }
.nb-gdone .nb-grow { padding-left: 0; padding-right: 0; }
.nb-growth__side { display: flex; flex-direction: column; gap: 16px; }
.nb-wrap .nb-gside { margin: 0; padding: 18px 20px; }
.nb-gside .nb-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.nb-gside h2 { margin: 0 0 10px; font-size: 16px; }
.nb-gside h3 { margin: 16px 0 6px; font-size: 13px; color: var(--nb-muted); font-weight: 600; }
.nb-gside__big { margin: 0 0 12px; color: var(--nb-text); }
.nb-gside__big strong { font-size: 28px; color: var(--nb-ink); margin-right: 4px; }
.nb-gbots { list-style: none; margin: 0; padding: 0; }
.nb-gbots li { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; }
.nb-gbots strong { text-align: right; color: var(--nb-ink); }
.nb-gpages { margin: 0; padding: 0; list-style: none; }
.nb-gpages li { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 0; border-top: 1px solid var(--nb-line); font-size: 13px; }
.nb-gpages li:first-child { border-top: 0; }
.nb-gpages a, .nb-gpages code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 782px) { .nb-grow { flex-wrap: wrap; } .nb-grow__do { max-width: none; width: 100%; justify-content: flex-start; padding-left: 38px; } }

/* 1.22: Node on your phone (Settings) */
.nb-phone { margin: 8px 0; }
.nb-phone__code { display: flex; gap: 18px; align-items: center; margin-top: 12px; padding: 14px; border: 1px solid var(--nb-line); border-radius: var(--nb-r); background: #fff; max-width: 520px; }
.nb-phone__qr svg { display: block; width: 156px; height: 156px; }
.nb-phone__digits { margin: 6px 0; font: 700 32px/1.1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--nb-ink); }
.nb-phones { margin: 10px 0 0; }
.nb-phones li { margin: 0 0 6px; }

/* 1.22: disclosures — one calm style for every "Change", "More actions", "Add a task" toggle (no browser triangles). */
.nb-wrap details > summary:not(.button) { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; margin: 0 0 0 -10px; border-radius: 8px; font-weight: 500; color: var(--nb-ink); -webkit-user-select: none; user-select: none; transition: background .12s, color .12s; }
.nb-wrap details > summary:not(.button)::-webkit-details-marker { display: none; }
.nb-wrap details > summary:not(.button)::marker { content: ''; }
.nb-wrap details > summary:not(.button)::after { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; opacity: .5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .18s ease, opacity .12s; }
.nb-wrap details[open] > summary:not(.button)::after { transform: rotate(180deg); }
.nb-wrap details > summary:not(.button):hover { background: var(--nb-fill); }
.nb-wrap details > summary:not(.button):hover::after { opacity: .9; }
.nb-wrap details > summary:not(.button):focus-visible { outline: 2px solid var(--nb-link, #2563eb); outline-offset: 2px; }
.nb-wrap details[open] > summary:not(.button) { margin-bottom: 8px; }
/* Whole-card toggles: full width, chevron on the right. */
.nb-wrap .nb-card.nb-more > summary, .nb-wrap .nb-builtin > summary, .nb-wrap .nb-today__soon > summary { display: flex; justify-content: space-between; width: calc(100% + 20px); margin: -8px -10px; padding: 8px 10px; box-sizing: border-box; font-weight: 600; }
.nb-wrap .nb-card.nb-more[open] > summary, .nb-wrap .nb-builtin[open] > summary, .nb-wrap .nb-today__soon[open] > summary { margin-bottom: 10px; }
/* Quiet ones: lists of done items, all submitted fields. */
.nb-wrap .nb-gdone > summary, .nb-wrap .nb-task-done > summary, .nb-wrap .nb-tl details > summary { color: var(--nb-muted); font-size: 13px; }
/* "Add a task": a dashed button with a plus, not a chevron. */
.nb-wrap .nb-task-add > summary { margin: 8px 0 0; padding: 8px 14px; border: 1px dashed var(--nb-line-2); border-radius: var(--nb-r-sm); color: var(--nb-ink); font-size: 13px; }
.nb-wrap .nb-task-add > summary::after { display: none; }
.nb-wrap .nb-task-add > summary::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat; }
.nb-wrap .nb-task-add > summary:hover { border-color: var(--nb-ink); background: #fff; }
.nb-wrap .nb-task-add[open] > summary { display: none; }
/* Toggles that already have their own look keep it. */
.nb-wrap .nb-jrow > summary { margin: 0; padding: 12px; border-radius: 10px; font-weight: inherit; display: flex; }
.nb-wrap .nb-jrow > summary::after, .nb-wrap .nb-pin > summary::after { display: none; }
.nb-wrap .nb-jrow[open] > summary { margin-bottom: 0; }
.nb-wrap .nb-pin > summary { margin: 0; padding: 6px 10px; background: #fff8e1; }
.nb-wrap .nb-pin--empty > summary { background: transparent; padding: 2px 0; color: var(--nb-accent); }
.nb-wrap .nb-pin--empty > summary:hover { background: transparent; text-decoration: underline; }

/* 1.23: morning note schedule */
.nb-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 4px; }
.nb-when.is-off { opacity: .45; }
.nb-when input[type=time] { min-height: 32px; padding: 0 8px; border-radius: 8px; }
.nb-days { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.nb-day { position: relative; cursor: pointer; }
.nb-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nb-day span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 8px; border: 1px solid var(--nb-line, #dcdcde); border-radius: 999px; font-size: 12px; font-weight: 600; color: #50575e; background: #fff; transition: background .15s, color .15s, border-color .15s; }
.nb-day input:checked + span { background: var(--nb-accent, #2b5cd9); border-color: var(--nb-accent, #2b5cd9); color: #fff; }
.nb-day input:focus-visible + span { outline: 2px solid var(--nb-accent, #2b5cd9); outline-offset: 2px; }
.nb-when__quick { font-size: 12px; color: #646970; }
.nb-when__quick .button-link { font-size: 12px; text-decoration: none; }
.nb-phone__cant code { word-break: break-all; user-select: all; font-size: 11px; }

/* 1.23: Fields screen, one object at a time */
.nb-seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 16px; border-radius: var(--nb-r-sm); background: var(--nb-fill, #f4f4f5); }
.nb-wrap .nb-seg__item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--nb-r-xs); color: var(--nb-muted); font-weight: 500; text-decoration: none; }
.nb-wrap .nb-seg__item:hover, .nb-wrap .nb-seg__item:focus { color: var(--nb-ink); box-shadow: none; }
.nb-wrap .nb-seg__item.is-active { background: #fff; color: var(--nb-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.nb-seg__n { min-width: 18px; padding: 0 6px; border-radius: var(--nb-pill); background: rgba(0, 0, 0, .06); font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.nb-seg__dot { min-width: 18px; padding: 0 6px; border-radius: var(--nb-pill); background: var(--nb-accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.nb-fpanel[hidden] { display: none; }
.nb-fpanel + .nb-fpanel { margin-top: 8px; }
.nb-fpanel__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .nb-fpanel__grid { grid-template-columns: minmax(0, 1fr); } }
.nb-fpanel__side .nb-card { margin-bottom: 16px; }
.nb-fpanel__side h3 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nb-fcard { padding: 0; overflow: hidden; }
.nb-fcard__head { padding: 16px 18px 4px; }
.nb-fcard__head h2 { margin: 0 0 2px; font-size: 16px; }
.nb-fcard__head p { margin: 0; }
.nb-addfield { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 18px 4px; padding: 6px 6px 6px 12px; border: 1px dashed var(--nb-line-2, #cfd4dc); border-radius: var(--nb-r-sm); background: var(--nb-fill-2, #fafafa); }
.nb-addfield:focus-within { border-style: solid; border-color: var(--nb-accent); background: #fff; }
.nb-addfield__plus { color: var(--nb-accent); font-weight: 700; font-size: 18px; line-height: 1; }
.nb-wrap .nb-addfield input.nb-addfield__name { flex: 1 1 200px; min-height: 34px; border: 0; background: transparent; box-shadow: none; padding: 0 4px; font-size: 14px; }
.nb-wrap .nb-addfield select { min-height: 34px; border-radius: var(--nb-r-xs); }
.nb-wrap .nb-addfield .nb-addfield__opts { flex: 1 1 180px; min-height: 34px; border-radius: var(--nb-r-xs); }
.nb-addfield__full { flex-basis: 100%; margin: 0; }
.nb-fempty { margin: 12px 18px; padding: 18px; border-radius: var(--nb-r-sm); background: var(--nb-fill-2, #fafafa); text-align: center; }
.nb-fempty p { margin: 0; color: var(--nb-muted); }
.nb-flist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--nb-line); }
.nb-frow { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--nb-line); transition: background .15s; }
.nb-frow:hover { background: var(--nb-fill-2, #fafafa); }
.nb-frow.is-deleting { background: var(--nb-bad-bg, #fdecec); }
.nb-frow.is-deleting .nb-frow__name { text-decoration: line-through; color: var(--nb-bad, #b3261e); }
.nb-frow__type { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--nb-r-xs); background: var(--nb-soft); color: var(--nb-accent); font-weight: 700; font-size: 13px; }
.nb-frow__body { flex: 1; min-width: 0; }
.nb-wrap .nb-frow__name { width: 100%; max-width: 420px; min-height: 32px; padding: 0 8px; margin-left: -8px; border: 1px solid transparent; border-radius: var(--nb-r-xs); background: transparent; box-shadow: none; font-weight: 600; font-size: 14px; color: var(--nb-ink); }
.nb-wrap .nb-frow__name:hover { border-color: var(--nb-line); }
.nb-wrap .nb-frow__name:focus { border-color: var(--nb-accent); background: #fff; box-shadow: 0 0 0 3px var(--nb-soft); }
.nb-frow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 2px; font-size: 12px; }
.nb-frow__card { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.nb-frow__opts { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--nb-muted); }
.nb-wrap .nb-frow__opts input { flex: 1; max-width: 420px; min-height: 30px; border-radius: var(--nb-r-xs); }
.nb-frow__tools { flex: none; display: flex; align-items: center; gap: 2px; }
.nb-frow:first-child [data-nb-reorder="-1"], .nb-frow:last-child [data-nb-reorder="1"] { opacity: .3; pointer-events: none; }
.nb-frow__del { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 4px 8px; border-radius: var(--nb-r-xs); color: var(--nb-muted); font-size: 12px; cursor: pointer; }
.nb-frow__del:hover { color: var(--nb-bad, #b3261e); background: var(--nb-bad-bg, #fdecec); }
.nb-builtin.nb-disclosure { margin: 0; padding: 0 18px; border-bottom: 1px solid var(--nb-line); }
.nb-builtin > summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.nb-builtin > summary .nb-muted { font-weight: 400; }
.nb-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.nb-bfield { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border: 1px solid var(--nb-line); border-radius: var(--nb-r-xs); background: #fff; }
.nb-wrap .nb-bfield input[type=text] { flex: 1; min-width: 0; min-height: 30px; border: 0; box-shadow: none; background: transparent; padding: 0 6px; }
.nb-bfield.is-hidden { background: var(--nb-fill-2, #fafafa); }
.nb-bfield.is-hidden input[type=text] { color: var(--nb-muted); text-decoration: line-through; }
.nb-bfield__show, .nb-bfield__lock { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--nb-muted); white-space: nowrap; }
.nb-fform__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; background: var(--nb-fill-2, #fafafa); }
.nb-foundcard .nb-found { list-style: none; margin: 10px 0; padding: 0; max-height: 360px; overflow: auto; }
.nb-found li { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 0; border-top: 1px solid var(--nb-line); }
.nb-found li input { margin-top: 3px; }
.nb-found__meta { display: block; color: var(--nb-muted); font-size: 12px; }
.nb-foundcard .nb-promote { flex-direction: column; align-items: stretch; }
.nb-foundcard .nb-promote > * { max-width: 100%; }
.nb-fnote ul { margin: 0; padding-left: 18px; list-style: disc; color: var(--nb-muted); }
.nb-fnote li { margin: 0 0 6px; }
.nb-wrap .nb-builtin.nb-disclosure > summary { display: flex; justify-content: flex-start; gap: 8px; margin: 0 -18px; padding: 14px 18px; border-radius: 0; }
.nb-wrap .nb-builtin.nb-disclosure > summary::after { margin-left: auto; }
.nb-wrap .nb-builtin.nb-disclosure[open] { padding-bottom: 14px; }
.nb-wrap .nb-card.nb-fcard { padding: 0; }
.nb-wrap .nb-fform__bar { border-radius: 0 0 var(--nb-r) var(--nb-r); }

/* 1.24: Gatherings */
.nb-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 24px; }
.nb-wrap a.nb-gcard { display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-r); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.nb-wrap a.nb-gcard:hover, .nb-wrap a.nb-gcard:focus { border-color: var(--nb-line-2, #cfd4dc); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); color: inherit; }
.nb-gcard__date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 60px; border-radius: var(--nb-r-sm); background: var(--nb-soft); color: var(--nb-accent); line-height: 1; }
.nb-gcard__date b { font-size: 22px; font-weight: 700; }
.nb-gcard__date i { font-style: normal; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.nb-gcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nb-gcard__title { font-size: 15px; color: var(--nb-ink); }
.nb-gcard__meta, .nb-gcard__money { color: var(--nb-muted); font-size: 13px; }
.nb-gcard__money { color: var(--nb-ink); font-weight: 500; }
.nb-gcard__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.nb-gcard__chips .nb-chip-static { margin: 0; }
.nb-chip-static--due { background: #fcf3dc; color: #8a5a00; }
.nb-spots { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.nb-spots__bar { display: block; height: 6px; border-radius: 99px; background: var(--nb-line); overflow: hidden; width: 100%; }
.nb-spots__bar > span { display: block; height: 100%; border-radius: 99px; background: var(--nb-accent); }
.nb-spots.is-low .nb-spots__bar > span { background: #d97706; }
.nb-spots.is-full .nb-spots__bar > span { background: #16a34a; }
.nb-spots__text { font-size: 12px; color: var(--nb-muted); }
.nb-spots__bar--money > span { background: #16a34a; }
.nb-gpast__title { font-size: 15px; margin: 8px 0 10px; }
.nb-gpast ul { margin: 0; }
.nb-gpast li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; padding: 10px 0; border-top: 1px solid var(--nb-line); }
.nb-gpast li:first-child { border-top: 0; }
.nb-gpast__n { margin-left: auto; color: var(--nb-muted); font-size: 12px; }
.nb-gdeals { margin: 8px 0 0; color: var(--nb-muted); font-size: 13px; }
.nb-gdeals label { display: inline-flex; gap: 8px; align-items: flex-start; max-width: 760px; }
.nb-gkpis .nb-kpi .nb-spots { margin-top: 6px; }
.nb-wrap .nb-kpi--warn { border-color: #f1c27d; background: #fffaf0; }
.nb-gview { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .nb-gview { grid-template-columns: minmax(0, 1fr); } }
.nb-count--soft { background: var(--nb-fill, #f4f4f5) !important; color: var(--nb-ink) !important; font-size: 12px; }
.nb-roster { padding: 0; }
.nb-roster .nb-card__head { padding: 16px 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nb-roster .nb-card__head h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.nb-roster__tools { display: flex; gap: 8px; }
.nb-roster__tools form { margin: 0; }
.nb-roster__add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 14px 18px 4px; padding: 12px; border: 1px dashed var(--nb-line-2, #cfd4dc); border-radius: var(--nb-r-sm); background: var(--nb-fill-2, #fafafa); }
.nb-roster__add .nb-pick { flex: 1 1 280px; margin: 0; }
.nb-roster__add .nb-pick label { font-weight: 600; font-size: 12px; }
.nb-roster__add .nb-pick input[type=text] { width: 100%; }
.nb-roster__addopts { display: flex; gap: 6px; align-items: center; padding-bottom: 22px; }
.nb-roster__empty { margin: 8px 18px 18px; }
.nb-roster__filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 18px; }
.nb-wrap .nb-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--nb-line); border-radius: var(--nb-pill); background: #fff; color: var(--nb-muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.nb-wrap .nb-fchip span { color: var(--nb-ink); font-weight: 600; }
.nb-wrap .nb-fchip:hover { color: var(--nb-ink); border-color: var(--nb-line-2, #cfd4dc); }
.nb-wrap .nb-fchip.is-active { background: var(--nb-ink); border-color: var(--nb-ink); color: #fff; }
.nb-wrap .nb-fchip.is-active span { color: #fff; }
.nb-rlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nb-line); }
.nb-rrow { display: grid; grid-template-columns: 32px minmax(160px, 1.4fr) 130px minmax(150px, 1fr) 270px; gap: 12px; align-items: center; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--nb-line); }
.nb-rrow:last-child { border-bottom: 0; }
.nb-rrow[hidden] { display: none; }
.nb-rrow.is-cancelled { opacity: .55; }
.nb-rrow.is-flash { animation: nb-flash 1.6s ease; }
@keyframes nb-flash { 0%, 40% { background: var(--nb-soft); } 100% { background: transparent; } }
.nb-rrow .nb-avatar { margin: 0; }
.nb-rrow__who { min-width: 0; display: flex; flex-direction: column; }
.nb-rrow__who a { text-decoration: none; }
.nb-rrow__who .nb-muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-rrow form { margin: 0; }
.nb-wrap .nb-status-select { min-height: 30px; padding: 0 24px 0 10px; border-radius: var(--nb-pill); font-size: 12px; font-weight: 600; border-color: var(--nb-line); }
.nb-wrap .nb-status-select.is-reserved { background-color: #e5f5ec; color: #146c43; border-color: #bfe5cf; }
.nb-wrap .nb-status-select.is-interested { background-color: #eef4ff; color: #1d4ed8; border-color: #cddcfd; }
.nb-wrap .nb-status-select.is-waitlist { background-color: #fcf3dc; color: #8a5a00; border-color: #f1dca8; }
.nb-rrow__money { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.nb-rrow__paid { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nb-rrow__act { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.nb-rrow__pay { display: flex; gap: 4px; }
.nb-wrap .nb-rrow__pay input { width: 84px; min-height: 30px; }
.nb-wrap .nb-rrow__pay .button { min-height: 30px; line-height: 28px; }
.nb-rrow__came label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.nb-rrow__more { position: relative; }
.nb-wrap .nb-rrow__more > summary.nb-icon-btn { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; }
.nb-wrap .nb-rrow__more > summary.nb-icon-btn::after { display: none; }
.nb-rrow__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; gap: 10px; width: 260px; padding: 12px; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-r-sm); box-shadow: 0 12px 28px rgba(16, 24, 40, .14); }
.nb-rrow__menu form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nb-rrow__menu label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
@media (max-width: 960px) {
	.nb-rrow { grid-template-columns: 32px 1fr; }
	.nb-rrow__status, .nb-rrow__money, .nb-rrow__act { grid-column: 2; justify-content: flex-start; }
}
.nb-invite__list { columns: 2 200px; margin: 0 0 12px; }
.nb-invite__list li { margin: 0 0 6px; break-inside: avoid; }
.nb-glinks { margin: 0 0 8px; padding-left: 18px; list-style: disc; color: var(--nb-muted); }
.nb-glinks li { margin: 0 0 6px; }
.nb-gview__side h4 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--nb-muted); }
.nb-gform .nb-card h2 { margin-top: 0; font-size: 15px; }
.nb-gform .nb-field .nb-muted { display: block; margin-top: 4px; font-size: 12px; }
.nb-gform__bar { margin: 0 0 12px; }
.nb-gform__delete { margin: 0 0 24px; }
.nb-cgather__list { margin: 0 0 12px; }
.nb-cgather__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; padding: 8px 0; border-top: 1px solid var(--nb-line); }
.nb-cgather__list li:first-child { border-top: 0; }
.nb-cgather__state { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.nb-cgather__add { margin: 0; }
.nb-wrap .nb-pill--ok { background: #e5f5ec; color: #146c43; }
.nb-wrap .nb-pill--due { background: #fcf3dc; color: #8a5a00; }
.nb-wrap .nb-pill--live { background: #e5f5ec; color: #146c43; }

/* 1.25: the setup */
.nb-wrap.nb-welcome { max-width: 860px; margin: 0 auto; padding: 24px 20px 64px; }
.nb-welcome__top { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 18px; }
.nb-welcome .nb-brand { color: var(--nb-ink); font-weight: 700; }
.nb-welcome .nb-brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--nb-ink); color: #fff; }
.nb-welcome__skip { color: var(--nb-muted); text-decoration: none; font-size: 13px; }
.nb-welcome__skip:hover { color: var(--nb-ink); }
.nb-welcome__progress { height: 4px; border-radius: 99px; background: var(--nb-line); overflow: hidden; margin-bottom: 28px; }
.nb-welcome__progress span { display: block; height: 100%; width: 0; background: var(--nb-accent); border-radius: 99px; transition: width .35s ease; }
.nb-wform:not(.is-js) .nb-wstep { margin-bottom: 40px; }
.nb-wform:not(.is-js) .nb-wstep__nav { display: none; }
.nb-wstep[hidden] { display: none; }
.nb-wstep { animation: nb-wfade .3s ease; }
@keyframes nb-wfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nb-wstep__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.nb-wstep__head h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--nb-ink); outline: none; }
.nb-wstep__head p { margin: 0; color: var(--nb-muted); font-size: 14px; max-width: 620px; }
.nb-wcards { display: grid; gap: 12px; }
.nb-wcards--biz { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.nb-wcards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nb-wcards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .nb-wcards--two, .nb-wcards--three { grid-template-columns: 1fr; } }
.nb-wcard { position: relative; display: block; cursor: pointer; }
.nb-wcard input { position: absolute; opacity: 0; pointer-events: none; }
.nb-wcard__box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; box-sizing: border-box; padding: 18px; background: #fff; border: 1.5px solid var(--nb-line); border-radius: var(--nb-r); transition: border-color .15s, box-shadow .15s, transform .15s; }
.nb-wcard:hover .nb-wcard__box { border-color: var(--nb-line-2, #cfd4dc); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 24, 40, .06); }
.nb-wcard input:checked + .nb-wcard__box { border-color: var(--nb-accent); box-shadow: 0 0 0 3px var(--nb-soft); }
.nb-wcard input:focus-visible + .nb-wcard__box { outline: 2px solid var(--nb-accent); outline-offset: 2px; }
.nb-wcard__box strong { font-size: 15px; color: var(--nb-ink); }
.nb-wcard__text { color: var(--nb-muted); font-size: 13px; line-height: 1.45; }
.nb-wcard__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--nb-soft); color: var(--nb-accent); margin-bottom: 4px; }
.nb-wcard__tag { margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: #e5f5ec; color: #146c43; font-size: 11px; font-weight: 600; }
.nb-wcard__box--node { align-items: center; text-align: center; }
.nb-wtoggles { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nb-wtoggles li { margin: 0; }
.nb-wtoggle { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-r); cursor: pointer; }
.nb-wtoggle__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--nb-fill, #f4f4f5); color: var(--nb-ink); }
.nb-wtoggle__text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.nb-wtoggle__text strong { font-size: 14px; color: var(--nb-ink); }
.nb-wtoggle__text > span { color: var(--nb-muted); font-size: 13px; }
.nb-wtoggle .nb-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.nb-wtoggle .nb-chip-static { margin: 0; }
.nb-wfields { margin-top: 10px; }
.nb-wtoggle--morning { margin-top: 14px; }
.nb-wrap input[type=checkbox].nb-switch { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 24px; margin: 0; border: 0; border-radius: 99px; background: #d4d4d8; cursor: pointer; transition: background .2s; box-shadow: none; }
.nb-wrap input[type=checkbox].nb-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; margin: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.nb-wrap input[type=checkbox].nb-switch:checked { background: var(--nb-accent); }
.nb-wrap input[type=checkbox].nb-switch:checked::before { transform: translateX(16px); content: ''; }
.nb-wrap input[type=checkbox].nb-switch:focus-visible { outline: 2px solid var(--nb-accent); outline-offset: 2px; }
.nb-wstep__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.nb-wrap .nb-wstep__nav .button { min-height: 40px; padding: 0 20px; font-size: 14px; border-radius: var(--nb-r-sm); }
.nb-wrap .nb-pill--rec { background: #e5f5ec; color: #146c43; }

/* 1.25.1: contact sidebar, consent and more actions */
.nb-consent__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nb-consent__head h3 { margin: 0; }
.nb-wrap .nb-consent p.nb-consent__meta { margin: 6px 0 0; color: var(--nb-muted); font-size: 12px; }
.nb-wrap .nb-consent__change { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--nb-line); }
.nb-wrap .nb-consent__change > summary { display: flex; justify-content: space-between; width: calc(100% + 20px); margin: 4px -10px 0; padding: 8px 10px; box-sizing: border-box; font-weight: 500; font-size: 13px; color: var(--nb-ink); }
.nb-wrap .nb-consent__change[open] > summary { margin-bottom: 6px; }
.nb-consent__form { display: flex; flex-direction: column; gap: 8px; }
.nb-wrap .nb-choice { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.nb-wrap .nb-choice__row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--nb-line); border-radius: var(--nb-r-sm); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.nb-wrap .nb-choice__row:hover { border-color: var(--nb-line-2, #cfd4dc); }
.nb-wrap .nb-choice__row:has(input:checked) { border-color: var(--nb-ink); background: var(--nb-fill-2, #fafafa); }
.nb-wrap .nb-choice__row input[type=radio] { margin: 2px 0 0; flex: none; }
.nb-choice__row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-choice__row strong { font-size: 13px; font-weight: 600; color: var(--nb-ink); }
.nb-choice__row > span > span { font-size: 12px; color: var(--nb-muted); line-height: 1.4; }
.nb-wrap label.nb-consent__why, .nb-more__label { display: block; margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--nb-ink); }
.nb-wrap .nb-consent__form input[type=text], .nb-wrap .nb-more input[type=text] { width: 100%; min-width: 0; box-sizing: border-box; }
.nb-wrap .nb-consent__form p.nb-consent__note { margin: 0; font-size: 12px; line-height: 1.45; }
.nb-wrap .button.nb-side-btn { align-self: flex-start; min-height: 34px; padding: 0 16px; line-height: 32px; font-size: 13px; }
.nb-wrap .nb-more__block { display: flex; flex-direction: column; gap: 8px; }
.nb-wrap .nb-more__block p { margin: 0; font-size: 12px; line-height: 1.45; }
.nb-wrap .nb-more__block .nb-pick__help:empty { display: none; }
.nb-wrap .nb-more__danger { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--nb-line); }
.nb-wrap a.button.nb-btn-danger, .nb-wrap .button.nb-btn-danger { color: #b3261e; border-color: #f0c4c0; background: #fff; text-decoration: none; }
.nb-wrap a.button.nb-btn-danger:hover, .nb-wrap .button.nb-btn-danger:hover { background: #fdecec; border-color: #e3a29c; color: #8c1d18; }
.nb-wrap .nb-choice__row input[type=radio] { accent-color: var(--nb-ink); }
.nb-wrap .nb-choice__row input[type=radio]:checked::before { background-color: var(--nb-ink); }
/* Room at the bottom so Node's corner button never covers the last card. */
body:has(.nb-node-fab) .nb-wrap { padding-bottom: 88px; }

/* ===================================================================
 * 1.26: polish pass — one control size, quiet links, tidy tables.
 * =================================================================== */
/* Links: no underlines in the app, an underline on hover for plain text links. */
.nb-wrap a { text-decoration: none; }
.nb-wrap p a:not(.button):hover, .nb-wrap .description a:hover, .nb-wrap li > a:not([class]):hover, .nb-wrap td a:not([class]):hover { text-decoration: underline; text-underline-offset: 2px; }
.nb-wrap a.button:hover, .nb-wrap a[class*="nb-"]:hover { text-decoration: none; }

/* Controls: selects match buttons (36px, 13px). */
.nb-wrap select:not([multiple]) { height: 36px; min-height: 36px; font-size: 13px; line-height: 1.2; }
.nb-wrap input[type="text"], .nb-wrap input[type="email"], .nb-wrap input[type="tel"], .nb-wrap input[type="url"], .nb-wrap input[type="number"], .nb-wrap input[type="search"], .nb-wrap input[type="date"], .nb-wrap input[type="time"] { height: 36px; font-size: 13px; padding: 0 12px; }
.nb-wrap textarea { font-size: 13px; }
.nb-wrap .button-small { min-height: 30px; padding: 0 11px; }
/* Compact rows: everything 30px. */
.nb-wrap .nb-follow__do, .nb-wrap .nb-task__do { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nb-wrap .nb-follow__do form, .nb-wrap .nb-task__do form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.nb-wrap .nb-follow__do select, .nb-wrap .nb-task__do select, .nb-wrap .nb-card-mini__move select, .nb-wrap .nb-task__do input[type="text"] { height: 30px; min-height: 30px; padding: 0 26px 0 10px; font-size: 12px; border-radius: var(--nb-r-xs); background-position: right 6px center; background-size: 14px; }
.nb-wrap .nb-task__do input[type="text"] { padding: 0 10px; width: 150px; }
.nb-wrap .nb-follow__do .button, .nb-wrap .nb-task__do .button { min-height: 30px; }
.nb-wrap .nb-follow__do .nb-template-pick { max-width: 130px; }
/* Moving a card: a quiet, small control under the card. */
.nb-wrap .nb-card-mini__move { margin: 8px 0 0; }
.nb-wrap .nb-card-mini__move select { width: 100%; color: var(--nb-muted); background-color: var(--nb-fill-2, #fafafa); border-color: transparent; box-shadow: none; }
.nb-wrap .nb-card-mini__move select:hover, .nb-wrap .nb-card-mini__move select:focus { color: var(--nb-ink); background-color: #fff; border-color: var(--nb-line); }
/* Icon buttons as links, with SVGs. */
.nb-wrap a.nb-icon-btn, .nb-wrap button.nb-icon-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.nb-wrap .nb-icon-btn svg { display: block; }

/* Radios and checkboxes in the ink colour, like the rest. */
.nb-wrap input[type="radio"]:checked { border-color: var(--nb-ink); }
.nb-wrap input[type="radio"]:checked::before { background-color: var(--nb-ink); }
.nb-wrap input[type="radio"]:focus, .nb-wrap input[type="checkbox"]:focus { border-color: var(--nb-ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .1); outline: none; }

/* Tables (contacts, companies). */
.nb-table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--nb-line); border-radius: var(--nb-r); }
.nb-wrap .wp-list-table tfoot { display: none; }
.nb-wrap .wp-list-table thead th, .nb-wrap .wp-list-table thead td { white-space: nowrap; vertical-align: middle; }
.nb-wrap .wp-list-table tbody td, .nb-wrap .wp-list-table tbody th { vertical-align: middle; }
.nb-wrap .wp-list-table .check-column { width: 36px; padding: 0 0 0 14px; vertical-align: middle; }
.nb-wrap .wp-list-table tbody .check-column input[type="checkbox"], .nb-wrap .wp-list-table thead .check-column input[type="checkbox"] { margin: 0; }
.nb-wrap .wp-list-table td.column-email { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wrap .wp-list-table td.column-touch, .nb-wrap .wp-list-table td.column-last_seen, .nb-wrap .wp-list-table td.column-created, .nb-wrap .wp-list-table td.column-owner, .nb-wrap .wp-list-table td.column-spent, .nb-wrap .wp-list-table td.column-orders { white-space: nowrap; }
.nb-wrap .tablenav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; height: auto; margin: 10px 0; padding: 0; }
.nb-wrap .tablenav .actions { display: flex; align-items: center; gap: 6px; padding: 0; float: none; overflow: visible; }
.nb-wrap .tablenav .actions select { max-width: 200px; float: none; margin: 0; }
.nb-wrap .tablenav .tablenav-pages { margin: 0 0 0 auto; float: none; display: flex; align-items: center; gap: 6px; }
.nb-wrap .tablenav .tablenav-pages .pagination-links { display: inline-flex; align-items: center; gap: 4px; }
.nb-wrap .tablenav .tablenav-pages .button, .nb-wrap .tablenav .tablenav-pages .tablenav-pages-navspan { min-width: 30px; min-height: 30px; padding: 0 8px; }
.nb-wrap .tablenav .current-page { width: 44px; height: 30px; text-align: center; padding: 0 4px; }
.nb-wrap .tablenav br.clear { display: none; }
/* Views as pills, search as one field. */
.nb-wrap ul.subsubsub { display: flex; flex-wrap: wrap; gap: 4px; float: none; margin: 0 0 10px; padding: 0; color: transparent; font-size: 0; }
.nb-wrap ul.subsubsub li { margin: 0; font-size: 0; }
.nb-wrap ul.subsubsub a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--nb-pill); color: var(--nb-muted); font-size: 13px; font-weight: 500; line-height: 1.2; }
.nb-wrap ul.subsubsub a:hover { color: var(--nb-ink); background: var(--nb-fill); }
.nb-wrap ul.subsubsub a.current { color: var(--nb-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--nb-line); font-weight: 600; }
.nb-wrap ul.subsubsub a .count { color: inherit; opacity: .6; font-weight: 500; }
.nb-wrap p.search-box { position: relative; float: right; margin: 0 0 10px; display: flex; }
.nb-wrap p.search-box input[type="search"] { width: 260px; padding-left: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 11px center; }
.nb-wrap p.search-box input[type="submit"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; min-height: 0; }
@media (max-width: 782px) { .nb-wrap p.search-box { float: none; width: 100%; } .nb-wrap p.search-box input[type="search"] { width: 100%; } }

/* Contact header. */
.nb-wrap .nb-hero__top { align-items: flex-start; }
.nb-wrap .nb-hero__id h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nb-wrap .nb-hero__id h2 .nb-pill { font-size: 11px; }
.nb-wrap .nb-hero__pickers { margin-top: 12px; gap: 8px 16px; align-items: center; }
.nb-wrap .nb-hero__pickers form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.nb-wrap .nb-hero__pickers label { color: var(--nb-muted); font-size: 12px; }
.nb-wrap .nb-hero__pickers select { height: 30px; min-height: 30px; padding: 0 26px 0 10px; font-size: 12px; border-radius: var(--nb-r-xs); background-position: right 6px center; background-size: 14px; }
.nb-wrap .nb-hero__actions { align-self: center; }

/* Timeline: pages as a quiet list. */
.nb-wrap .nb-pages li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0; }
.nb-pages__time { min-width: 58px; color: var(--nb-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.nb-pages__path { color: var(--nb-faint, #a1a1aa); font-size: 12px; }

/* Segment rows. */
.nb-row-actions__in { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; width: 100%; }
.nb-wrap td.nb-row-actions { text-align: right; white-space: nowrap; }

/* Settings: two choices side by side. */
.nb-pair { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.nb-wrap .nb-pair__item { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.nb-wrap .nb-pair__item label { font-size: 12px; font-weight: 600; color: var(--nb-ink); }
.nb-wrap .nb-tpl-row { align-items: flex-start; }
.nb-wrap .nb-tpl-row input[type="text"] { height: 36px; align-self: flex-start; }
.nb-wrap .form-table fieldset label, .nb-wrap .form-table td > label { line-height: 1.5; }
.nb-wrap .form-table td > label + br + label, .nb-wrap .form-table td fieldset label { display: inline-block; margin: 0 0 6px; }

/* App header on phones and small tablets: tabs scroll in one row, search beside settings. */
@media (max-width: 782px) {
	.nb-wrap .nb-kbd { display: none; }
	.nb-wrap .nb-hero__stats > div { border-left: 0; }
	.nb-wrap .nb-hero__stats > div:nth-child(even) { border-left: 1px solid var(--nb-line); }
}
/* Never wider than the screen. */
.nb-wrap .nb-col, .nb-wrap .nb-columns > *, .nb-wrap .nb-profile > * { min-width: 0; }
.nb-wrap .nb-form input[type="text"], .nb-wrap .nb-form input[type="email"], .nb-wrap .nb-form input[type="tel"], .nb-wrap .nb-form input[type="url"], .nb-wrap .nb-form select, .nb-wrap .nb-form textarea { max-width: 100%; }
@media (max-width: 1100px) {
	.nb-wrap .nb-profile, .nb-wrap .nb-profile.nb-profile--side-right, .nb-wrap .nb-columns, .nb-wrap .nb-columns--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.nb-wrap table.nb-table { display: block; overflow-x: auto; }
	.nb-wrap .tablenav .actions { flex-wrap: wrap; }
	.nb-wrap .tablenav .actions select { flex: 1 1 140px; max-width: 100%; }
}
/* Hidden labels in scrolling boards stay inside the board (they are positioned absolutely). */
.nb-wrap .nb-board, .nb-wrap .nb-card-mini, .nb-wrap .nb-table-scroll { position: relative; }
.nb-wrap .nb-meta__row { display: flex; gap: 8px; flex-wrap: wrap; }
.nb-wrap .nb-meta__row input { flex: 1 1 140px; min-width: 0; }
@media (max-width: 782px) { .nb-wrap .nb-columns--wide { grid-template-columns: minmax(0, 1fr); } .nb-wrap .nb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.nb-wrap .nb-jrow { flex-wrap: wrap; }
	.nb-wrap .nb-jrow__main { flex: 1 1 100%; }
	.nb-wrap .nb-jrow__stats { flex-wrap: wrap; gap: 8px; }
	.nb-wrap .nb-jrow__money { min-width: 0; }
}
/* Today: same width as the rest of the app; section intro sits right under its title. */
.nb-wrap .nb-today, .nb-wrap .nb-modules { max-width: none; }
.nb-wrap .nb-follow > .nb-card__head h2 { margin-bottom: 0; }
.nb-wrap .nb-follow > .nb-card__head + p.nb-muted { margin: 4px 0 8px; }
/* Views on the left, search on the right, one row. */
.nb-wrap ul.subsubsub { float: left; margin: 0 0 10px; }
.nb-wrap p.search-box { float: right; }
.nb-wrap ul.subsubsub + p.search-box + *, .nb-wrap p.search-box + .tablenav { clear: both; }
.nb-wrap .wp-list-table th.sortable a, .nb-wrap .wp-list-table th.sorted a { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.nb-wrap .tablenav .paging-input, .nb-wrap .tablenav .tablenav-paging-text { display: inline-flex; align-items: center; gap: 6px; }
.nb-wrap .tablenav.top { clear: both; }
/* Deal outcome: Won and Lost side by side. */
.nb-wrap .nb-deal-outcome { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.nb-wrap .nb-deal-outcome > h3, .nb-wrap .nb-deal-outcome > p, .nb-wrap .nb-deal-outcome form:has(.nb-deal-paid), .nb-wrap .nb-deal-outcome form:has(details[open]) { flex: 1 1 100%; }
.nb-wrap .nb-deal-outcome form { margin: 0; }
.nb-wrap .nb-deal-outcome .nb-deal-won { min-width: 88px; }
.nb-wrap .nb-deal-outcome details > summary.button { min-width: 88px; }
.nb-wrap .nb-deal-outcome details[open] { display: flex; flex-direction: column; gap: 8px; }
/* Boards fit five columns on a laptop. */
.nb-wrap .nb-board { grid-auto-columns: minmax(220px, 1fr); }
/* Simple tables: rows centred. */
.nb-wrap table.nb-table td, .nb-wrap table.nb-table th { vertical-align: middle; }
body:has(.nb-savebar) .nb-node-fab { bottom: 92px; }
@media (max-width: 782px) {
	/* Touch screens: row actions are always visible, compact. */
	.nb-wrap .wp-list-table .row-actions { position: static; left: auto; display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 6px 0 0; margin: 0; color: var(--nb-faint, #a1a1aa); }
	.nb-wrap .wp-list-table .row-actions span { padding: 0; font-size: 0; }
	.nb-wrap .wp-list-table .row-actions span a, .nb-wrap .wp-list-table .row-actions span button { font-size: 13px; }
	.nb-wrap .wp-list-table .toggle-row { top: 10px; }
	/* Touch-sized controls everywhere, the compact rows included. */
	.nb-wrap .nb-follow__do select, .nb-wrap .nb-task__do select, .nb-wrap .nb-task__do input[type="text"], .nb-wrap .nb-card-mini__move select, .nb-wrap .nb-hero__pickers select, .nb-wrap .nb-follow__do .button, .nb-wrap .nb-task__do .button, .nb-wrap .button-small { height: 40px; min-height: 40px; font-size: 14px; }
	.nb-wrap .nb-follow__do .nb-template-pick { max-width: none; }
}
/* File pickers look like our buttons. */
.nb-wrap input[type="file"] { font-size: 13px; color: var(--nb-muted); }
.nb-wrap input[type="file"]::file-selector-button { height: 34px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--nb-line); border-radius: var(--nb-r-sm); background: #fff; color: var(--nb-ink); font: 500 13px/1 inherit; cursor: pointer; }
.nb-wrap input[type="file"]::file-selector-button:hover { background: var(--nb-fill); }
.nb-wrap .nb-module__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nb-wrap .nb-module__actions form { margin: 0; }
.nb-wrap .nb-gdeals { margin-top: 16px; }
.nb-wrap .nb-gdeals__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.nb-wrap .nb-gdeals__row > span { display: flex; flex-direction: column; gap: 2px; }
.nb-wrap .nb-gdeals__row strong { color: var(--nb-ink); font-size: 13px; }

/* ==================================================================
 * 1.27: iOS look and feel. Nodebook takes over the screen (app mode),
 * with its own sidebar, large titles, grouped cards, pill buttons,
 * switches, segmented controls and colour that means something.
 * This layer comes last and wins over the older rules above.
 * ================================================================== */
.nb-wrap, .nb-welcome {
	--nb-ink: #1c1c1e; --nb-text: #1c1c1e; --nb-muted: #6e6e73; --nb-faint: #8e8e93;
	--nb-line: #e5e5ea; --nb-line-2: #d1d1d6; --nb-sep: #ededf0; --nb-fill: #f2f2f7; --nb-fill-2: #f7f7fa; --nb-btn: #e9e9ee;
	--nb-accent: #0071e3; --nb-accent-2: #0062c4; --nb-soft: #e8f0fe; --nb-link: #0071e3; --nb-ring: rgba(0, 113, 227, .22);
	--nb-ok: #1e7a37; --nb-ok-bg: #e3f7ea; --nb-warn: #a34700; --nb-warn-bg: #fff1e0; --nb-bad: #b4232f; --nb-bad-bg: #ffe5e7;
	--nb-violet: #7a2fa8; --nb-violet-bg: #f3e8fb;
	--nb-r: 20px; --nb-r-sm: 12px; --nb-r-xs: 10px; --nb-pill: 999px;
	--nb-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .045);
	--nb-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-family: var(--nb-font); color: var(--nb-text); -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
.nb-wrap h1, .nb-wrap h2, .nb-wrap h3, .nb-wrap h4, .nb-wrap button, .nb-wrap input, .nb-wrap select, .nb-wrap textarea, .nb-wrap .button { font-family: var(--nb-font); }
.nb-wrap a { color: var(--nb-link); text-decoration: none; }
.nb-wrap a:focus { box-shadow: none; outline: 2px solid var(--nb-ring); outline-offset: 2px; border-radius: 4px; }
.nb-wrap .nb-muted { color: var(--nb-muted); }

/* App mode: no WordPress menu, toolbar or footer on Nodebook screens. */
html:has(body.nb-appmode) { padding-top: 0 !important; }
body.nb-appmode, body.nb-appmode #wpwrap, body.nb-appmode #wpcontent, body.nb-appmode #wpbody-content { background: #f2f2f7; }
body.nb-appmode #wpadminbar, body.nb-appmode #adminmenumain, body.nb-appmode #wpfooter { display: none !important; }
body.nb-appmode #wpcontent, body.nb-appmode.auto-fold #wpcontent, body.nb-appmode.folded #wpcontent { margin-left: 0 !important; padding-left: 0 !important; }
body.nb-appmode #wpbody { padding-top: 0 !important; }
body.nb-appmode #wpbody-content { padding-bottom: 0; float: none; }
body.nb-appmode .nb-wrap.nb-app { margin: 0; }
body.nb-appmode #screen-meta-links { position: absolute; top: 14px; right: 24px; z-index: 20; margin: 0; visibility: hidden; }
body.nb-appmode #screen-meta-links.nb-screen-opts { position: static; visibility: visible; float: none; display: inline-flex; }
body.nb-appmode #screen-meta-links.nb-screen-opts .screen-meta-toggle { float: none; position: static; margin: 0; }
body.nb-appmode #screen-meta-links.nb-screen-opts .show-settings { min-height: 34px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; }
body.nb-appmode #screen-meta-links .show-settings { border: 0; border-radius: 999px; background: #e9e9ee; color: var(--nb-ink, #1c1c1e); box-shadow: none; padding: 4px 14px 4px 14px; }
body.nb-appmode #screen-meta { margin: 0 0 20px; border: 0; border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); position: relative; z-index: 19; }
body.nb-appmode #screen-meta-links + .wrap.nb-app, body.nb-appmode #screen-meta + #screen-meta-links + .wrap.nb-app { padding-top: 0; }

/* Frame: sidebar + content. */
.nb-wrap .nb-frame { display: flex; align-items: flex-start; min-height: 100vh; }
.nb-wrap .nb-main { flex: 1 1 auto; min-width: 0; box-sizing: border-box; max-width: 2400px; padding: 30px 40px 80px; }
.nb-app:not(.nb-app--full) .nb-side { top: 32px; height: calc(100vh - 32px); }

.nb-wrap .nb-side { position: sticky; top: 0; z-index: 30; width: 252px; height: 100vh; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding: 16px 12px 14px; background: rgba(246, 246, 248, .92); border-right: 1px solid var(--nb-line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); scrollbar-width: thin; }
.nb-wrap .nb-side__top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 14px; }
.nb-wrap .nb-brand, .nb-welcome .nb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--nb-ink); font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.nb-wrap .nb-brand:hover, .nb-wrap .nb-brand:focus { color: var(--nb-ink); }
.nb-wrap .nb-brand__badge { margin-left: -2px; padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg, #AF52DE, #5856D6); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.nb-wrap .nb-brand__mark, .nb-welcome .nb-brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--nb-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.nb-wrap .nb-brand__mark--img { background: transparent; overflow: hidden; }
.nb-wrap .nb-brand__mark--img img { width: 100%; height: 100%; object-fit: contain; }
.nb-wrap .nb-side__close { display: none; }
.nb-wrap .nb-shell__search { position: relative; display: flex; align-items: center; margin: 0 2px 12px; }
.nb-wrap .nb-shell__search .nb-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--nb-muted); pointer-events: none; }
.nb-wrap .nb-shell__search input[type="search"] { width: 100%; min-height: 36px; height: 36px; padding: 0 34px 0 32px; border: 0; border-radius: 10px; background: #e3e3e8; color: var(--nb-ink); font-size: 14px; box-shadow: none; }
.nb-wrap .nb-shell__search input[type="search"]::placeholder { color: var(--nb-muted); }
.nb-wrap .nb-shell__search input[type="search"]:focus { background: #fff; box-shadow: 0 0 0 3px var(--nb-ring); }
.nb-wrap .nb-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 0 6px; border-radius: 5px; background: rgba(0, 0, 0, .06); color: var(--nb-muted); font: 600 11px/18px var(--nb-font); }
.nb-wrap .nb-shell__search input:focus ~ .nb-kbd { display: none; }
.nb-wrap .nb-tabs, .nb-wrap .nb-side__lists, .nb-wrap .nb-shell__tools { display: flex; flex-direction: column; gap: 2px; }
.nb-wrap .nb-side a.nb-tab, .nb-wrap .nb-side a.nb-side__link, .nb-wrap .nb-side a.nb-tool { display: flex; align-items: center; gap: 10px; width: auto; height: auto; padding: 6px 10px; border-radius: 10px; color: var(--nb-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .15s; }
.nb-wrap .nb-side a.nb-tab:hover, .nb-wrap .nb-side a.nb-side__link:hover, .nb-wrap .nb-side a.nb-tool:hover { background: rgba(0, 0, 0, .05); color: var(--nb-ink); }
.nb-wrap .nb-side a.is-active, .nb-wrap .nb-side a.is-active:hover { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .07); font-weight: 600; color: var(--nb-ink); }
.nb-wrap .nb-tile { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.nb-wrap .nb-tile .nb-icon { stroke-width: 2.2; }
.nb-wrap .nb-tab__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wrap .nb-side .nb-tab__badge { margin-left: auto; min-width: 0; padding: 0; background: none; color: var(--nb-muted); font-size: 13px; font-weight: 500; line-height: 1; }
.nb-wrap .nb-side .nb-tab__badge.is-alert { padding: 3px 7px; border-radius: 999px; background: #ff3b30; color: #fff; font-size: 12px; font-weight: 600; }
.nb-wrap .nb-side__label { display: block; padding: 18px 10px 6px; font-size: 12px; font-weight: 600; color: var(--nb-muted); text-transform: uppercase; letter-spacing: .03em; }
.nb-wrap .nb-side__fill { flex: 1; min-height: 16px; }
.nb-wrap .nb-shell__tools { padding-top: 10px; border-top: 1px solid var(--nb-line); }
.nb-wrap .nb-side__wp, .nb-wrap .nb-side__me { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; color: var(--nb-muted); font-size: 13px; font-weight: 500; }
.nb-wrap .nb-side__me { color: var(--nb-ink); }
.nb-wrap .nb-side__wp:hover, .nb-wrap .nb-side__me:hover { background: rgba(0, 0, 0, .05); color: var(--nb-ink); }
.nb-wrap .nb-side__install { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--nb-accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.nb-wrap .nb-side__install:hover { background: rgba(0, 122, 255, .08); }
.nb-wrap .nb-side__install[hidden] { display: none; }
.nb-desktop__how { margin: 8px 0 0 18px; list-style: disc; }
.nb-desktop__how li { margin: 0 0 4px; }
.nb-desktop__done { color: #1f7a35; font-weight: 600; }
.nb-wrap .nb-topbar, .nb-wrap .nb-tabbar, .nb-wrap .nb-scrim { display: none; }

/* Page title: large, bold, iOS style. */
.nb-wrap .nb-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px -4px; color: var(--nb-accent); font-size: 15px; font-weight: 500; }
.nb-wrap .nb-back:hover { color: var(--nb-accent-2); }
.nb-wrap .nb-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 16px; margin: 0 0 22px; }
.nb-wrap .nb-head--bare { margin: 0; }
.nb-wrap .nb-head--bare:has(.nb-head__actions) { margin-bottom: 16px; }
.nb-wrap .nb-head h1, .nb-wrap .nb-head h1.wp-heading-inline { margin: 0; padding: 0; color: var(--nb-ink); font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.028em; }
.nb-wrap .nb-head__count { color: var(--nb-faint); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.nb-wrap .nb-head__sub { margin: 6px 0 0; color: var(--nb-muted); font-size: 15px; }
.nb-wrap .nb-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-wrap hr.wp-header-end { margin: 0; border: 0; height: 0; }

/* Segmented control: sub-tabs and the older .nb-seg toggles. */
.nb-wrap .nb-subtabs, .nb-wrap .nb-seg { display: inline-flex; gap: 2px; max-width: 100%; margin: 0 0 22px; padding: 2px; overflow-x: auto; background: #e3e3e8; border: 0; border-radius: 10px; scrollbar-width: none; }
.nb-wrap .nb-subtabs::-webkit-scrollbar, .nb-wrap .nb-seg::-webkit-scrollbar { display: none; }
.nb-wrap a.nb-subtab, .nb-wrap .nb-seg a, .nb-wrap .nb-seg button, .nb-wrap .nb-seg label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--nb-ink); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; box-shadow: none; cursor: pointer; }
.nb-wrap a.nb-subtab:hover, .nb-wrap .nb-seg a:hover { color: var(--nb-ink); background: rgba(255, 255, 255, .5); }
.nb-wrap a.nb-subtab.is-active, .nb-wrap .nb-seg a.is-active, .nb-wrap .nb-seg .is-active, .nb-wrap .nb-seg [aria-pressed="true"], .nb-wrap .nb-seg [aria-current="page"] { background: #fff; color: var(--nb-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
.nb-wrap .nb-subtab .nb-count { background: #ff3b30; color: #fff; }

/* Cards: white, round, a soft shadow instead of borders. */
.nb-wrap .nb-card, .nb-wrap .nb-hero, .nb-wrap .nb-kpi, .nb-wrap .nb-template { background: #fff; border: 0; border-radius: var(--nb-r); box-shadow: var(--nb-shadow); }
.nb-wrap .nb-card { padding: 20px; margin: 0 0 20px; }
.nb-wrap .nb-card h2 { margin: 0 0 12px; color: var(--nb-ink); font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.nb-wrap .nb-card h3 { margin: 0 0 12px; color: var(--nb-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nb-wrap .nb-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nb-wrap .nb-columns, .nb-wrap .nb-profile { gap: 20px; }
.nb-wrap details.nb-card > summary { cursor: pointer; list-style: none; }
.nb-wrap details.nb-card > summary::-webkit-details-marker { display: none; }

/* Buttons: pills. Main action in the accent colour. */
.nb-wrap .button, .nb-wrap .nb-btn, .nb-wrap a.page-title-action, .nb-wrap .page-title-action, .nb-welcome .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; height: auto; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--nb-btn); color: var(--nb-ink); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; text-shadow: none; box-shadow: none; vertical-align: middle; transition: background .15s, transform .1s; }
.nb-wrap .button:hover, .nb-wrap .nb-btn:hover, .nb-wrap .page-title-action:hover, .nb-welcome .button:hover { background: #dedee3; color: var(--nb-ink); border: 0; }
.nb-wrap .button:active, .nb-wrap .nb-btn:active { transform: scale(.98); }
.nb-wrap .button:focus, .nb-wrap .nb-btn:focus, .nb-wrap .page-title-action:focus { outline: 0; box-shadow: 0 0 0 3px var(--nb-ring); }
.nb-wrap .button-primary, .nb-wrap .nb-btn--primary, .nb-wrap .page-title-action.nb-btn--primary, .nb-welcome .button-primary { background: var(--nb-accent); color: #fff; }
.nb-wrap .button-primary:hover, .nb-wrap .nb-btn--primary:hover, .nb-wrap .page-title-action.nb-btn--primary:hover, .nb-welcome .button-primary:hover, .nb-wrap .button-primary:focus, .nb-welcome .button-primary:focus { background: var(--nb-accent-2); color: #fff; }
.nb-wrap .button-small, .nb-wrap .button.button-small { min-height: 28px; padding: 0 12px; font-size: 13px; }
.nb-wrap .button-large, .nb-welcome .button-hero { min-height: 44px; padding: 0 22px; font-size: 15px; }
.nb-wrap .button-link, .nb-wrap .button.button-link { min-height: 0; padding: 0; background: none; color: var(--nb-accent); font-weight: 500; border-radius: 4px; }
.nb-wrap .button-link:hover, .nb-wrap .button.button-link:hover { background: none; color: var(--nb-accent-2); }
.nb-wrap .button-link-delete, .nb-wrap .button-link.nb-danger { color: var(--nb-bad); }
.nb-wrap .nb-btn-danger, .nb-wrap .button.nb-btn-danger, .nb-wrap .button.delete { background: var(--nb-bad-bg); color: var(--nb-bad); }
.nb-wrap .nb-btn-danger:hover, .nb-wrap .button.nb-btn-danger:hover { background: #ffd6da; color: var(--nb-bad); }
.nb-wrap .button:disabled, .nb-wrap .button[disabled], .nb-wrap .button.disabled { opacity: .45; background: var(--nb-btn) !important; color: var(--nb-ink) !important; }
.nb-wrap .button .dashicons, .nb-wrap .button .nb-icon { margin: 0; }
.nb-wrap .nb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--nb-muted); cursor: pointer; }
.nb-wrap .nb-icon-btn:hover { background: var(--nb-fill); color: var(--nb-ink); }

/* Fields. */
.nb-wrap input[type="text"], .nb-wrap input[type="email"], .nb-wrap input[type="tel"], .nb-wrap input[type="url"], .nb-wrap input[type="number"], .nb-wrap input[type="date"], .nb-wrap input[type="time"], .nb-wrap input[type="datetime-local"], .nb-wrap input[type="password"], .nb-wrap input[type="search"], .nb-wrap select, .nb-wrap textarea, .nb-welcome input[type="text"], .nb-welcome input[type="email"], .nb-welcome select { min-height: 38px; padding: 0 12px; border: 1px solid var(--nb-line-2); border-radius: 10px; background-color: #fff; color: var(--nb-ink); font-size: 14px; line-height: 1.4; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.nb-wrap textarea { padding: 9px 12px; line-height: 1.5; }
.nb-wrap select { padding-right: 30px; }
.nb-wrap input:focus, .nb-wrap select:focus, .nb-wrap textarea:focus, .nb-welcome input:focus, .nb-welcome select:focus { border-color: var(--nb-accent); box-shadow: 0 0 0 3px var(--nb-ring); outline: 0; }
.nb-wrap input::placeholder, .nb-wrap textarea::placeholder { color: var(--nb-faint); }
.nb-wrap label { color: var(--nb-ink); }
.nb-wrap .nb-field label, .nb-wrap .form-table th, .nb-wrap .form-table th label { font-size: 13px; font-weight: 600; color: var(--nb-ink); }
.nb-wrap .description, .nb-wrap p.description { color: var(--nb-muted); font-size: 13px; }

/* Checkboxes and radios. */
.nb-wrap input[type="checkbox"]:not(.nb-switch), .nb-welcome input[type="checkbox"]:not(.nb-switch) { width: 20px; height: 20px; min-width: 20px; margin: 0 4px 0 0; border: 1.5px solid #c7c7cc; border-radius: 6px; background: #fff; box-shadow: none; vertical-align: middle; }
.nb-wrap input[type="checkbox"]:not(.nb-switch):checked, .nb-welcome input[type="checkbox"]:not(.nb-switch):checked { border-color: var(--nb-accent); background: var(--nb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.nb-wrap input[type="checkbox"]:not(.nb-switch):checked::before, .nb-welcome input[type="checkbox"]:not(.nb-switch):checked::before { content: none; display: none; }
.nb-wrap input[type="checkbox"]:focus, .nb-wrap input[type="radio"]:focus { box-shadow: 0 0 0 3px var(--nb-ring); outline: 0; }
.nb-wrap input[type="radio"], .nb-welcome input[type="radio"] { width: 20px; height: 20px; min-width: 20px; margin: 0 4px 0 0; border: 1.5px solid #c7c7cc; border-radius: 50%; background: #fff; box-shadow: none; vertical-align: middle; }
.nb-wrap input[type="radio"]:checked, .nb-welcome input[type="radio"]:checked { border: 6px solid var(--nb-accent); background: #fff; }
.nb-wrap input[type="radio"]:checked::before, .nb-welcome input[type="radio"]:checked::before { content: none; display: none; }

/* Switches: the iOS toggle. */
.nb-wrap input[type="checkbox"].nb-switch { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 51px; height: 31px; min-width: 51px; margin: 0; border: 0; border-radius: 16px; background: #e9e9ea; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); cursor: pointer; transition: background .2s; }
.nb-wrap input[type="checkbox"].nb-switch::before { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; margin: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.nb-wrap input[type="checkbox"].nb-switch:checked { background: #34c759; }
.nb-wrap input[type="checkbox"].nb-switch:checked::before { transform: translateX(20px); content: ''; }

/* Pills and badges: soft colour that means something. */
.nb-wrap .nb-pill, .nb-wrap .nb-badge, .nb-wrap .nb-chip-static, .nb-wrap .nb-owner { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 0; border-radius: 999px; background: var(--nb-fill); color: #48484a; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; vertical-align: middle; }
.nb-wrap .nb-pill--hot, .nb-wrap .nb-badge--prospect { background: var(--nb-warn-bg); color: var(--nb-warn); }
.nb-wrap .nb-pill--due, .nb-wrap .nb-pill--off { background: var(--nb-bad-bg); color: var(--nb-bad); }
.nb-wrap .nb-pill--ok, .nb-wrap .nb-pill--on, .nb-wrap .nb-pill--live, .nb-wrap .nb-badge--customer, .nb-wrap .nb-badge--smart { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-badge--lead, .nb-wrap .nb-pill--rec, .nb-wrap .nb-pill--pro { background: var(--nb-soft); color: #0058b0; }
.nb-wrap .nb-badge--subscriber, .nb-wrap .nb-badge--static { background: var(--nb-violet-bg); color: var(--nb-violet); }
.nb-wrap .nb-badge--inactive { background: var(--nb-fill); color: var(--nb-muted); }
.nb-wrap .nb-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--nb-fill); color: var(--nb-muted); font-size: 12px; font-weight: 600; line-height: 1.4; box-sizing: border-box; }
.nb-wrap .nb-chip span { padding: 6px 12px; border: 0; border-radius: 999px; background: #fff; color: var(--nb-ink); font-size: 13px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.nb-wrap .nb-chip input:checked + span { background: var(--nb-accent); color: #fff; font-weight: 600; border: 0; }

/* Avatars: round, two initials, a steady colour per person. */
.nb-wrap .nb-avatar, .nb-welcome .nb-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; flex: none; border-radius: 50%; background: #8e8e93; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.nb-wrap .nb-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.nb-wrap .nb-avatar--lg { width: 56px; height: 56px; font-size: 21px; }
.nb-wrap .nb-avatar--xl { width: 92px; height: 92px; font-size: 34px; }
.nb-wrap .nb-avatar--co { border-radius: 22%; }
.nb-wrap .nb-tone-0 { background: #ff9500; } .nb-wrap .nb-tone-1 { background: #0071e3; } .nb-wrap .nb-tone-2 { background: #34c759; } .nb-wrap .nb-tone-3 { background: #5856d6; }
.nb-wrap .nb-tone-4 { background: #ff2d55; } .nb-wrap .nb-tone-5 { background: #30b0c7; } .nb-wrap .nb-tone-6 { background: #af52de; } .nb-wrap .nb-tone-7 { background: #a2845e; }

/* Lists of people and things: grouped rows with hairline separators. */
.nb-wrap .nb-follow__list { margin: 0 -20px; padding: 0; list-style: none; }
.nb-wrap .nb-follow__row { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; padding: 14px 20px; border: 0; border-radius: 0; background: transparent; }
.nb-wrap .nb-follow__list > .nb-follow__row + .nb-follow__row::before { content: ''; position: absolute; top: 0; right: 0; left: 74px; height: 1px; background: var(--nb-sep); }
.nb-wrap .nb-follow__row:hover { background: var(--nb-fill-2); }
.nb-wrap .nb-follow__who { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nb-wrap .nb-follow__name { color: var(--nb-ink); font-size: 15px; font-weight: 600; }
.nb-wrap .nb-follow__name:hover { color: var(--nb-accent); }
.nb-wrap .nb-follow__why { color: var(--nb-muted); font-size: 13px; }
.nb-wrap .nb-follow__do { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nb-wrap .nb-follow__do form { margin: 0; }
.nb-wrap .nb-follow__row--bar { border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); margin: 0 0 20px; }
.nb-wrap .nb-follow > p.nb-muted { margin: -4px 0 6px; font-size: 13px; }
.nb-wrap .nb-follow__row > .nb-avatar { align-self: flex-start; margin-top: 2px; }

/* List tables (contacts, companies, segments): one rounded card, hairline rows. */
.nb-wrap .nb-table-scroll { overflow-x: auto; border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); }
.nb-wrap .wp-list-table { border: 0; border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.nb-wrap .nb-table-scroll .wp-list-table { box-shadow: none; border-radius: 0; }
.nb-wrap .wp-list-table thead th, .nb-wrap .wp-list-table thead td { padding: 12px 12px; border-bottom: 1px solid var(--nb-line); background: #fff; color: var(--nb-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nb-wrap .wp-list-table thead th a, .nb-wrap .wp-list-table thead th a span { color: var(--nb-muted); }
.nb-wrap .wp-list-table thead th.sorted a, .nb-wrap .wp-list-table thead th a:hover { color: var(--nb-ink); }
.nb-wrap .wp-list-table tbody tr, .nb-wrap .striped > tbody > :nth-child(odd), .nb-wrap .alternate { background: #fff; }
.nb-wrap .wp-list-table tbody td, .nb-wrap .wp-list-table tbody th { padding: 12px; border-top: 1px solid var(--nb-sep); box-shadow: none; vertical-align: middle; font-size: 14px; color: var(--nb-text); }
.nb-wrap .wp-list-table tbody tr:first-child td, .nb-wrap .wp-list-table tbody tr:first-child th { border-top: 0; }
.nb-wrap .wp-list-table tbody tr:hover, .nb-wrap .wp-list-table tbody tr:hover td { background: var(--nb-fill-2); }
.nb-wrap .wp-list-table .check-column { padding-left: 16px; width: 2.6em; }
.nb-wrap .wp-list-table .row-title { color: var(--nb-ink); font-size: 15px; font-weight: 600; }
.nb-wrap .wp-list-table .row-title:hover { color: var(--nb-accent); }
.nb-wrap .nb-row-id { display: flex; align-items: center; gap: 12px; }
.nb-wrap .nb-row-id .nb-avatar { width: 36px; height: 36px; font-size: 13px; }
.nb-wrap .nb-row-id__sub { display: block; color: var(--nb-muted); font-size: 13px; }
.nb-wrap .row-actions { color: var(--nb-faint); font-size: 12px; }
.nb-wrap .tablenav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; height: auto; margin: 0 0 12px; padding: 0; }
.nb-wrap .tablenav.bottom { margin: 12px 0 0; }
.nb-wrap .tablenav .tablenav-pages { margin: 0 0 0 auto; color: var(--nb-muted); }
.nb-wrap .tablenav .tablenav-pages .button, .nb-wrap .tablenav-pages span.tablenav-pages-navspan { min-width: 32px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.nb-wrap .subsubsub { margin: 0 0 14px; }
.nb-wrap .subsubsub li a { padding: 5px 12px; border-radius: 999px; background: transparent; color: var(--nb-ink); font-weight: 500; }
.nb-wrap .subsubsub li a.current { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-weight: 600; color: var(--nb-ink); }
.nb-wrap .subsubsub li a .count { color: var(--nb-muted); }
.nb-wrap .search-box input[type="search"] { border-radius: 10px; background-color: #fff; }
.nb-wrap table.nb-table { border: 0; border-collapse: separate; border-spacing: 0; }
.nb-wrap table.nb-table th { color: var(--nb-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--nb-line); }
.nb-wrap table.nb-table td { border-top: 1px solid var(--nb-sep); border-bottom: 0; }
.nb-wrap table.nb-table tr:first-child td { border-top: 0; }
.nb-wrap .form-table { background: transparent; }
.nb-wrap .form-table th { padding: 16px 20px 16px 0; }
.nb-wrap .form-table td { padding: 12px 0; }

/* KPI tiles: big numbers like iOS widgets. */
.nb-wrap .nb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 24px; }
.nb-wrap .nb-kpi { padding: 18px 20px; border: 0; }
.nb-wrap .nb-kpi strong { display: block; color: var(--nb-ink); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nb-wrap .nb-kpi span { color: var(--nb-muted); font-size: 13px; font-weight: 500; }
.nb-wrap .nb-kpis--j .nb-kpi { border: 0; }
.nb-wrap .nb-kpi--link:hover, .nb-wrap .nb-kpi--link:focus { border: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 12px 28px rgba(0, 0, 0, .08); }
.nb-wrap .nb-kpi--warn { background: #fff8ef; }

/* Timeline: tinted round icons. */
.nb-wrap .nb-timeline::before { left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--nb-sep); }
.nb-wrap .nb-tl { padding: 0 0 20px 46px; }
.nb-wrap .nb-tl__dot { left: 0; top: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--nb-fill); color: #48484a; box-shadow: 0 0 0 4px #fff; }
.nb-wrap .nb-tl__dot .dashicons { width: 16px; height: 16px; font-size: 16px; }
.nb-wrap .nb-tl--visit .nb-tl__dot, .nb-wrap .nb-tl--pageview .nb-tl__dot, .nb-wrap .nb-tl--click .nb-tl__dot { background: var(--nb-soft); color: #0058b0; }
.nb-wrap .nb-tl--form .nb-tl__dot, .nb-wrap .nb-tl--signup .nb-tl__dot, .nb-wrap .nb-tl--booking .nb-tl__dot, .nb-wrap .nb-tl--appointment .nb-tl__dot { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-tl--order .nb-tl__dot, .nb-wrap .nb-tl--deal .nb-tl__dot { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-tl--refund .nb-tl__dot { background: var(--nb-bad-bg); color: var(--nb-bad); }
.nb-wrap .nb-tl--note .nb-tl__dot { background: #fff8d6; color: #8a6a00; }
.nb-wrap .nb-tl--touch .nb-tl__dot, .nb-wrap .nb-tl--task .nb-tl__dot, .nb-wrap .nb-tl--followup .nb-tl__dot { background: var(--nb-warn-bg); color: var(--nb-warn); }
.nb-wrap .nb-tl--gathering .nb-tl__dot, .nb-wrap .nb-tl--event .nb-tl__dot { background: #ffe4ec; color: #c2185b; }
.nb-wrap .nb-tl--subscription .nb-tl__dot, .nb-wrap .nb-tl--segment .nb-tl__dot { background: var(--nb-violet-bg); color: var(--nb-violet); }
.nb-wrap .nb-tl__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.nb-wrap .nb-tl__head strong { font-size: 15px; font-weight: 600; }
.nb-wrap .nb-tl__meta { color: var(--nb-muted); font-size: 13px; }
.nb-wrap .nb-tl-day { margin: 4px 0 12px; padding-left: 46px; color: var(--nb-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; list-style: none; }
.nb-wrap .nb-quote { border-left: 0; border-radius: 12px; background: var(--nb-fill); padding: 10px 14px; }

/* Notices: soft banners inside the app. */
.nb-wrap .notice, .nb-wrap div.updated, .nb-wrap div.error { margin: 0 0 18px; padding: 10px 44px 10px 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--nb-shadow); position: relative; }
.nb-wrap .notice p { margin: 4px 0; font-size: 14px; }
.nb-wrap .notice-success { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .notice-error, .nb-wrap div.error { background: var(--nb-bad-bg); color: var(--nb-bad); }
.nb-wrap .notice-warning { background: var(--nb-warn-bg); color: var(--nb-warn); }
.nb-wrap .notice-info { background: var(--nb-soft); color: #0058b0; }
.nb-wrap .notice-dismiss { top: 50%; transform: translateY(-50%); }

/* Board: soft columns, white cards. */
.nb-wrap .nb-col-board, .nb-wrap .nb-board__col { background: #e9e9ee; border: 0; border-radius: 18px; }
.nb-wrap .nb-card-mini { border: 0; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04); }
.nb-wrap .nb-card-mini:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 8px 20px rgba(0, 0, 0, .08); }
.nb-wrap .nb-card-mini .nb-avatar { width: 32px; height: 32px; font-size: 12px; }
.nb-wrap .nb-card-mini__name { color: var(--nb-ink); font-weight: 600; }

/* Progress bars, rounded. */
.nb-wrap .nb-progress { height: 6px; border-radius: 3px; background: var(--nb-line); overflow: hidden; }
.nb-wrap .nb-progress > span, .nb-wrap .nb-progress > i, .nb-wrap .nb-progress__bar { border-radius: 3px; }

/* Empty states. */
.nb-wrap .nb-empty { padding: 48px 24px; text-align: center; border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); }
.nb-wrap .nb-empty h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* Motion: things settle in, never jump. */
@media (prefers-reduced-motion: no-preference) {
	.nb-wrap .nb-main > * { animation: nb-rise .28s ease-out both; }
	@keyframes nb-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Node's corner button sits above the tab bar on phones. */
.nb-wrap .nb-node-fab { box-shadow: none; background: none; border-radius: 50%; }

/* Phones and small tablets: top bar, tab bar, the sidebar as a sheet. */
@media (max-width: 782px) {
	.nb-wrap .nb-frame { display: block; min-height: 0; }
	.nb-wrap .nb-main { padding: 18px 16px 112px; }
	.nb-wrap .nb-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100001; width: min(300px, 86vw); height: 100%; transform: translateX(-105%); transition: transform .28s cubic-bezier(.3, .7, .4, 1); background: #f6f6f8; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
	.nb-wrap .nb-frame.is-side-open .nb-side { transform: none; }
	.nb-wrap .nb-side__close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #e3e3e8; color: var(--nb-ink); cursor: pointer; }
	.nb-wrap .nb-side .nb-shell__search { display: none; }
	.nb-wrap .nb-frame.is-side-open .nb-scrim { display: block; position: fixed; inset: 0; z-index: 100000; border: 0; padding: 0; background: rgba(0, 0, 0, .3); }
	.nb-wrap .nb-side a.nb-tab, .nb-wrap .nb-side a.nb-side__link, .nb-wrap .nb-side a.nb-tool { min-height: 44px; font-size: 16px; }
	.nb-wrap .nb-topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; margin: 0; padding: 10px 16px; background: rgba(242, 242, 247, .92); border-bottom: 1px solid var(--nb-line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
	.nb-wrap .nb-topbar .nb-brand__name { display: none; }
	.nb-wrap .nb-topbar .nb-shell__search { flex: 1; margin: 0; }
	.nb-wrap .nb-topbar .nb-kbd { display: none; }
	.nb-wrap .nb-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(249, 249, 251, .94); border-top: 1px solid #e0e0e5; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
	.nb-wrap .nb-tabbar a, .nb-wrap .nb-tabbar button { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; padding: 4px 0 0; border: 0; background: none; color: #8e8e93; font-size: 10px; font-weight: 600; text-decoration: none; cursor: pointer; }
	.nb-wrap .nb-tabbar a.is-active { color: var(--nb-accent); }
	.nb-wrap .nb-tabbar .nb-icon { stroke-width: 1.9; }
	.nb-wrap .nb-tabbar__badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; line-height: 18px; box-sizing: border-box; }
	.nb-wrap .nb-head h1, .nb-wrap .nb-head h1.wp-heading-inline { font-size: 30px; }
	.nb-wrap .nb-head { margin-bottom: 16px; }
	.nb-wrap .nb-card { padding: 16px; border-radius: 16px; }
	.nb-wrap .nb-follow__list { margin: 0 -16px; }
	.nb-wrap .nb-follow__row { padding: 12px 16px; }
	.nb-wrap .nb-follow__list > .nb-follow__row + .nb-follow__row::before { left: 70px; }
	.nb-wrap .button, .nb-wrap .nb-btn, .nb-wrap .page-title-action { min-height: 40px; }
	.nb-wrap .button-small, .nb-wrap .button.button-small { min-height: 34px; }
	.nb-wrap .nb-node-fab { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; }
	body.nb-appmode #screen-meta-links { display: none; }
	.nb-wrap .nb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.nb-wrap .nb-kpi { padding: 14px 16px; border-radius: 18px; }
	.nb-wrap .nb-kpi strong { font-size: 26px; }
}
body:has(.nb-frame.is-side-open) { overflow: hidden; }

/* Today: widgets. */
.nb-wrap .nb-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 24px; }
.nb-wrap .nb-widget { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 20px; border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); color: var(--nb-ink); transition: transform .15s, box-shadow .15s; }
.nb-wrap .nb-widget:hover { color: var(--nb-ink); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 14px 30px rgba(0, 0, 0, .08); }
.nb-wrap .nb-widget__label { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--nb-muted); font-size: 13px; font-weight: 600; }
.nb-wrap .nb-widget__label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wrap .nb-tile--sm { width: 22px; height: 22px; border-radius: 6px; }
.nb-wrap .nb-tile--row { width: 40px; height: 40px; border-radius: 11px; align-self: flex-start; margin-top: 2px; }
.nb-wrap .nb-widget__num { margin-top: 10px; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-wrap .nb-widget__num small { color: var(--nb-muted); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.nb-wrap .nb-widget__foot { color: var(--nb-muted); font-size: 13px; font-weight: 500; }
.nb-wrap .nb-widget__foot.is-up { color: #248a3d; font-weight: 600; }
.nb-wrap .nb-widget__foot.is-bad { color: #c93400; font-weight: 600; }
.nb-wrap .nb-widget__bar { display: block; height: 6px; margin: 6px 0 2px; border-radius: 3px; background: var(--nb-line); overflow: hidden; }
.nb-wrap .nb-widget__bar i { display: block; height: 100%; border-radius: 3px; background: #ff2d55; }

/* Round action buttons: call, WhatsApp, email. */
.nb-wrap .button.nb-act--round { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50%; }
.nb-wrap .button.nb-act--call { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .button.nb-act--whatsapp { background: #dff6e8; color: #128c4b; }
.nb-wrap .button.nb-act--email { background: var(--nb-soft); color: #0058b0; }
.nb-wrap .button.nb-act--call:hover { background: #cdf0d9; color: var(--nb-ok); }
.nb-wrap .button.nb-act--whatsapp:hover { background: #c9efd8; color: #128c4b; }
.nb-wrap .button.nb-act--email:hover { background: #d6e5fd; color: #0058b0; }
.nb-wrap .nb-act--round .nb-icon { stroke-width: 2; }
.nb-wrap .nb-follow__who .nb-owner, .nb-wrap .nb-follow__who .nb-pill { align-self: flex-start; }
.nb-wrap .nb-follow__do select { min-height: 34px; height: 34px; border-radius: 999px; padding: 0 28px 0 12px; font-size: 13px; background-color: #fff; }
.nb-wrap .nb-today__who { margin-left: auto; }
@media (max-width: 782px) {
	.nb-wrap .nb-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.nb-wrap .nb-widget { padding: 14px 16px; border-radius: 18px; }
	.nb-wrap .nb-widget__num { font-size: 26px; margin-top: 6px; }
	.nb-wrap .nb-follow__list .nb-follow__do { padding-left: 54px; }
	.nb-wrap .button.nb-act--round { width: 40px; height: 40px; min-height: 40px; }
}

/* Contact and company hero: big avatar, big name, action tiles like iOS Contacts. */
.nb-wrap .nb-hero { padding: 26px 28px 0; }
.nb-wrap .nb-hero__top { align-items: center; gap: 22px; }
.nb-wrap .nb-hero .nb-hero__id h2, .nb-wrap .nb-card.nb-hero h2 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.nb-wrap .nb-hero__id h2 .nb-pill { font-size: 12px; letter-spacing: 0; }
.nb-wrap .nb-hero__id .nb-pill--hot, .nb-wrap .nb-row-id .nb-pill--hot, .nb-wrap .nb-people .nb-pill--hot { text-transform: capitalize; }
.nb-wrap .nb-hero__sub { font-size: 15px; margin-top: 6px; }
.nb-wrap .nb-hero__sub a { color: var(--nb-muted); }
.nb-wrap .nb-hero__sub a:hover { color: var(--nb-accent); }
.nb-wrap .nb-hero__pickers select { min-height: 32px; height: 32px; border-radius: 999px; font-size: 13px; padding: 0 28px 0 12px; }
.nb-wrap .nb-hero__actions { gap: 10px; align-self: center; }
.nb-wrap .nb-tilebtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 72px; height: 64px; padding: 0; border: 0; border-radius: 14px; background: var(--nb-fill); color: var(--nb-accent); font: 500 12px/1 var(--nb-font); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.nb-wrap .nb-tilebtn:hover { background: #e6e6ec; color: var(--nb-accent-2); }
.nb-wrap .nb-tilebtn:active { transform: scale(.97); }
.nb-wrap .nb-tilebtn .nb-icon { stroke-width: 1.9; }
.nb-wrap .nb-tilebtn.nb-act--whatsapp { color: #128c4b; }
.nb-wrap .nb-tilebtn.is-watching { background: var(--nb-warn-bg); color: var(--nb-warn); }
.nb-wrap .nb-hero__actions .nb-act--whatsapp { background: var(--nb-fill) !important; color: #128c4b !important; }
.nb-wrap .nb-hero__actions [data-nb-template] { min-height: 34px; height: 34px; border-radius: 999px; font-size: 13px; }
.nb-wrap .nb-hero__stats { margin: 22px -28px 0; border-top: 1px solid var(--nb-sep); }
.nb-wrap .nb-hero__stats > div { padding: 14px 28px; border-left: 1px solid var(--nb-sep); }
.nb-wrap .nb-hero__stats dt { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.nb-wrap .nb-hero__stats dd { font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nb-wrap .nb-head--bare { align-items: center; margin-bottom: 14px; }
.nb-wrap .nb-head--bare .nb-back { margin: 0; }
@media (max-width: 782px) {
	.nb-wrap .nb-hero { padding: 20px 16px 0; }
	.nb-wrap .nb-hero__top { flex-direction: column; text-align: center; gap: 12px; }
	.nb-wrap .nb-hero__id { flex: none; width: 100%; }
	.nb-wrap .nb-hero__id h2 { justify-content: center; font-size: 26px; }
	.nb-wrap .nb-hero__sub, .nb-wrap .nb-hero__pickers { justify-content: center; }
	.nb-wrap .nb-hero__actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 8px; }
	.nb-wrap .nb-hero__actions .nb-tilebtn { width: 100%; }
	.nb-wrap .nb-hero__actions [data-nb-template] { grid-column: 1 / -1; width: 100%; order: 9; }
	.nb-wrap .nb-hero__actions .nb-watch { display: contents; }
	.nb-wrap .nb-hero__stats { margin: 18px -16px 0; }
	.nb-wrap .nb-hero__stats > div { padding: 12px 16px; }
}

/* Gatherings: cards with a cover, a date badge, a seats ring and a paid bar. */
.nb-wrap .nb-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 0 0 28px; }
.nb-wrap a.nb-gcard { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); color: var(--nb-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.nb-wrap a.nb-gcard:hover, .nb-wrap a.nb-gcard:focus { color: var(--nb-ink); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 32px rgba(0, 0, 0, .09); border: 0; }
.nb-wrap .nb-gcard__cover { position: relative; display: block; height: 140px; }
.nb-wrap .nb-gcard__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nb-wrap .nb-gcard__date { position: absolute; left: 16px; bottom: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 54px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); color: var(--nb-ink); }
.nb-wrap .nb-gcard__date i { font-style: normal; font-size: 11px; font-weight: 700; color: #d70040; text-transform: uppercase; letter-spacing: .02em; }
.nb-wrap .nb-gcard__date b { font-size: 22px; line-height: 1; font-weight: 700; }
.nb-wrap .nb-gcard__tag { position: absolute; right: 14px; bottom: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nb-wrap .nb-gcard__tag.is-live { background: #34c759; }
.nb-wrap .nb-gcard__body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px; flex: 1; }
.nb-wrap .nb-gcard__title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.nb-wrap .nb-gcard__meta { color: var(--nb-muted); font-size: 13px; }
.nb-wrap .nb-gcard__nums { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.nb-wrap .nb-gcard__pay { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nb-wrap .nb-gcard__pay .nb-spots { margin: 0; }
.nb-wrap .nb-gcard__pay .nb-spots__bar { display: none; }
.nb-wrap .nb-gcard__nums:has(.nb-ring) .nb-spots { display: none; }
.nb-wrap .nb-gcard__pay .nb-spots__text, .nb-wrap .nb-gcard__money { color: var(--nb-ink); font-size: 13px; font-weight: 600; }
.nb-wrap .nb-gcard__bar { display: block; height: 6px; border-radius: 3px; background: var(--nb-line); overflow: hidden; }
.nb-wrap .nb-gcard__bar i { display: block; height: 100%; border-radius: 3px; background: #34c759; }
.nb-wrap .nb-gcard__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nb-wrap .nb-gcard__chips:empty { display: none; }
.nb-wrap .nb-chip-static--due { background: var(--nb-bad-bg); color: var(--nb-bad); }
.nb-wrap .nb-ring { --p: 0; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(#ff2d55 calc(var(--p) * 1%), var(--nb-line) 0); }
.nb-wrap .nb-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.nb-wrap .nb-ring b { position: relative; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nb-wrap .nb-gnew { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 300px; padding: 24px; border: 2px dashed var(--nb-line-2); border-radius: var(--nb-r); color: var(--nb-muted); text-align: center; font-size: 13px; line-height: 1.45; transition: border-color .15s, background .15s; }
.nb-wrap .nb-gnew:hover { border-color: var(--nb-accent); background: rgba(255, 255, 255, .6); color: var(--nb-muted); }
.nb-wrap .nb-gnew strong { color: var(--nb-ink); font-size: 15px; }
.nb-wrap .nb-gnew span:last-child { max-width: 230px; }
.nb-wrap .nb-tile--plus { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--nb-accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nb-wrap .nb-gpast__title { margin: 8px 0 8px 16px; color: var(--nb-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nb-wrap .nb-gpast { padding: 0; overflow: hidden; }
.nb-wrap .nb-gpast ul { margin: 0; }
.nb-wrap .nb-gpast li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 14px 20px; border-top: 1px solid var(--nb-sep); }
.nb-wrap .nb-gpast li:first-child { border-top: 0; }
.nb-wrap .nb-gpast li a strong { color: var(--nb-ink); font-size: 15px; }
.nb-wrap .nb-gpast__n { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--nb-ok-bg); color: var(--nb-ok); font-size: 12px; font-weight: 600; }
.nb-wrap .nb-gdeals { padding: 14px 20px; }
@media (max-width: 782px) {
	body.nb-appmode #screen-meta-links.nb-screen-opts, body.nb-appmode #screen-meta { display: none; }
	.nb-wrap .wp-list-table .row-actions { display: none; }
	.nb-wrap .tablenav .tablenav-pages { margin: 0; width: 100%; }
}
.nb-wrap .nb-gdeals, .nb-wrap .nb-gdeals__row { width: 100%; box-sizing: border-box; }

/* 1.28: deal hero — value, stage track, people. */
.nb-wrap .nb-deal-head { display: block; padding: 22px 24px; margin: 0 0 20px; }
.nb-wrap .nb-deal-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nb-wrap .nb-deal-head__state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 13px; }
.nb-wrap .nb-deal-head__reason { padding: 3px 9px; border-radius: 999px; background: var(--nb-fill); color: var(--nb-text); font-size: 12px; font-weight: 500; }
.nb-wrap .nb-deal-head__value { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--nb-ink); }
.nb-wrap .nb-deal-head--won .nb-deal-head__value { color: #248a3d; }
.nb-wrap .nb-deal-head--lost .nb-deal-head__value { color: var(--nb-faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.nb-wrap .nb-deal-state--open { background: var(--nb-soft); color: #0058b0; }
.nb-wrap .nb-deal-state--won { background: var(--nb-ok-bg); color: var(--nb-ok); }
.nb-wrap .nb-deal-state--lost { background: var(--nb-bad-bg); color: var(--nb-bad); }
.nb-wrap .nb-track { display: flex; gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; }
.nb-wrap .nb-track li { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nb-wrap .nb-track i { display: block; height: 8px; border-radius: 4px; background: var(--nb-line); }
.nb-wrap .nb-track span { color: var(--nb-faint); font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wrap .nb-track .is-done i { background: var(--nb-accent); }
.nb-wrap .nb-track .is-done span { color: var(--nb-muted); }
.nb-wrap .nb-track .is-now i { background: var(--nb-accent); box-shadow: 0 0 0 3px var(--nb-ring); }
.nb-wrap .nb-track .is-now span { color: var(--nb-ink); font-weight: 700; }
.nb-wrap .nb-deal-head--won .nb-track i { background: #34c759; }
.nb-wrap .nb-track .is-lost i { background: #d1d1d6; }
.nb-wrap .nb-deal-head__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--nb-sep); }
.nb-wrap .nb-who { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--nb-fill); color: var(--nb-ink); font-size: 13px; font-weight: 600; }
.nb-wrap .nb-who:hover { background: #e6e6ec; color: var(--nb-ink); }
.nb-wrap .nb-who .nb-avatar { width: 26px; height: 26px; font-size: 10px; }
.nb-wrap .nb-deal-head__who .nb-pill { padding: 6px 11px; font-size: 12px; }
@media (max-width: 782px) {
	.nb-wrap .nb-deal-head { padding: 18px 16px; }
	.nb-wrap .nb-deal-head__value { font-size: 28px; }
	.nb-wrap .nb-track span { display: none; }
	.nb-wrap .nb-track .is-now span { display: block; position: absolute; }
	.nb-wrap .nb-track { position: relative; }
	.nb-wrap .nb-track:has(.is-now) { padding-bottom: 20px; }
}

/* 1.28: Journeys — coloured tiles, a chart, the period as a segmented control. */
.nb-wrap .nb-jbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 20px; }
.nb-wrap .nb-jbar .nb-seg { margin: 0; }
.nb-wrap .nb-range a { padding: 7px 14px; }
.nb-wrap .nb-report-meta { margin: 0; font-size: 13px; }
.nb-wrap .nb-kpis--j .nb-kpi__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 8px; background: #0071e3; color: #fff; }
.nb-wrap .nb-kpis--j .nb-kpi__icon .nb-icon { stroke-width: 2.2; }
.nb-wrap .nb-kpis--j > :nth-child(2) .nb-kpi__icon { background: #34c759; }
.nb-wrap .nb-kpis--j > :nth-child(3) .nb-kpi__icon { background: #5856d6; }
.nb-wrap .nb-kpis--j > :nth-child(4) .nb-kpi__icon { background: #30b0c7; }
.nb-wrap .nb-kpis--j > :nth-child(5) .nb-kpi__icon { background: #ff9500; }
.nb-wrap .nb-kpis--j .nb-kpi strong { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.nb-wrap .nb-kpi__go { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nb-fill); color: var(--nb-muted); font-size: 13px; }
.nb-wrap .nb-chart { padding: 20px 22px 16px; }
.nb-wrap .nb-chart h2 .nb-muted { font-size: 13px; font-weight: 500; }
.nb-wrap .nb-chart__total { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nb-wrap .nb-chart__bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; margin-top: 8px; padding-bottom: 1px; border-bottom: 1px solid var(--nb-sep); }
.nb-wrap .nb-chart__col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.nb-wrap .nb-chart__col i { display: block; width: 100%; min-height: 0; border-radius: 5px 5px 2px 2px; background: #cfe2fb; transition: background .15s; }
.nb-wrap .nb-chart__col:hover i { background: #9cc4f5; }
.nb-wrap .nb-chart__col.is-now i { background: var(--nb-accent); }
.nb-wrap .nb-chart__axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--nb-faint); font-size: 12px; font-weight: 500; }
.nb-wrap li:nth-child(6n+1) > .nb-jrow .nb-jbar-track span { background: #0071e3; }
.nb-wrap li:nth-child(6n+2) > .nb-jrow .nb-jbar-track span { background: #34c759; }
.nb-wrap li:nth-child(6n+3) > .nb-jrow .nb-jbar-track span { background: #ff9500; }
.nb-wrap li:nth-child(6n+4) > .nb-jrow .nb-jbar-track span { background: #5856d6; }
.nb-wrap li:nth-child(6n+5) > .nb-jrow .nb-jbar-track span { background: #ff2d55; }
.nb-wrap li:nth-child(6n) > .nb-jrow .nb-jbar-track span { background: #30b0c7; }
@media (max-width: 782px) { .nb-wrap .nb-chart__bars { height: 110px; gap: 2px; } }

/* 1.28: Growth — an activity-style score ring and a ring per area. */
.nb-wrap .nb-ghead { padding: 22px 24px; border: 0; border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); }
.nb-wrap .nb-ghead__score { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 16px 0 6px; }
.nb-wrap .nb-ring { --c: #34c759; }
.nb-wrap .nb-ring { background: conic-gradient(var(--c, #ff2d55) calc(var(--p) * 1%), var(--nb-line) 0); }
.nb-wrap .nb-gcard .nb-ring, .nb-wrap .nb-gcard__nums .nb-ring { --c: #ff2d55; }
.nb-wrap .nb-ring--xl { width: 132px; height: 132px; flex-direction: column; gap: 2px; }
.nb-wrap .nb-ring--xl::before { inset: 12px; }
.nb-wrap .nb-ring--xl b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.nb-wrap .nb-ring--xl small { position: relative; color: var(--nb-muted); font-size: 12px; font-weight: 600; }
.nb-wrap .nb-ring--sm { width: 36px; height: 36px; color: var(--c); }
.nb-wrap .nb-ring--sm::before { inset: 4px; }
.nb-wrap .nb-ring--sm .nb-icon { position: relative; stroke-width: 2.2; }
.nb-wrap .nb-ghead__areas { flex: 1 1 360px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.nb-wrap .nb-ghead__areas li { margin: 0; }
.nb-wrap .nb-ghead__areas a { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--nb-fill); color: var(--nb-ink); font-size: 13px; font-weight: 600; }
.nb-wrap .nb-ghead__areas a:hover { background: #e9e9ee; color: var(--nb-ink); }
.nb-wrap .nb-ghead__area { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wrap .nb-ghead__areas b { color: var(--nb-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-wrap .nb-ghead__meta { margin: 10px 0 0; font-size: 13px; }
.nb-wrap .nb-ghead__meta .button-link { font-size: 13px; text-decoration: none; }
.nb-wrap .nb-growth .nb-gcard { padding: 20px 22px; }
.nb-wrap .nb-growth .nb-gcard h2 { display: flex; align-items: center; gap: 10px; }
.nb-wrap .nb-growth .nb-gcard h2 .nb-icon { width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 8px; background: #0071e3; color: #fff; stroke-width: 2.2; }
.nb-wrap #nb-g-ai h2 .nb-icon { background: #af52de; }
.nb-wrap #nb-g-content h2 .nb-icon { background: #ff9500; }
.nb-wrap #nb-g-sell h2 .nb-icon { background: #34c759; }
.nb-wrap #nb-g-reach h2 .nb-icon { background: #ff2d55; }
.nb-wrap #nb-g-site h2 .nb-icon { background: #30b0c7; }
@media (max-width: 782px) { .nb-wrap .nb-ghead__score { justify-content: center; } .nb-wrap .nb-ghead { padding: 18px 16px; } }

/* 1.28: Settings like the iOS Settings app — coloured tiles, switches on the right. */
.nb-wrap .nb-sections--side { top: 24px; gap: 2px; }
.nb-wrap .nb-sections--side a { padding: 6px 10px; border-radius: 10px; color: var(--nb-ink); }
.nb-wrap .nb-sections--side a .nb-tile { width: 26px; height: 26px; border-radius: 7px; }
.nb-wrap .nb-sections--side a .nb-tile .nb-icon { color: #fff; stroke-width: 2.2; }
.nb-wrap .nb-sections--side a:hover { background: rgba(0, 0, 0, .05); }
.nb-wrap .nb-sections--side a.is-active { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .07); font-weight: 600; }
.nb-wrap .nb-sections--side a.is-active .nb-tile .nb-icon { color: #fff; }
.nb-wrap .nb-settings-main .nb-card > h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.nb-wrap .form-table td > label:has(> input[type="checkbox"]) { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; max-width: 640px; font-size: 15px; }
.nb-wrap .form-table td > label > input[type="checkbox"] { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 51px; height: 31px; min-width: 51px; margin: 0; border: 0; border-radius: 16px; background: #e9e9ea; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); cursor: pointer; transition: background .2s; }
.nb-wrap .form-table td > label > input[type="checkbox"]::before { content: ''; display: block; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; margin: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .22s cubic-bezier(.3, .7, .4, 1); }
.nb-wrap .form-table td > label > input[type="checkbox"]:checked { background: #34c759; }
.nb-wrap .form-table td > label > input[type="checkbox"]:checked::before { content: ''; display: block; transform: translateX(20px); }
.nb-wrap .form-table td > label:has(> input[type="checkbox"]) + p.description, .nb-wrap .form-table td > label:has(> input[type="checkbox"]) ~ .description { max-width: 640px; }
.nb-wrap .nb-status .nb-pill--ok, .nb-wrap .nb-settings-main .nb-pill--ok { min-width: 44px; justify-content: center; }

.nb-wrap .nb-jbar-track { height: 6px; background: var(--nb-line); }
.nb-wrap .nb-jbar-track span { background: #0071e3; }
.nb-wrap .nb-chart__col.is-zero i { height: 3px !important; background: var(--nb-line); }
@media (max-width: 782px) {
	.nb-wrap .nb-savebar { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
	body:has(.nb-savebar) .nb-wrap .nb-node-fab { bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* Lists on the contact page: tap to add or remove, type to make a new one. */
.nb-wrap .nb-lists .nb-chips { margin: 0 0 12px; }
.nb-wrap .nb-lists .nb-chip input:checked + span::before { content: '✓ '; }
.nb-wrap .nb-lists__new { display: flex; gap: 8px; }
.nb-wrap .nb-lists__new input[type="text"] { flex: 1; min-width: 0; min-height: 34px; border-radius: 999px; padding: 0 14px; background-color: var(--nb-fill); border-color: transparent; }
.nb-wrap .nb-lists__new input[type="text"]:focus { background-color: #fff; }
.nb-wrap .nb-lists__status { margin: 8px 0 0; min-height: 1em; font-size: 12px; }
.nb-wrap .nb-lists__status:empty { display: none; }
.nb-wrap .nb-lists__empty { margin: 0 0 12px; font-size: 13px; }

/* 1.29: Settings → Integrations — grouped rows like iOS connected apps. */
.nb-wrap .nb-ints__sum { grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); }
.nb-wrap .nb-igroup { margin: 0 0 26px; }
.nb-wrap .nb-igroup__title { margin: 0 0 8px 16px; color: var(--nb-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nb-wrap .nb-ilist { margin: 0; padding: 0; list-style: none; overflow: hidden; }
.nb-wrap .nb-irow { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 20px; }
.nb-wrap .nb-irow + .nb-irow::before { content: ''; position: absolute; top: 0; right: 0; left: 74px; height: 1px; background: var(--nb-sep); }
.nb-wrap .nb-itile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.nb-wrap .nb-itile .nb-icon { stroke-width: 2.1; }
.nb-wrap .nb-irow.is-off .nb-itile { filter: grayscale(.85); opacity: .55; }
.nb-wrap .nb-irow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nb-wrap .nb-irow__main strong { color: var(--nb-ink); font-size: 15px; font-weight: 600; }
.nb-wrap .nb-irow__line, .nb-wrap .nb-irow__main > .nb-muted { display: flex; align-items: center; gap: 6px; color: var(--nb-muted); font-size: 13px; }
.nb-wrap .nb-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.nb-wrap .nb-irow__do { display: flex; align-items: center; gap: 10px; flex: none; }
.nb-wrap .nb-irow__do form { margin: 0; display: flex; }
.nb-wrap .nb-irow--note { padding: 10px 20px 12px 74px; font-size: 13px; }
.nb-wrap .nb-irow--note::before { left: 74px; }
.nb-wrap .nb-copy { display: flex; gap: 8px; margin-top: 8px; max-width: 560px; }
.nb-wrap .nb-copy input { flex: 1; min-width: 0; min-height: 32px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background-color: var(--nb-fill); border-color: transparent; }
.nb-wrap .nb-igroup__more { margin: 8px 0 0 16px; font-size: 13px; }
.nb-wrap .nb-igroup__more a { display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 782px) {
	.nb-wrap .nb-irow { flex-wrap: wrap; padding: 12px 16px; }
	.nb-wrap .nb-irow__main { flex: 1 1 calc(100% - 120px); }
	.nb-wrap .nb-irow__do { margin-left: 54px; }
	.nb-wrap .nb-irow__do:has(form:only-child) { margin-left: auto; }
	.nb-wrap .nb-irow--note { padding-left: 70px; }
	.nb-wrap .nb-ints__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nb-wrap .nb-irow--webhook { align-items: flex-start; }
.nb-wrap .nb-warn-line { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--nb-warn-bg); color: var(--nb-warn); font-size: 13px; font-weight: 500; max-width: 640px; }
.nb-wrap .nb-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; font-size: 15px; }
.nb-wrap .nb-irow__help { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; max-width: 640px; }

/* 1.30: Board and Deals as a list — the columns become grouped sections, the cards become rows. */
.nb-wrap .nb-layout a { gap: 6px; }
.nb-wrap .nb-layout .nb-icon { stroke-width: 2; }
.nb-wrap .nb-board--list { display: flex; flex-direction: column; align-items: stretch; gap: 22px; overflow: visible; padding-bottom: 0; }
.nb-wrap .nb-board--list .nb-col-board { display: block; width: auto; min-width: 0; max-width: none; min-height: 0; padding: 0; background: transparent; border-radius: 0; }
.nb-wrap .nb-board--list .nb-col-board > header { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0 0 8px 16px; padding: 0; }
.nb-wrap .nb-board--list .nb-col-board > header h2 { margin: 0; color: var(--nb-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nb-wrap .nb-board--list .nb-col-board__count { background: #e3e3e8; color: var(--nb-muted); }
.nb-wrap .nb-board--list .nb-col-board__total { margin: -4px 0 8px 16px; color: var(--nb-muted); font-size: 13px; font-weight: 600; }
.nb-wrap .nb-board--list .nb-col-board__total:empty { display: none; }
.nb-wrap .nb-board--list .nb-cards { display: block; min-height: 0; margin: 0; padding: 0; overflow: hidden; border-radius: var(--nb-r); background: #fff; box-shadow: var(--nb-shadow); }
.nb-wrap .nb-board--list .nb-card-mini { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 12px 20px; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
.nb-wrap .nb-board--list .nb-card-mini + .nb-card-mini::before { content: ''; position: absolute; top: 0; right: 0; left: 70px; height: 1px; background: var(--nb-sep); }
.nb-wrap .nb-board--list .nb-deal-card + .nb-deal-card::before { left: 20px; }
.nb-wrap .nb-board--list .nb-card-mini:hover { background: var(--nb-fill-2); box-shadow: none; }
.nb-wrap .nb-board--list .nb-card-mini__top { flex: 1 1 240px; min-width: 0; margin: 0; }
.nb-wrap .nb-board--list .nb-card-mini__meta { flex: 0 1 auto; margin: 0; }
.nb-wrap .nb-board--list .nb-card-mini__move { flex: none; width: 170px; margin: 0; }
.nb-wrap .nb-board--list .nb-card-mini__move select { width: 100%; }
.nb-wrap .nb-board--list .nb-deal-card > .nb-card-mini__name { flex: 1 1 220px; min-width: 0; }
.nb-wrap .nb-board--list .nb-deal-card > * { margin-top: 0; margin-bottom: 0; }
.nb-wrap .nb-board--list .nb-cards__empty { margin: 0; padding: 14px 20px; border: 0; border-radius: 0; text-align: left; font-size: 13px; }
.nb-wrap .nb-board--list .nb-col-board.is-over .nb-cards { box-shadow: 0 0 0 2px var(--nb-accent), var(--nb-shadow); }
.nb-wrap .nb-board--list .nb-col-board__more { display: inline-block; margin: 8px 0 0 16px; }
@media (max-width: 782px) {
	.nb-wrap .nb-board--list .nb-card-mini { padding: 12px 16px; }
	.nb-wrap .nb-board--list .nb-card-mini__move { width: 100%; }
}

/* 1.31: sample data. */
.nb-wrap .nb-try { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.nb-wrap .nb-try__text { flex: 1 1 360px; }
.nb-wrap .nb-try h2 { margin: 0 0 4px; }
.nb-wrap .nb-try p { margin: 0; }
.nb-wrap .nb-sample-form { margin: 0; }
.nb-wrap .nb-sample-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 12px 10px 16px; border-radius: 14px; background: #fff8e6; color: #7a5600; font-size: 13px; font-weight: 500; }
.nb-wrap .nb-sample-bar > span:nth-child(2) { flex: 1 1 280px; }
.nb-wrap .nb-sample-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9500; flex: none; }
.nb-wrap .nb-sample-bar .button { min-height: 30px; font-size: 13px; }

/* One-to-one email: compose sheet */
.nb-compose { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, .28); color: var(--nb-ink, #1c1c1e); }
.nb-compose::backdrop { background: rgba(0, 0, 0, .32); backdrop-filter: blur(2px); }
.nb-compose__form { display: flex; flex-direction: column; margin: 0; }
.nb-compose__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(60, 60, 67, .12); }
.nb-compose__head h2 { margin: 0; font-size: 15px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-compose__cancel { justify-self: start; color: var(--nb-accent, #0071e3) !important; font-size: 15px; text-decoration: none !important; }
.nb-compose__send { justify-self: end; border-radius: 999px !important; min-width: 72px; }
.nb-compose__to { margin: 0; padding: 10px 16px; border-bottom: 1px solid rgba(60, 60, 67, .12); color: var(--nb-muted, #6e6e73); font-size: 14px; }
.nb-compose__to::before { content: "To  "; white-space: pre; }
.nb-compose__tpl { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid rgba(60, 60, 67, .12); font-size: 13px; color: var(--nb-muted, #6e6e73); }
.nb-compose__tpl select { flex: 1; max-width: 320px; }
.nb-compose__subject, .nb-compose__body { width: 100%; border: 0 !important; border-bottom: 1px solid rgba(60, 60, 67, .12) !important; border-radius: 0 !important; box-shadow: none !important; padding: 12px 16px !important; font-size: 15px; background: transparent; }
.nb-compose__subject { font-weight: 600; }
.nb-compose__body { min-height: 220px; resize: vertical; line-height: 1.5; }
.nb-compose__foot { margin: 0; padding: 10px 16px 14px; font-size: 12px; color: var(--nb-muted, #6e6e73); }
.nb-compose__app { white-space: nowrap; }
.nb-compose__error { margin: 0 16px 14px; padding: 8px 12px; border-radius: 10px; background: #fff1f0; color: #b42318; font-size: 13px; }
.nb-compose__warn { margin: 0; padding: 8px 16px; background: #fff8e6; color: #7a5600; font-size: 13px; border-bottom: 1px solid rgba(60, 60, 67, .12); }

/* Automations */
.nb-wrap .nb-arow { display: block; }
.nb-wrap .nb-arow__form { margin: 0; }
.nb-wrap .nb-arow__top { display: flex; align-items: center; gap: 14px; }
.nb-wrap .nb-arow__does { color: var(--nb-ink); font-size: 13px; line-height: 1.45; max-width: 720px; }
.nb-wrap .nb-arow__more { margin: 6px 0 0 54px; }
.nb-wrap .nb-arow__more > summary:not(.button) { color: var(--nb-accent); font-size: 13px; font-weight: 500; }
.nb-wrap .nb-arow__more > summary span { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wrap .nb-arow__fields { display: flex; flex-direction: column; gap: 10px; max-width: 640px; padding: 12px 0 2px; }
.nb-wrap .nb-arow__fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--nb-muted); }
.nb-wrap .nb-arow__fields .nb-arow__days { flex-direction: row; align-items: center; gap: 10px; }
.nb-wrap .nb-arow__fields input[type=text], .nb-wrap .nb-arow__fields textarea { width: 100%; max-width: none; }
.nb-wrap .nb-arow__fields p { margin: 0; }
.nb-wrap .nb-arow__tags { font-size: 12px; }
@media (max-width: 782px) { .nb-wrap .nb-arow__more { margin-left: 0; } }
.nb-wrap .nb-arow__checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; border: 0; }
.nb-wrap .nb-arow__checks legend { width: 100%; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--nb-muted); }
.nb-wrap .nb-arow__checks label { flex-direction: row !important; align-items: center; gap: 6px !important; color: var(--nb-ink) !important; font-weight: 400 !important; }
.nb-wrap .nb-act--review .nb-icon { color: #ff9f0a; }
.nb-compose__tpl[hidden], .nb-compose__warn[hidden], .nb-compose__error[hidden] { display: none; }
.nb-compose__wa { white-space: nowrap; color: #1f8f4e; margin-left: 8px; }

/* @mentions and For you */
.nb-wrap .nb-mention { position: absolute; z-index: 50; min-width: 240px; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .05); }
.nb-wrap .nb-mention li { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.nb-wrap .nb-mention li span { color: var(--nb-muted); }
.nb-wrap .nb-mention li.is-on, .nb-wrap .nb-mention li:hover { background: var(--nb-accent); color: #fff; }
.nb-wrap .nb-mention li.is-on span, .nb-wrap .nb-mention li:hover span { color: rgba(255, 255, 255, .8); }
.nb-wrap .nb-foryou { margin-bottom: 18px; border-left: 3px solid var(--nb-accent); }
.nb-wrap .nb-foryou__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.nb-wrap .nb-foryou__head h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.nb-wrap .nb-foryou__head form { margin: 0; }
.nb-wrap .nb-foryou__list { margin: 0; padding: 0; list-style: none; }
.nb-wrap .nb-foryou__item { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 0; border-top: 1px solid var(--nb-sep); }
.nb-wrap .nb-foryou__item:first-child { border-top: 0; }
.nb-wrap .nb-foryou__item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-wrap .nb-foryou__item a { text-decoration: none; color: var(--nb-ink); }
.nb-wrap .nb-foryou__text { font-size: 13px; color: var(--nb-ink); }
.nb-wrap .nb-foryou__when { font-size: 12px; }
.nb-wrap .nb-sync__error, .nb-wrap .nb-irow__line.nb-sync__error { color: #b42318 !important; }
.nb-wrap [data-nb-logform] { position: relative; }
.nb-wrap .form-table tr[hidden] { display: none; }

/* Company: account activity rows (what and who on the left, when on the right) */
.nb-wrap .nb-tl__what { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nb-wrap .nb-tl__what > .nb-muted { font-size: 13px; }
.nb-wrap .nb-tl__when { flex: none; font-size: 13px; white-space: nowrap; }

/* Journeys: fixed columns so numbers, pills and bars line up across rows, with a label row on top */
.nb-wrap .nb-jcard { --nb-jcols: 72px 72px; }
.nb-wrap .nb-jcard--src3 { --nb-jcols: 72px 96px 96px; }
.nb-wrap .nb-jcard--src2 { --nb-jcols: 72px 96px; }
.nb-wrap .nb-jcard--pages { --nb-jcols: 78px 90px; }
.nb-wrap .nb-jcard--demand { --nb-jcols: 56px 64px 80px; }
.nb-wrap .nb-jcard--accounts { --nb-jcols: 56px 56px 60px 92px; }
.nb-wrap .nb-jcard .nb-jrow__stats { display: grid; grid-template-columns: var(--nb-jcols); gap: 0 10px; align-items: center; flex: none; }
.nb-wrap .nb-jc { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-wrap .nb-jc .nb-pill { margin: 0; }
.nb-wrap .nb-jhead { display: flex; align-items: center; gap: 14px; padding: 0 12px 6px; }
.nb-wrap .nb-jhead > span:first-child { flex: 1; }
.nb-wrap .nb-jhead .nb-jc { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--nb-muted); cursor: default; }
.nb-wrap .nb-jhead .nb-jrow__go { flex: none; width: 18px; }
.nb-wrap .nb-jrow__sub { margin-top: -3px; color: var(--nb-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-wrap .nb-jrow__money { min-width: 0; }
@media (max-width: 782px) {
	.nb-wrap .nb-jhead { display: none; }
	.nb-wrap .nb-jcard .nb-jrow__stats { display: flex; flex-wrap: wrap; gap: 8px; }
	.nb-wrap .nb-jc { justify-content: flex-start; }
}
.nb-wrap details.nb-jrow > summary:not(.button) { display: flex; width: 100%; box-sizing: border-box; margin: 0; padding: 12px; gap: 14px; }
.nb-wrap .nb-jc .nb-pill.is-hot { display: inline-flex; align-items: center; gap: 3px; }

/* Node's read: likely to buy, best time, rhythm */
.nb-wrap .nb-score { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; vertical-align: 1px; cursor: default; }
.nb-wrap .nb-score--hot { background: #ffe5e0; color: #c4320a; }
.nb-wrap .nb-score--warm { background: #fff1d6; color: #a15c00; }
.nb-wrap .nb-score--mild { background: var(--nb-fill, rgba(118, 118, 128, .12)); color: var(--nb-ink); }
.nb-wrap .nb-score--cold { background: var(--nb-fill, rgba(118, 118, 128, .12)); color: var(--nb-muted); }
.nb-wrap .nb-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--nb-sep, rgba(60, 60, 67, .12)); }
.nb-wrap .nb-insight { padding: 12px 20px; border-left: 1px solid var(--nb-sep, rgba(60, 60, 67, .12)); }
.nb-wrap .nb-insight:first-child { border-left: 0; }
.nb-wrap .nb-insight__label { display: block; color: var(--nb-muted); font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.nb-wrap .nb-insight__value { color: var(--nb-ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nb-wrap details.nb-insight > summary:not(.button) { display: block; padding: 0; margin: 0; background: none; cursor: pointer; }
.nb-wrap details.nb-insight > summary:not(.button)::after { display: none; }
.nb-wrap details.nb-insight > summary .nb-insight__value::after { content: '›'; color: var(--nb-faint, #aeaeb2); font-weight: 400; margin-left: 2px; }
.nb-wrap details.nb-insight[open] > summary .nb-insight__value::after { content: '⌄'; }
.nb-wrap .nb-insight__why { margin-top: 8px; font-size: 13px; }
.nb-wrap .nb-insight__why ul { margin: 4px 0 6px 18px; list-style: disc; }
.nb-wrap .nb-insight__why li { margin: 0 0 2px; }
.nb-wrap .nb-insight__why p { margin: 0; font-size: 12px; }
.nb-wrap .nb-insight--due .nb-insight__value { color: #a15c00; }
.nb-wrap .nb-follow__best { display: inline-flex; align-items: center; gap: 4px; color: var(--nb-muted); }
.nb-wrap .nb-follow__best strong { color: #248a3d; }
@media (max-width: 782px) { .nb-wrap .nb-insight { border-left: 0; border-top: 1px solid var(--nb-sep, rgba(60, 60, 67, .12)); } .nb-wrap .nb-insight:first-child { border-top: 0; } }
.nb-wrap .nb-follow__who > .nb-score { align-self: flex-start; width: auto; margin: 2px 0 0; }
.nb-wrap .nb-follow__head { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Pipelines */
.nb-pipes-intro { max-width: 640px; margin: 0 0 16px; }
.nb-pipelines { display: grid; gap: 16px; max-width: 720px; }
.nb-pipe__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.nb-pipe__head h2 { margin: 0; }
.nb-pipe__order { margin-left: auto; display: inline-flex; gap: 4px; }
.nb-pipe__order form { margin: 0; }
.nb-pipe__foot { display: flex; gap: 8px; align-items: center; }
.nb-pipe .nb-more { margin-top: 8px; border-top: 1px solid var(--nb-line); padding-top: 10px; }
.nb-pipe--new { border-style: dashed; }
.nb-pipe .nb-form p > label { display: block; margin: 0 0 4px; font-weight: 600; }
.nb-pipe .nb-form input[type=text] { max-width: 360px; width: 100%; }
.nb-pipe .nb-form__row { display: flex; gap: 16px; flex-wrap: wrap; }
