/* NeroCalendar Studio — visual inspirado no Excel / Microsoft 365 (Fluent). Prefixo nc-. */

.nc-app {
	/* Marca (verde Excel) */
	--nc-green: #107c41; --nc-green-hover: #0e6b38; --nc-green-press: #0b5a2f; --nc-green-dark: #185c37;
	--nc-green-tint: #e7f3ec; --nc-green-tint-2: #cfe8d9; --nc-on-green: #fff;
	/* Neutros */
	--nc-bg: #faf9f8; --nc-surface: #fff; --nc-surface-2: #f3f2f1; --nc-surface-3: #edebe9;
	--nc-line: #e1dfdd; --nc-line-strong: #c8c6c4; --nc-ink: #323130; --nc-ink-strong: #201f1e; --nc-muted: #605e5c; --nc-faint: #8a8886;
	/* Navegação lateral e barra superior */
	--nc-appbar: #185c37; --nc-rail: #eef5f1; --nc-rail-line: #d6e6dc; --nc-rail-hover: #e0eee6; --nc-rail-ink: #2b4a3a;
	/* Planilha */
	--nc-grid-line: #e1dfdd; --nc-head: #f3f2f1; --nc-head-ink: #444; --nc-we: #f8f7f6; --nc-out: #fbfaf9; --nc-cell: #fff;
	/* Categorias de data */
	--nc-c-national: #d13438; --nc-c-national-ink: #a4262c; --nc-c-national-bg: #fde7e9;
	--nc-c-optional: #c19c00; --nc-c-optional-ink: #7a5900; --nc-c-optional-bg: #fff4ce;
	--nc-c-religious: #8764b8; --nc-c-religious-ink: #5c2e91; --nc-c-religious-bg: #efe6fd;
	--nc-c-commemorative: #0078d4; --nc-c-commemorative-ink: #0f548c; --nc-c-commemorative-bg: #deecf9;
	--nc-radius: 4px; --nc-shadow: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11); --nc-shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.18), 0 1.2px 3.6px rgba(0,0,0,.14);
	--nc-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

	margin: 0; background: var(--nc-bg); color: var(--nc-ink); font-family: var(--nc-font); font-size: 14px; line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
[data-bs-theme="dark"] .nc-app {
	--nc-green: #3fb77a; --nc-green-hover: #5cc890; --nc-green-press: #7ad3a5; --nc-green-dark: #0f3d27;
	--nc-green-tint: #1c3a2b; --nc-green-tint-2: #25503a; --nc-on-green: #06150d;
	--nc-bg: #1b1a19; --nc-surface: #252423; --nc-surface-2: #2b2a29; --nc-surface-3: #323130;
	--nc-line: #3b3a39; --nc-line-strong: #565452; --nc-ink: #f3f2f1; --nc-ink-strong: #fff; --nc-muted: #c8c6c4; --nc-faint: #a19f9d;
	--nc-appbar: #0f3d27; --nc-rail: #1f2a24; --nc-rail-line: #2c3b33; --nc-rail-hover: #26352d; --nc-rail-ink: #cfe3d8;
	--nc-grid-line: #3b3a39; --nc-head: #2b2a29; --nc-head-ink: #d2d0ce; --nc-we: #292827; --nc-out: #201f1e; --nc-cell: #252423;
	--nc-c-national: #f1707b; --nc-c-national-ink: #ffa4ab; --nc-c-national-bg: #442726;
	--nc-c-optional: #e0b341; --nc-c-optional-ink: #f0c971; --nc-c-optional-bg: #433519;
	--nc-c-religious: #b49dde; --nc-c-religious-ink: #cdbbf2; --nc-c-religious-bg: #3a2d57;
	--nc-c-commemorative: #4ba3e3; --nc-c-commemorative-ink: #8cc7f5; --nc-c-commemorative-bg: #1b3a57;
	--nc-shadow: 0 1.6px 3.6px rgba(0,0,0,.4); --nc-shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.5);
}

.nc-app *:focus-visible { outline: 2px solid var(--nc-green); outline-offset: 1px; }
.nc-app a { color: var(--nc-green); text-decoration: none; }
.nc-app a:hover { text-decoration: underline; }
.nc-icon { width: 16px; height: 16px; flex: none; }
.nc-icon.is-lg { width: 20px; height: 20px; }
.nc-noscript { padding: 2rem; }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botões (Fluent) ---------- */
.nc-app .nc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--nc-faint); background: var(--nc-surface); color: var(--nc-ink); font: inherit; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none; -webkit-appearance: none; appearance: none; transition: background-color .12s, border-color .12s, box-shadow .12s; }
.nc-app .nc-btn .nc-icon { width: 16px; height: 16px; color: currentColor; }
.nc-app .nc-btn:hover { background: var(--nc-surface-2); text-decoration: none; color: var(--nc-ink-strong); }
.nc-app .nc-btn:active { background: var(--nc-surface-3); }
.nc-app .nc-btn:focus-visible { outline: 2px solid var(--nc-green); outline-offset: 2px; }
.nc-app .nc-btn[disabled], .nc-app .nc-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
/* Primário (verde): link <a> ou <button> sempre com texto e ícone na cor "sobre o verde" — o seletor "a" do app não pode vencer aqui. */
.nc-app .nc-btn-primary, .nc-app a.nc-btn-primary { background: var(--nc-green); border-color: var(--nc-green); color: var(--nc-on-green); }
.nc-app .nc-btn-primary:hover, .nc-app a.nc-btn-primary:hover { background: var(--nc-green-hover); border-color: var(--nc-green-hover); color: var(--nc-on-green); text-decoration: none; }
.nc-app .nc-btn-primary:active { background: var(--nc-green-press); border-color: var(--nc-green-press); color: var(--nc-on-green); }
.nc-app .nc-btn-primary:focus-visible { outline: 2px solid var(--nc-ink-strong); outline-offset: 2px; box-shadow: 0 0 0 4px var(--nc-green-tint-2); }
.nc-app .nc-btn-primary[disabled], .nc-app .nc-btn-primary[aria-disabled="true"] { background: var(--nc-green); color: var(--nc-on-green); opacity: .5; }
.nc-app .nc-btn-subtle { border-color: transparent; background: transparent; font-weight: 400; }
.nc-app .nc-btn-subtle:hover { background: var(--nc-surface-2); }
.nc-app .nc-btn-danger, .nc-app a.nc-btn-danger { border-color: #d13438; color: #a4262c; }
.nc-app .nc-btn-danger:hover, .nc-app a.nc-btn-danger:hover { background: #d13438; color: #fff; }
.nc-app .nc-btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
[data-bs-theme="dark"] .nc-app .nc-btn-danger { color: #ffa4ab; border-color: #f1707b; }
[data-bs-theme="dark"] .nc-app .nc-btn-danger:hover { background: #f1707b; color: #201f1e; }
.nc-iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 2px; color: inherit; cursor: pointer; }
.nc-iconbtn:hover { background: rgba(127,127,127,.18); }

/* ---------- Barra superior (Office) ---------- */
.nc-appbar { display: flex; align-items: center; gap: 4px; height: 48px; background: var(--nc-appbar); color: #fff; padding-right: 10px; position: sticky; top: 0; z-index: 30; }
.nc-appbar a, .nc-appbar .nc-iconbtn { color: #fff; }
.nc-waffle { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; }
.nc-waffle:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.nc-brand { display: flex; align-items: baseline; gap: 8px; color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .1px; }
.nc-brand:hover { text-decoration: none; }
.nc-brand small { font-weight: 400; opacity: .8; font-size: 13px; }
.nc-appbar-sp { flex: 1; }
.nc-app .nc-appbar .nc-btn, .nc-app .nc-appbar a.nc-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.nc-app .nc-appbar .nc-btn:hover, .nc-app .nc-appbar a.nc-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.nc-app .nc-appbar .nc-btn-primary, .nc-app .nc-appbar a.nc-btn-primary { background: #fff; color: var(--nc-green-dark); border-color: #fff; }
.nc-app .nc-appbar .nc-btn-primary:hover, .nc-app .nc-appbar a.nc-btn-primary:hover { background: #f3f2f1; color: var(--nc-green-dark); }
.nc-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--nc-green-dark); font-weight: 700; font-size: 12px; margin: 0 4px 0 6px; }
.nc-appbar-name { font-size: 13px; opacity: .92; margin-right: 6px; }
.nc-appbar a.nc-appbar-acc { color: inherit; text-decoration: none; }
.nc-appbar a.nc-appbar-acc:hover { text-decoration: underline; }

/* ---------- Corpo: navegação lateral + tela ---------- */
.nc-body { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: calc(100vh - 48px); }
.nc-rail { background: var(--nc-rail); border-right: 1px solid var(--nc-rail-line); padding: 14px 10px 20px; position: sticky; top: 48px; height: calc(100vh - 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.nc-rail-title { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nc-muted); }
.nc-rail-title:first-child { margin-top: 2px; }
.nc-rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nc-rail a { position: relative; display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px 0 14px; border-radius: 4px; color: var(--nc-rail-ink); font-size: 14px; }
.nc-rail a:hover { background: var(--nc-rail-hover); text-decoration: none; color: var(--nc-ink-strong); }
.nc-rail a .nc-icon { color: var(--nc-green); }
.nc-rail a[aria-current="page"] { background: var(--nc-surface); color: var(--nc-ink-strong); font-weight: 600; box-shadow: 0 0 0 1px var(--nc-rail-line), 0 1px 2px rgba(0,0,0,.06); }
.nc-rail a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--nc-green); }
.nc-soon-tag { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 9px; background: var(--nc-surface); color: var(--nc-muted); border: 1px solid var(--nc-rail-line); }
.nc-rail-foot { margin-top: auto; padding: 14px 10px 0; font-size: 12px; color: var(--nc-muted); }
.nc-rail-foot a { display: inline; height: auto; padding: 0; color: var(--nc-green); }

.nc-canvas { padding: 24px 32px 48px; min-width: 0; max-width: 1360px; width: 100%; }
.nc-page-title { font-size: 24px; font-weight: 600; margin: 0 0 4px; color: var(--nc-ink-strong); letter-spacing: -.1px; }
.nc-page-sub { color: var(--nc-muted); margin: 0 0 20px; max-width: 70ch; }
.nc-h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; color: var(--nc-ink-strong); }

.nc-card { background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); box-shadow: var(--nc-shadow); padding: 16px 18px; }
.nc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
.nc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 12px; background: var(--nc-green-tint); color: var(--nc-green-dark); font-size: 12px; font-weight: 600; }
[data-bs-theme="dark"] .nc-chip { color: var(--nc-green); }
.nc-skel { height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--nc-surface-2), var(--nc-surface-3), var(--nc-surface-2)); background-size: 200% 100%; margin: 8px 0; animation: nc-shimmer 1.4s infinite linear; }
@keyframes nc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Barra de mensagem (MessageBar) */
.nc-msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--nc-radius); border: 1px solid; margin-bottom: 14px; background: var(--nc-surface); }
.nc-msg .nc-icon { margin-top: 2px; }
.nc-msg.is-error { background: #fdf3f4; border-color: #f1bbbc; color: #750b1c; }
.nc-msg.is-warn { background: #fffaf0; border-color: #f2d98a; color: #5c3d00; }
.nc-msg.is-info { background: #f0f6fc; border-color: #b4d6fa; color: #004578; }
.nc-msg.is-ok { background: var(--nc-green-tint); border-color: var(--nc-green-tint-2); color: var(--nc-green-dark); }
[data-bs-theme="dark"] .nc-msg.is-error { background: #3b1c1f; border-color: #6e2a30; color: #ffb3b9; }
[data-bs-theme="dark"] .nc-msg.is-warn { background: #3a3019; border-color: #6b5a22; color: #f0d78b; }
[data-bs-theme="dark"] .nc-msg.is-info { background: #14293d; border-color: #24496b; color: #9fd0f7; }
[data-bs-theme="dark"] .nc-msg.is-ok { color: #8be0b4; }

/* Medidores */
.nc-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.nc-meter-top span { color: var(--nc-muted); font-size: 13px; }
.nc-meter-top strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nc-ink-strong); }
.nc-bar { height: 4px; background: var(--nc-surface-3); border-radius: 2px; overflow: hidden; }
.nc-bar > i { display: block; height: 100%; background: var(--nc-green); border-radius: 2px; transition: width .3s; }
.nc-bar.is-full > i { background: #d13438; }
.nc-meter small { display: block; margin-top: 8px; color: var(--nc-muted); font-size: 12px; }

/* Lista de recursos */
.nc-feat-group { margin-bottom: 18px; }
.nc-feat-group h3 { font-size: 13px; font-weight: 600; color: var(--nc-muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.nc-feat { list-style: none; margin: 0; padding: 0; }
.nc-feat li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--nc-line); }
.nc-feat li:first-child { border-top: 0; }
.nc-feat .is-on .nc-icon { color: var(--nc-green); }
.nc-feat .is-off { color: var(--nc-muted); }
.nc-feat .nc-feat-note { margin-left: auto; font-size: 12px; color: var(--nc-muted); }

/* Segmentado (tema etc.) */
.nc-seg { display: inline-flex; border: 1px solid var(--nc-faint); border-radius: 2px; overflow: hidden; }
.nc-seg button { height: 32px; padding: 0 16px; border: 0; background: var(--nc-surface); color: var(--nc-ink); font: inherit; cursor: pointer; }
.nc-seg button + button { border-left: 1px solid var(--nc-line-strong); }
.nc-seg button:hover { background: var(--nc-surface-2); }
.nc-seg button[aria-pressed="true"] { background: var(--nc-green); color: var(--nc-on-green); font-weight: 600; }

/* Estado vazio */
.nc-empty { display: flex; gap: 16px; align-items: flex-start; }
.nc-empty > .nc-icon { width: 32px; height: 32px; color: var(--nc-green); }
.nc-empty strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--nc-ink-strong); }
.nc-empty p { margin: 0; color: var(--nc-muted); max-width: 60ch; }

/* Andamento (admin) */
.nc-phases { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.nc-phases li { display: flex; gap: 8px; align-items: center; padding: 4px 0; break-inside: avoid; }
.nc-phases .is-done .nc-icon { color: var(--nc-green); }
.nc-phases .is-todo { color: var(--nc-muted); }

/* Tabelas simples (histórico de utilização) */
.nc-plans-wrap { overflow-x: auto; padding: 0; }
.nc-plans { width: 100%; min-width: 560px; border-collapse: collapse; }
.nc-plans th, .nc-plans td { padding: 10px 14px; border-bottom: 1px solid var(--nc-line); text-align: center; }
.nc-plans th:first-child, .nc-plans td:first-child { text-align: left; }
.nc-plans thead th { background: var(--nc-green); color: var(--nc-on-green); font-weight: 600; font-size: 15px; vertical-align: bottom; border-bottom: 0; }
.nc-plans thead th small { display: block; font-weight: 400; opacity: .85; font-size: 12px; }
.nc-plans tbody tr:nth-child(even) td { background: var(--nc-surface-2); }
.nc-plans .nc-yes { color: var(--nc-green); }
.nc-plans .nc-no { color: var(--nc-faint); }
.nc-plans td.nc-num { font-variant-numeric: tabular-nums; }

/* Datas próximas (dashboard) */
.nc-list { list-style: none; margin: 0; padding: 0; }
.nc-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--nc-line); }
.nc-list li:first-child { border-top: 0; }
.nc-datebadge { width: 44px; flex: none; text-align: center; border: 1px solid var(--nc-line); border-radius: 4px; overflow: hidden; background: var(--nc-surface); }
.nc-datebadge b { display: block; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--nc-ink-strong); }
.nc-datebadge span { display: block; font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; color: #fff; background: var(--nc-c-national); line-height: 15px; }
.nc-datebadge.is-optional span { background: var(--nc-c-optional); }
.nc-datebadge.is-event span { background: var(--nc-c-commemorative); }
.nc-list .nc-li-main { min-width: 0; flex: 1; }
.nc-list .nc-li-main div:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-list .nc-li-sub { color: var(--nc-muted); font-size: 12px; }

/* ---------- Faixa de comandos (ribbon) ---------- */
.nc-cmd { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); padding: 4px; margin-bottom: 12px; box-shadow: var(--nc-shadow); }
.nc-cmd-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: var(--nc-ink); font: inherit; cursor: pointer; white-space: nowrap; }
.nc-cmd-btn:hover { background: var(--nc-surface-2); }
.nc-cmd-btn[aria-pressed="true"] { background: var(--nc-green-tint); color: var(--nc-green-dark); font-weight: 600; }
[data-bs-theme="dark"] .nc-cmd-btn[aria-pressed="true"] { color: var(--nc-green); }
.nc-cmd-btn[disabled] { opacity: .45; cursor: not-allowed; }
.nc-app .nc-cmd-btn.is-primary, .nc-app a.nc-cmd-btn.is-primary { background: var(--nc-green); color: var(--nc-on-green); font-weight: 600; }
.nc-app .nc-cmd-btn.is-primary:hover, .nc-app a.nc-cmd-btn.is-primary:hover { background: var(--nc-green-hover); color: var(--nc-on-green); text-decoration: none; }
.nc-cmd-sep { width: 1px; height: 20px; background: var(--nc-line); margin: 0 6px; }
.nc-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--c); display: inline-block; }

/* ---------- Pasta de trabalho (planilha) ---------- */
.nc-wb { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 16px; align-items: start; }
.nc-sheet { background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); box-shadow: var(--nc-shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.nc-formula { display: flex; align-items: stretch; height: 30px; border-bottom: 1px solid var(--nc-line); background: var(--nc-surface); font-size: 13px; }
.nc-namebox { display: grid; place-items: center; width: 76px; border-right: 1px solid var(--nc-line); font-weight: 600; color: var(--nc-ink-strong); background: var(--nc-surface); }
.nc-fx { display: grid; place-items: center; width: 36px; font-family: "Times New Roman", serif; font-style: italic; font-weight: 700; color: var(--nc-green); border-right: 1px solid var(--nc-line); }
.nc-formula-text { flex: 1; display: flex; align-items: center; padding: 0 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: "Cascadia Mono", Consolas, "Courier New", monospace; font-size: 12.5px; }
.nc-formula-text.is-text { font-family: inherit; font-size: 13px; }

.nc-xl-scroll { overflow-x: auto; }
.nc-xl { display: grid; grid-template-columns: 40px repeat(7, minmax(92px, 1fr)); min-width: 700px; border-bottom: 1px solid var(--nc-grid-line); }
.nc-xl.has-wk { grid-template-columns: 40px 52px repeat(7, minmax(92px, 1fr)); min-width: 760px; }
.nc-xl > * { border-right: 1px solid var(--nc-grid-line); border-bottom: 1px solid var(--nc-grid-line); min-width: 0; }
.nc-xl-corner, .nc-xl-col, .nc-xl-row { background: var(--nc-head); color: var(--nc-head-ink); font-size: 12px; display: grid; place-items: center; user-select: none; }
.nc-xl-corner { height: 22px; }
.nc-xl-col { height: 22px; }
.nc-xl-col.is-sel, .nc-xl-row.is-sel { background: var(--nc-green-tint-2); color: var(--nc-green-dark); font-weight: 700; box-shadow: inset 0 -2px 0 var(--nc-green); }
.nc-xl-row.is-sel { box-shadow: inset -2px 0 0 var(--nc-green); }
[data-bs-theme="dark"] .nc-xl-col.is-sel, [data-bs-theme="dark"] .nc-xl-row.is-sel { color: var(--nc-ink-strong); }
.nc-xl-dow { background: var(--nc-green); color: var(--nc-on-green); font-weight: 600; text-align: center; padding: 6px 4px; font-size: 13px; text-transform: capitalize; }
.nc-xl-dow.is-wk { background: var(--nc-green-dark); }
[data-bs-theme="dark"] .nc-xl-dow.is-wk { background: #1c5a3b; color: #fff; }
.nc-xl-wk { background: var(--nc-head); color: var(--nc-muted); display: grid; place-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.nc-xl-cell { position: relative; min-height: 104px; padding: 4px 5px 6px; background: var(--nc-cell); cursor: cell; outline: none; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.nc-xl-cell.is-we { background: var(--nc-we); }
.nc-xl-cell.is-out { background: var(--nc-out); color: var(--nc-faint); }
.nc-xl-cell.is-out .nc-pill { opacity: .72; }
.nc-xl-cell.is-national { background: var(--nc-c-national-bg); }
.nc-xl-cell.is-optional:not(.is-national) { background: var(--nc-c-optional-bg); }
.nc-xl-cell:hover { box-shadow: inset 0 0 0 1px var(--nc-line-strong); }
.nc-xl-cell[aria-selected="true"] { z-index: 2; box-shadow: inset 0 0 0 2px var(--nc-green); }
.nc-xl-cell[aria-selected="true"]::after { content: ""; position: absolute; right: 0; bottom: 0; width: 7px; height: 7px; background: var(--nc-green); border: 1px solid var(--nc-surface); }
.nc-day { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; align-self: flex-start; }
.nc-xl-cell.is-today .nc-day { background: var(--nc-green); color: var(--nc-on-green); }
.nc-more { font-size: 11.5px; color: var(--nc-muted); padding-left: 4px; }

.nc-pill { --c: var(--nc-c-commemorative); display: block; font-size: 11.5px; line-height: 17px; padding: 0 6px; border-radius: 2px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, var(--nc-surface)); color: var(--nc-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-pill.is-national { --c: var(--nc-c-national); color: var(--nc-c-national-ink); background: color-mix(in srgb, var(--nc-c-national) 18%, var(--nc-surface)); font-weight: 600; }
.nc-pill.is-optional { --c: var(--nc-c-optional); color: var(--nc-c-optional-ink); background: color-mix(in srgb, var(--nc-c-optional) 22%, var(--nc-surface)); }
.nc-pill.is-religious { --c: var(--nc-c-religious); color: var(--nc-c-religious-ink); background: color-mix(in srgb, var(--nc-c-religious) 16%, var(--nc-surface)); }
.nc-pill.is-commemorative { --c: var(--nc-c-commemorative); color: var(--nc-c-commemorative-ink); background: color-mix(in srgb, var(--nc-c-commemorative) 14%, var(--nc-surface)); }
.nc-pill.is-cont { border-left-width: 0; color: transparent; }
.nc-pill.is-mark { padding: 0; height: 6px; margin-top: 3px; border-left: 0; background: var(--c); border-radius: 3px; width: 28px; }
.nc-pill .nc-icon { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }

.nc-tabs { display: flex; align-items: stretch; background: var(--nc-surface-2); border-top: 1px solid var(--nc-line); overflow-x: auto; min-height: 36px; }
.nc-tabs-year { display: flex; align-items: center; gap: 2px; padding: 0 6px; border-right: 1px solid var(--nc-line); background: var(--nc-surface-2); position: sticky; left: 0; z-index: 3; }
.nc-tabs-year b { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.nc-tab { border: 0; border-right: 1px solid var(--nc-line); background: transparent; padding: 0 14px; color: var(--nc-muted); font: inherit; cursor: pointer; text-transform: capitalize; white-space: nowrap; }
.nc-tab:hover { background: var(--nc-surface-3); color: var(--nc-ink-strong); }
.nc-tab[aria-selected="true"] { background: var(--nc-surface); color: var(--nc-green-dark); font-weight: 600; box-shadow: inset 0 -3px 0 var(--nc-green); }
[data-bs-theme="dark"] .nc-tab[aria-selected="true"] { color: var(--nc-green); }

/* Painel de tarefas (direita) */
.nc-pane { background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); box-shadow: var(--nc-shadow); position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; }
.nc-pane-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--nc-line); }
.nc-pane-head h2 { font-size: 16px; font-weight: 600; margin: 0; color: var(--nc-ink-strong); text-transform: none; }
.nc-pane-head p { margin: 2px 0 0; color: var(--nc-muted); font-size: 13px; }
.nc-pane-body { padding: 12px 16px 16px; }
.nc-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--nc-line); }
.nc-item:first-child { border-top: 0; }
.nc-item-bar { width: 4px; border-radius: 2px; background: var(--c, var(--nc-c-commemorative)); flex: none; }
.nc-item-main { flex: 1; min-width: 0; }
.nc-item-title { font-weight: 600; word-break: break-word; }
.nc-item-sub { color: var(--nc-muted); font-size: 12.5px; }
.nc-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 9px; margin-top: 3px; color: var(--ink); background: var(--bg); }
.nc-tag.is-national { --ink: var(--nc-c-national-ink); --bg: var(--nc-c-national-bg); }
.nc-tag.is-optional { --ink: var(--nc-c-optional-ink); --bg: var(--nc-c-optional-bg); }
.nc-tag.is-religious { --ink: var(--nc-c-religious-ink); --bg: var(--nc-c-religious-bg); }
.nc-tag.is-commemorative { --ink: var(--nc-c-commemorative-ink); --bg: var(--nc-c-commemorative-bg); }

/* Formulário */
.nc-field { margin-bottom: 12px; }
.nc-field > label, .nc-field > .nc-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.nc-input, .nc-select, .nc-textarea { width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--nc-faint); border-radius: 2px; background: var(--nc-surface); color: var(--nc-ink); font: inherit; }
.nc-textarea { height: 64px; padding: 6px 8px; resize: vertical; }
.nc-input:hover, .nc-select:hover, .nc-textarea:hover { border-color: var(--nc-ink); }
.nc-input:focus, .nc-select:focus, .nc-textarea:focus { outline: none; border-color: var(--nc-green); box-shadow: 0 0 0 1px var(--nc-green); }
.nc-input.is-bad, .nc-select.is-bad { border-color: #d13438; }
.nc-err { color: #d13438; font-size: 12px; margin-top: 3px; }
[data-bs-theme="dark"] .nc-err { color: #ff8f96; }
.nc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nc-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--nc-surface); background: var(--c); box-shadow: 0 0 0 1px var(--nc-line-strong); cursor: pointer; padding: 0; }
.nc-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--nc-green); }
.nc-wd { display: flex; gap: 4px; }
.nc-wd button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--nc-faint); background: var(--nc-surface); color: var(--nc-ink); font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.nc-wd button[aria-pressed="true"] { background: var(--nc-green); border-color: var(--nc-green); color: var(--nc-on-green); font-weight: 700; }
.nc-check { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.nc-check input { width: 16px; height: 16px; accent-color: var(--nc-green); }
.nc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.nc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--nc-ink-strong); color: var(--nc-surface); padding: 10px 18px; border-radius: 4px; box-shadow: var(--nc-shadow-lg); font-weight: 600; }
[data-bs-theme="dark"] .nc-toast { background: #fff; color: #201f1e; }

/* ---------- Página pública ---------- */
.nc-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.nc-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 600; margin: 0 0 16px; letter-spacing: -.02em; color: var(--nc-ink-strong); }
.nc-hero p { color: var(--nc-muted); font-size: 17px; line-height: 1.55; max-width: 46ch; margin: 0 0 28px; }
.nc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nc-hero-actions .nc-btn { height: 40px; padding: 0 20px; font-size: 15px; }
.nc-pub-body { max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 48px; }
.nc-pub-foot { text-align: center; padding: 24px 16px 40px; color: var(--nc-muted); font-size: 13px; }
.nc-win { background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 8px; box-shadow: var(--nc-shadow-lg); overflow: hidden; }
.nc-win-title { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: var(--nc-appbar); color: #fff; font-size: 12.5px; }
.nc-win-title i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); }
.nc-win-title span { margin-left: 6px; opacity: .92; }
.nc-win .nc-xl { min-width: 0; grid-template-columns: 30px repeat(7, 1fr); }
.nc-win .nc-xl-cell { min-height: 56px; cursor: default; }
.nc-win .nc-xl-cell[aria-selected="true"] { cursor: cell; }

@media (max-width: 1100px) { .nc-wb { grid-template-columns: 1fr; } .nc-pane { position: static; max-height: none; } }
@media (max-width: 900px) {
	.nc-body { grid-template-columns: 1fr; }
	/* Navegação vira barra inferior fixa (polegar alcança), com ícone + rótulo curto. */
	.nc-rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; height: auto; flex-direction: row; align-items: stretch; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); gap: 0; border-right: 0; border-top: 1px solid var(--nc-rail-line); background: var(--nc-surface); box-shadow: 0 -2px 8px rgba(0,0,0,.08); overflow: visible; }
	.nc-rail > ul { flex: 1; flex-direction: row; justify-content: space-around; gap: 0; }
	.nc-rail > ul > li { flex: 1; min-width: 0; }
	.nc-rail > ul > li.is-soon { display: none; }
	.nc-rail-title, .nc-rail-foot, .nc-soon-tag { display: none; }
	.nc-rail a { flex-direction: column; justify-content: center; gap: 2px; height: 52px; padding: 0 2px; font-size: 11px; line-height: 1.1; text-align: center; border-radius: 8px; white-space: normal; }
	.nc-rail a .nc-icon { width: 22px; height: 22px; }
	.nc-rail a[aria-current="page"] { box-shadow: none; background: var(--nc-green-tint); color: var(--nc-green-dark); }
	.nc-rail a[aria-current="page"]::before { display: none; }
	.nc-canvas { padding: 16px 12px calc(84px + env(safe-area-inset-bottom)); }
	.nc-pub-body { padding-bottom: 32px; }
	.nc-hero { grid-template-columns: 1fr; }
	.nc-phases { columns: 1; }
	.nc-appbar-name, .nc-appbar .nc-btn-sm:not(.nc-btn-primary) { display: none; }
	.nc-xl-cell { min-height: 76px; }
}
@media (max-width: 600px) {
	.nc-page-title { font-size: 22px; }
	.nc-btn { min-height: 40px; }
	.nc-btn-sm { min-height: 36px; }
	.nc-iconbtn { width: 40px; height: 40px; }
	.nc-input, .nc-select, .nc-textarea { height: 40px; font-size: 16px; } /* 16px evita zoom automático no iOS */
	.nc-xl-cell { min-height: 58px; padding: 2px; }
	.nc-xl-cell .nc-pill { font-size: 9.5px; padding: 0 3px; }
	.nc-formula { display: none; }
	.nc-xl { grid-template-columns: 22px repeat(7, minmax(0, 1fr)); min-width: 0; }
	.nc-xl.has-wk { grid-template-columns: 22px 26px repeat(7, minmax(0, 1fr)); min-width: 0; }
	.nc-xl-dow { padding: 6px 0; font-size: 11px; }
	.nc-xl-cell { font-size: 12px; }
	.nc-tabs { overflow-x: auto; flex-wrap: nowrap; }
	.nc-cmd { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .nc-app *, .nc-app *::before { transition: none !important; animation: none !important; } }

/* ====================================================================== Modelos / projetos (Fase 3) */
.nc-tag.is-adv { --ink: var(--nc-c-religious-ink); --bg: var(--nc-c-religious-bg); display: inline-flex; align-items: center; gap: 3px; margin-top: 0; }
.nc-tag.is-adv .nc-icon { width: 11px; height: 11px; }
.nc-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.nc-search { position: relative; flex: 1 1 240px; max-width: 420px; display: block; }
.nc-search .nc-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--nc-muted); pointer-events: none; }
.nc-search input { width: 100%; height: 34px; padding: 0 10px 0 34px; border: 1px solid var(--nc-faint); border-radius: 2px; background: var(--nc-surface); color: var(--nc-ink); font: inherit; }
.nc-search input:focus { outline: none; border-color: var(--nc-green); box-shadow: 0 0 0 1px var(--nc-green); }
.nc-seg button[aria-pressed="true"] { background: var(--nc-green-tint); color: var(--nc-green-dark); font-weight: 600; }
[data-bs-theme="dark"] .nc-seg button[aria-pressed="true"] { color: var(--nc-green); }
.nc-fchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.nc-fchip { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--nc-line-strong); background: var(--nc-surface); color: var(--nc-ink); font: inherit; font-size: 13px; cursor: pointer; }
.nc-fchip:hover { background: var(--nc-surface-2); }
.nc-fchip[aria-pressed="true"] { background: var(--nc-green); border-color: var(--nc-green); color: var(--nc-on-green); font-weight: 600; }
.nc-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.nc-tcard { display: flex; flex-direction: column; background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 6px; box-shadow: var(--nc-shadow); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.nc-tcard:hover { box-shadow: var(--nc-shadow-lg); transform: translateY(-2px); }
.nc-tcard-btn { position: relative; display: block; width: 100%; padding: 14px; border: 0; background: var(--nc-surface-2); cursor: pointer; }
.nc-tcard-star { position: absolute; top: 8px; right: 8px; color: #c19c00; }
.nc-tcard-star .nc-icon { fill: currentColor; }
.nc-tcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nc-tcard-body h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--nc-ink-strong); }
.nc-tcard-body p { margin: 0; font-size: 13px; color: var(--nc-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-tcard-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--nc-muted); }
.nc-tcard-note { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--nc-c-optional-ink); margin-top: auto; }
.nc-tcard-note .nc-icon { width: 14px; height: 14px; }
.nc-tcard.is-locked .nc-thumb { filter: saturate(.7); }
.nc-thumb, .nc-prev { position: relative; width: 100%; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); }
.nc-thumb > .nc-dp, .nc-prev > .nc-dp { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.nc-hint { font-size: 12.5px; color: var(--nc-muted); margin: 6px 0; }
.nc-linkbtn { font-weight: 600; text-decoration: underline; }

/* diálogo */
.nc-dlg-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.nc-dlg-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.nc-dlg { position: relative; width: min(1080px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--nc-surface); border-radius: 8px; box-shadow: var(--nc-shadow-lg); overflow: hidden; }
.nc-dlg-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--nc-line); }
.nc-dlg-head h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
.nc-dlg-body { padding: 18px 20px 20px; overflow-y: auto; }
.nc-dlg-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.nc-dlg-prev { position: sticky; top: 0; }
.nc-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--nc-muted); }
.nc-dlg-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nc-dlg-side p { margin: 0; color: var(--nc-muted); }
.nc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.nc-fieldset[disabled] { opacity: .55; }
.nc-fld label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.nc-fld .nc-err { color: #d13438; display: block; margin-top: 2px; }
.nc-fld.has-err .nc-input { border-color: #d13438; }
.nc-pals { display: flex; gap: 6px; flex-wrap: wrap; }
.nc-pal { display: grid; justify-items: center; gap: 2px; width: 62px; padding: 6px 2px 4px; border: 2px solid transparent; border-radius: 6px; background: transparent; color: var(--nc-ink); cursor: pointer; font: inherit; }
.nc-pal:hover { background: var(--nc-surface-2); }
.nc-pal[aria-checked="true"] { border-color: var(--nc-green); background: var(--nc-green-tint); }
.nc-pal-sw { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.nc-pal small { font-size: 10.5px; line-height: 1.1; text-align: center; }
.nc-dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 900px) {
	.nc-dlg-wrap { padding: 0; place-items: stretch; }
	.nc-dlg { width: 100%; height: 100%; border-radius: 0; }
	.nc-dlg-grid { grid-template-columns: 1fr; gap: 16px; }
	.nc-dlg-prev { position: static; }
	.nc-dlg-actions { position: sticky; bottom: 0; background: var(--nc-surface); padding: 10px 0 calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nc-line); }
	.nc-dlg-actions .nc-btn { flex: 1; }
	.nc-tgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
	.nc-tcard-btn { padding: 8px; }
	.nc-tcard-body p { display: none; }
	.nc-tcard-body { padding: 8px 10px 10px; }
	.nc-tcard-body h3 { font-size: 13.5px; }
}
.nc-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nc-pitem { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nc-pitem-main { display: flex; flex-direction: column; min-width: 0; }
.nc-pitem-main small { color: var(--nc-muted); }
.nc-pitem-act { display: flex; gap: 6px; }

/* páginas do documento (prévia/miniatura): 840 px lógicos, reduzidas por transform */
.nc-dp { --dp-primary: #107c41; --dp-accent: #c19c00; --dp-ink: #323130; --dp-paper: #fff; --dp-weekend: #f3f2f1; --dp-line: #c8c6c4;
	box-sizing: border-box; padding: 26px 30px; background: var(--dp-paper); color: var(--dp-ink); font: 12px/1.25 var(--nc-font); overflow: hidden; display: flex; flex-direction: column; }
.nc-dp > div { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nc-dp-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 3px solid var(--dp-primary); font-size: 30px; font-weight: 700; color: var(--dp-primary); }
.nc-dp-title small { font-size: 18px; font-weight: 400; color: var(--dp-accent); }
.nc-dp-mt { display: flex; flex-direction: column; flex: 1; min-height: 0; border: 1px solid var(--dp-line); }
.nc-dp-row { display: grid; grid-template-columns: repeat(7, 1fr); flex: 1; min-height: 0; }
.nc-dp-mt.has-wk .nc-dp-row { grid-template-columns: 26px repeat(7, 1fr); }
.nc-dp-dow { flex: 0 0 22px; background: var(--dp-primary); color: #fff; font-weight: 600; text-align: center; align-items: center; }
.nc-dp-day { position: relative; border-top: 1px solid var(--dp-line); border-left: 1px solid var(--dp-line); padding: 3px 5px; overflow: hidden; min-width: 0; }
.nc-dp-day:first-child, .nc-dp-wk + .nc-dp-day { border-left: 0; }
.nc-dp-day b { font-size: 15px; font-weight: 600; }
.nc-dp-day i { display: block; font-style: normal; font-size: 9.5px; line-height: 1.15; margin-top: 2px; }
.nc-dp-day.is-we { background: var(--dp-weekend); }
.nc-dp-day.is-out { color: transparent; background: transparent; }
.nc-dp-day.is-national { background: #fde7e9; } .nc-dp-day.is-national b, .nc-dp-day.is-national i { color: #a4262c; }
.nc-dp-day.is-optional { background: #fff4ce; } .nc-dp-day.is-optional b, .nc-dp-day.is-optional i { color: #7a5900; }
.nc-dp-wk { display: grid; place-items: center; font-size: 10px; color: var(--dp-accent); border-top: 1px solid var(--dp-line); }
.nc-dp-dow .nc-dp-wk { border: 0; color: #fff; opacity: .8; }
.nc-dp-notes { margin-top: 10px; flex: 0 0 auto; } .nc-dp-notes b { color: var(--dp-primary); }
.nc-dp-lines { display: grid; gap: 0; } .nc-dp-lines span { height: 20px; border-bottom: 1px solid var(--dp-line); }
.nc-dp.is-year { padding: 20px 24px; }
.nc-dp-year-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px 14px; min-height: 0; }
.nc-dp-year-grid .nc-dp-mt { border: 0; }
.nc-dp-mt.is-mini .nc-dp-mt-title { font-weight: 700; color: var(--dp-primary); margin-bottom: 2px; font-size: 12px; }
.nc-dp-mt.is-mini .nc-dp-dow { background: transparent; color: var(--dp-accent); flex-basis: 12px; font-size: 9px; }
.nc-dp-mt.is-mini .nc-dp-day { border: 0; padding: 0; text-align: center; display: grid; place-items: center; }
.nc-dp-mt.is-mini .nc-dp-day b { font-size: 10px; font-weight: 400; }
.nc-dp-mt.is-mini .nc-dp-day.is-national, .nc-dp-mt.is-mini .nc-dp-day.is-optional { background: transparent; }
.nc-dp-mt.is-mini .nc-dp-day.is-national b { background: #d13438; color: #fff; border-radius: 50%; width: 14px; height: 14px; line-height: 14px; font-weight: 600; }
.nc-dp-mt.is-mini .nc-dp-day.is-optional b { background: #f2b705; color: #33260f; border-radius: 50%; width: 14px; height: 14px; line-height: 14px; font-weight: 600; }
.nc-dp-mt.is-mini .nc-dp-day.is-we b { color: var(--dp-primary); }
.nc-dp.is-year .nc-dp-title { font-size: 26px; margin-bottom: 8px; }
.nc-dp-agenda { gap: 0; } .nc-dp-agenda .nc-dp-title { flex: 0 0 auto; font-size: 24px; }
.nc-dp-arow { flex: 1; display: grid; grid-template-columns: 26px 34px 1fr; align-items: end; gap: 6px; border-bottom: 1px solid var(--dp-line); padding: 0 2px 1px; min-height: 0; }
.nc-dp-arow b { font-size: 13px; color: var(--dp-primary); } .nc-dp-arow span { font-size: 10px; text-transform: uppercase; color: var(--dp-accent); } .nc-dp-arow i { font-style: normal; font-size: 10px; }
.nc-dp-arow.is-we { background: var(--dp-weekend); }
.nc-dp-arow.is-national i { color: #a4262c; font-weight: 600; } .nc-dp-arow.is-optional i { color: #7a5900; font-weight: 600; }
.nc-dp-cover { justify-content: center; align-items: flex-start; background: var(--dp-primary); color: #fff; margin: -26px -30px; padding: 40px; flex: 1; }
.nc-dp-cover-year { font-size: 90px; font-weight: 800; line-height: 1; opacity: .9; }
.nc-dp-cover h3 { margin: 10px 0 6px; font-size: 44px; font-weight: 700; } .nc-dp-cover p { margin: 0; font-size: 20px; opacity: .85; }
.nc-dp-paper { flex: 1; border: 1px solid var(--dp-line); }
.nc-dp-paper.is-lines { background-image: repeating-linear-gradient(to bottom, transparent 0 21px, var(--dp-line) 21px 22px); }
.nc-dp-paper.is-grid { background-image: linear-gradient(var(--dp-line) 1px, transparent 1px), linear-gradient(90deg, var(--dp-line) 1px, transparent 1px); background-size: 20px 20px; }
.nc-dp-paper.is-dots { background-image: radial-gradient(var(--dp-line) 1.3px, transparent 1.6px); background-size: 20px 20px; }
.nc-dp-check .nc-dp-crow { flex: 1; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--dp-line); min-height: 0; }
.nc-dp-box { width: 14px; height: 14px; border: 1.5px solid var(--dp-primary); border-radius: 3px; flex: none; }
.nc-dp-cline { flex: 1; }
.nc-dp-tgrid { flex: 1; display: grid; grid-template-columns: 130px repeat(var(--n), 1fr); grid-auto-rows: 1fr; border-left: 1px solid var(--dp-line); border-top: 1px solid var(--dp-line); min-height: 0; }
.nc-dp-th, .nc-dp-td { border-right: 1px solid var(--dp-line); border-bottom: 1px solid var(--dp-line); text-align: center; font-size: 10px; display: grid; place-items: center; }
.nc-dp-th { background: var(--dp-primary); color: #fff; font-weight: 600; } .nc-dp-th.is-we { background: var(--dp-accent); }
.nc-dp-td.is-we { background: var(--dp-weekend); }

/* fotos nas páginas */
.nc-dp-photo { position: relative; margin: 0; overflow: hidden; background: #e1dfdd; flex: 0 0 auto; }
.nc-dp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.nc-dp-photo.is-empty { background: repeating-linear-gradient(135deg, #f3f2f1 0 12px, #edebe9 12px 24px); display: grid; place-items: center; outline: 2px dashed #c8c6c4; outline-offset: -8px; }
.nc-dp-photo-ph { color: #8a8886; font-size: 14px; font-weight: 600; text-align: center; padding: 0 12px; }
.nc-dp > .nc-dp-lay { min-height: 0; }
.nc-dp-lay-body { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
.nc-dp-lay-body > div { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nc-dp > .nc-dp-lay.is-photo-top { flex-direction: column; }
.nc-dp > .nc-dp-lay.is-photo-top > .nc-dp-photo { margin: -26px -30px 16px; flex-basis: 36%; }
.nc-dp > .nc-dp-lay.is-photo-left, .nc-dp > .nc-dp-lay.is-photo-right { flex-direction: row; }
.nc-dp > .nc-dp-lay.is-photo-left > .nc-dp-photo { margin: -26px 20px -26px -30px; flex-basis: 36%; }
.nc-dp > .nc-dp-lay.is-photo-right > .nc-dp-photo { margin: -26px -30px -26px 20px; flex-basis: 36%; }
.nc-dp-lay.is-photo-left .nc-dp-title, .nc-dp-lay.is-photo-right .nc-dp-title { font-size: 24px; }
.nc-dp-lay.is-photo-left .nc-dp-day i, .nc-dp-lay.is-photo-right .nc-dp-day i { font-size: 8.5px; }
.nc-dp-lay.is-photo-left .nc-dp-year-grid, .nc-dp-lay.is-photo-right .nc-dp-year-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
.nc-dp-lay.is-photo-top .nc-dp-year-grid { gap: 6px 12px; }
.nc-dp.is-photo { padding: 0; }
.nc-dp-photopage { position: relative; flex: 1; }
.nc-dp-photofull { position: absolute; inset: 0; flex: none; }
.nc-dp-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 30px 24px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.62), transparent); display: flex; flex-direction: column; gap: 2px; }
.nc-dp-caption b { font-size: 26px; } .nc-dp-caption span { font-size: 14px; opacity: .92; }
.nc-dp-cover { position: relative; overflow: hidden; }
.nc-dp-cover > :not(.nc-dp-cover-bg) { position: relative; z-index: 1; }
.nc-dp-cover .nc-dp-cover-bg { position: absolute; inset: 0; margin: 0; }
.nc-dp-cover .nc-dp-cover-bg.is-empty { display: none; }
.nc-dp-cover.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.08) 70%); z-index: 0; }
/* marcas e eventos do usuário */
.nc-dp-day.has-mark { box-shadow: inset 0 0 0 2px var(--mk, var(--dp-accent)); }
.nc-dp-day i.mk { font-weight: 700; color: var(--mk, var(--dp-ink)); }
.nc-dp-day i.ev { color: var(--dp-primary); }
.nc-dp-mt.is-mini .nc-dp-day.has-mark { box-shadow: none; }
.nc-dp-mt.is-mini .nc-dp-day.has-mark b { outline: 1.5px solid var(--mk, var(--dp-accent)); outline-offset: 1px; border-radius: 50%; }
.nc-dp-arow.has-mark { box-shadow: inset 3px 0 0 var(--mk, var(--dp-accent)); }
.nc-dp-arow.has-mark i { font-weight: 700; }

/* ====================================================================== Fase 4 — editor, criar, fotos */
.nc-row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nc-ed-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.nc-ed-main-wrap { flex: 1; min-height: 0; display: flex; }
.nc-ed-root { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--nc-bg); }
.nc-ed { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nc-ed-wait { padding: 24px; display: grid; gap: 12px; max-width: 520px; }
.nc-ed-top { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--nc-surface); border-bottom: 1px solid var(--nc-line); flex-wrap: wrap; }
.nc-ed-title { flex: 1 1 200px; max-width: 360px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--nc-radius); background: transparent; color: var(--nc-ink-strong); font: inherit; font-weight: 600; font-size: 15px; }
.nc-ed-title:hover { border-color: var(--nc-line-strong); }
.nc-ed-title:focus { outline: none; border-color: var(--nc-green); background: var(--nc-surface); box-shadow: 0 0 0 1px var(--nc-green); }
.nc-ed-sp { flex: 1; }
.nc-ed-status { font-size: 12.5px; color: var(--nc-muted); padding: 0 6px; }
.nc-ed-status.is-saving, .nc-ed-status.is-dirty { color: var(--nc-c-optional-ink); }
.nc-ed-status.is-error { color: #d13438; font-weight: 600; }
.nc-ed-zoom { display: inline-flex; align-items: center; gap: 2px; }
.nc-ed-zoomlabel { min-width: 42px; text-align: center; font-size: 12.5px; color: var(--nc-muted); }
.nc-ed-conflict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: var(--nc-c-optional-bg); color: var(--nc-c-optional-ink); border-bottom: 1px solid var(--nc-c-optional); }
.nc-ed-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 168px minmax(0, 1fr) 320px; }
.nc-ed-strip { display: flex; flex-direction: column; min-height: 0; background: var(--nc-rail); border-right: 1px solid var(--nc-rail-line); }
.nc-ed-striphead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--nc-rail-line); font-size: 13px; }
.nc-ed-pages { flex: 1; overflow-y: auto; padding: 10px; }
.nc-ed-thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nc-ed-thumb { position: relative; display: grid; gap: 4px; width: 100%; padding: 6px; border: 2px solid transparent; border-radius: 6px; background: transparent; color: var(--nc-rail-ink); cursor: pointer; font: inherit; text-align: center; }
.nc-ed-thumb:hover { background: var(--nc-rail-hover); }
.nc-ed-thumb.is-sel { border-color: var(--nc-green); background: var(--nc-surface); }
.nc-ed-thumb small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-ed-thumb-n { position: absolute; top: 8px; left: 8px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; line-height: 18px; }
.nc-ed-thumb-pg, .nc-ed-page { position: relative; overflow: hidden; background: #fff; }
.nc-ed-thumb-pg { width: 100%; pointer-events: none; box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06); }
.nc-ed-thumb-pg > .nc-dp, .nc-ed-page > .nc-dp { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.nc-ed-stage { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--nc-surface-3); }
.nc-ed-canvas { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: start center; padding: 24px; }
.nc-ed-page { box-shadow: var(--nc-shadow-lg); }
.nc-ed-canvas [data-iso] { cursor: pointer; }
.nc-ed-canvas [data-iso].is-sel { outline: 2px solid var(--nc-green); outline-offset: -2px; }
.nc-ed-mobbar { display: none; }
.nc-ed-side { display: flex; flex-direction: column; min-height: 0; background: var(--nc-surface); border-left: 1px solid var(--nc-line); }
.nc-ed-sidehead { display: flex; align-items: center; border-bottom: 1px solid var(--nc-line); }
.nc-ed-sheetx { display: none; margin: 0 4px; }
.nc-ed-tabs { flex: 1; display: flex; }
.nc-ed-tab { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--nc-muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.nc-ed-tab:hover { background: var(--nc-surface-2); }
.nc-ed-tab[aria-selected="true"] { color: var(--nc-green); border-bottom-color: var(--nc-green); font-weight: 600; }
.nc-ed-panel { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.nc-ed-h { margin: 0; font-size: 14px; font-weight: 600; color: var(--nc-ink-strong); }
.nc-ed-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.nc-ed-actions.is-col { flex-direction: column; align-items: stretch; }
.nc-ed-lays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nc-ed-lay { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 2px solid var(--nc-line); border-radius: 6px; background: var(--nc-surface); color: var(--nc-ink); font: inherit; cursor: pointer; }
.nc-ed-lay small { font-size: 10.5px; text-align: center; line-height: 1.1; }
.nc-ed-lay:hover { background: var(--nc-surface-2); }
.nc-ed-lay[aria-checked="true"] { border-color: var(--nc-green); background: var(--nc-green-tint); }
.nc-ed-lay-ic { position: relative; width: 36px; height: 26px; border: 1.5px solid var(--nc-muted); border-radius: 2px; background: var(--nc-surface); overflow: hidden; }
.nc-ed-lay-ic::before { content: ""; position: absolute; background: var(--nc-green-tint-2); }
.nc-ed-lay-ic.is-grid::before { display: none; }
.nc-ed-lay-ic.is-list::before { display: none; }
.nc-ed-lay-ic.is-photo-top::before { left: 0; right: 0; top: 0; height: 40%; }
.nc-ed-lay-ic.is-photo-left::before { left: 0; top: 0; bottom: 0; width: 40%; }
.nc-ed-lay-ic.is-photo-right::before { right: 0; top: 0; bottom: 0; width: 40%; }
.nc-ed-photoprev { border: 1px solid var(--nc-line); border-radius: 4px; overflow: hidden; background: var(--nc-surface-2); }
.nc-ed-photoprev img { display: block; width: 100%; max-height: 160px; object-fit: contain; }
.nc-ed-colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nc-ed-color { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.nc-ed-color input[type="color"] { width: 32px; height: 28px; padding: 0; border: 1px solid var(--nc-line-strong); border-radius: 4px; background: none; }
.nc-ed-sw { display: flex; gap: 6px; flex-wrap: wrap; }
.nc-ed-swb { width: 28px; height: 28px; border: 2px solid var(--nc-surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--nc-line-strong); cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--nc-muted); background: var(--nc-surface); }
.nc-ed-swb[aria-checked="true"] { box-shadow: 0 0 0 2px var(--nc-green); }
.nc-range { width: 100%; accent-color: var(--nc-green); }
.nc-ed-dlgbody { display: grid; gap: 12px; }
.nc-ed-root .nc-dlg:not(.is-wide) { width: min(640px, 100%); }
.nc-ed-addgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nc-ed-addbtn { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 14px; border: 1px solid var(--nc-line-strong); border-radius: 6px; background: var(--nc-surface); color: var(--nc-ink); font: inherit; text-align: left; cursor: pointer; }
.nc-ed-addbtn:hover { background: var(--nc-surface-2); border-color: var(--nc-green); }
.nc-ed-addbtn[aria-checked="true"] { border-color: var(--nc-green); background: var(--nc-green-tint); box-shadow: 0 0 0 1px var(--nc-green); }
.nc-ed-addbtn.is-big { min-height: 120px; }
.nc-ed-addbtn small { color: var(--nc-muted); }
.nc-ed-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nc-ed-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.nc-ed-ph { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--nc-surface-2); cursor: pointer; }
.nc-ed-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-ed-ph.is-sel, .nc-ed-ph:hover { border-color: var(--nc-green); }
.nc-ed-photos.is-lib { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.nc-phcard { border: 1px solid var(--nc-line); border-radius: 6px; overflow: hidden; background: var(--nc-surface); }
.nc-phcard img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nc-surface-2); }
.nc-phcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; color: var(--nc-muted); }
.nc-ed-vers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nc-ed-vers li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--nc-line); border-radius: 4px; }
.nc-ed-vers small { display: block; color: var(--nc-muted); }
@media (max-width: 1100px) { .nc-ed-main { grid-template-columns: 140px minmax(0, 1fr) 280px; } }
@media (max-width: 900px) {
	.nc-ed-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
	.nc-ed-strip { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--nc-rail-line); }
	.nc-ed-striphead { border-bottom: 0; flex-shrink: 0; }
	.nc-ed-pages { overflow: auto hidden; padding: 6px; }
	.nc-ed-thumbs { display: flex; gap: 6px; }
	.nc-ed-thumb { width: 84px; flex-shrink: 0; }
	.nc-ed-canvas { padding: 10px; }
	.nc-ed-mobbar { display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--nc-surface); border-top: 1px solid var(--nc-line); }
	.nc-ed-mobbar .nc-btn { flex: 1; justify-content: center; }
	.nc-ed-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 72vh; border-left: 0; border-top: 1px solid var(--nc-line-strong); border-radius: 12px 12px 0 0; box-shadow: var(--nc-shadow-lg); transform: translateY(105%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
	.nc-ed-side.is-open { transform: none; visibility: visible; transition: transform .2s ease; }
	.nc-ed-sheetx { display: inline-grid; }
	.nc-ed-title { max-width: none; flex-basis: 100%; order: 5; }
	.nc-ed-zoom { display: none; }
	.nc-ed-lays { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .nc-ed-side { transition: none; } }

/* ====================================================================== Fase 4b — layouts novos, elementos editáveis */
.nc-dp .is-ph { opacity: .55; font-style: italic; }
.nc-dp-title span { min-width: 0; }
/* mês com grandes números */
.nc-dp-month.is-big .nc-dp-title { border-bottom: 0; font-size: 56px; font-weight: 300; letter-spacing: -1px; margin-bottom: 4px; }
.nc-dp-month.is-big .nc-dp-title small { font-size: 22px; letter-spacing: 3px; }
.nc-dp-mt.is-bigmt { border: 0; }
.nc-dp-mt.is-bigmt .nc-dp-dow { background: transparent; color: var(--dp-accent); border-bottom: 2px solid var(--dp-primary); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }
.nc-dp-mt.is-bigmt .nc-dp-day { border-left: 0; padding: 4px 8px; }
.nc-dp-mt.is-bigmt .nc-dp-day b { font-size: 34px; font-weight: 300; }
.nc-dp-mt.is-bigmt .nc-dp-day.is-we b { color: var(--dp-primary); }
.nc-dp-mt.is-bigmt .nc-dp-day i { font-size: 9px; }
/* mês com painel lateral (executivo) */
.nc-dp-month.is-side { flex-direction: row; gap: 22px; margin: -26px -30px; }
.nc-dp-sidebar { flex: 0 0 29%; background: var(--dp-primary); color: #fff; padding: 38px 22px 30px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nc-dp-side-title { font-size: 44px; font-weight: 700; line-height: 1.02; overflow-wrap: anywhere; display: block; }
.nc-dp-side-year { font-size: 22px; letter-spacing: 4px; opacity: .85; }
.nc-dp-side-notes { margin-top: auto; display: flex; flex-direction: column; } .nc-dp-side-notes b { color: #fff; margin-bottom: 4px; }
.nc-dp-lines.is-on-dark span { border-bottom-color: rgba(255,255,255,.45); }
.nc-dp-side-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 34px 30px 28px 0; }
/* mês com metas */
.nc-dp-month.is-goals { flex-direction: row; gap: 18px; }
.nc-dp-gl-main { flex: 1 1 68%; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.nc-dp-goals { flex: 0 0 28%; border-left: 3px solid var(--dp-primary); padding-left: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nc-dp-goals > b { color: var(--dp-primary); font-size: 15px; }
.nc-dp-goalrows { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nc-dp-goalrows .nc-dp-crow { flex: 1; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--dp-line); min-height: 0; }
.nc-dp-goals .nc-dp-lines { flex: 1; grid-auto-rows: 1fr; } .nc-dp-goals .nc-dp-lines span { height: auto; }
/* mês em faixa horizontal */
.nc-dp-strip { display: grid; grid-template-columns: repeat(var(--n), 1fr); border: 1px solid var(--dp-line); flex: 0 0 auto; }
.nc-dp-sday { border-top: 0; padding: 10px 1px; text-align: center; min-height: 230px; display: flex; flex-direction: column; align-items: center; gap: 3px; overflow: hidden; }
.nc-dp-sday:not(:first-child) { border-left: 1px solid var(--dp-line); }
.nc-dp-sday em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--dp-accent); }
.nc-dp-sday b { font-size: 16px; font-weight: 600; }
.nc-dp-sday i { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; max-height: 120px; overflow: hidden; margin: 0; }
.nc-dp-notes.is-grow { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.nc-dp-notes.is-grow .nc-dp-lines { flex: 1; grid-auto-rows: 1fr; } .nc-dp-notes.is-grow .nc-dp-lines span { height: auto; }
/* ano em blocos */
.nc-dp-year.is-blocks .nc-dp-title { border-bottom: 0; }
.nc-dp-year.is-blocks .nc-dp-year-grid { gap: 12px; }
.nc-dp-block { border: 1px solid var(--dp-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; background: var(--dp-paper); }
.nc-dp-block-h { background: var(--dp-primary); color: #fff; font-weight: 700; padding: 4px 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.nc-dp-block.is-alt .nc-dp-block-h { background: var(--dp-accent); }
.nc-dp-block .nc-dp-mt { flex: 1; padding: 4px 8px 6px; }
.nc-dp-block .nc-dp-mt-title { display: none; }
/* ano linear (12 linhas × 31 colunas) */
.nc-dp-lin { flex: 1; display: grid; grid-template-columns: 38px repeat(31, 1fr); grid-template-rows: 18px repeat(12, 1fr); border-top: 1px solid var(--dp-line); border-left: 1px solid var(--dp-line); min-height: 0; }
.nc-dp-lh, .nc-dp-lm { background: var(--dp-primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 8px; }
.nc-dp-lm { font-size: 10px; text-transform: capitalize; }
.nc-dp-lc { border-top: 0; border-left: 0; padding: 0; border-right: 1px solid var(--dp-line); border-bottom: 1px solid var(--dp-line); font-size: 7.5px; display: grid; place-items: center; box-shadow: none; }
.nc-dp-lc.is-void { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--dp-line) 3px 4px); opacity: .5; }
.nc-dp-lc.is-we { background: var(--dp-weekend); font-weight: 700; }
.nc-dp-lc.has-mark { box-shadow: inset 0 0 0 1.5px var(--mk, var(--dp-accent)); }
/* editor: elementos clicáveis */
.nc-ed-page [data-edit] { cursor: text; }
.nc-ed-page [data-edit]:hover, .nc-ed-page [data-role="title"]:hover, .nc-ed-page [data-role="subtitle"]:hover, .nc-ed-page [data-role="weekdays"]:hover, .nc-ed-page [data-role="notes"]:hover, .nc-ed-page [data-role="caption"]:hover { outline: 2px dashed rgba(16,124,65,.75); outline-offset: 2px; }
.nc-ed-page .is-sel-el { outline: 2px solid #0078d4 !important; outline-offset: 2px; }
.nc-ed-page [contenteditable="true"], .nc-ed-page [contenteditable="plaintext-only"] { outline: 2px solid var(--nc-green) !important; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(16,124,65,.18); cursor: text; min-width: 24px; }
/* editor: ícones dos layouts novos */
.nc-ed-lay-ic.is-big::before { left: 3px; top: 3px; width: 16px; height: 5px; background: var(--nc-muted); }
.nc-ed-lay-ic.is-side::before { left: 0; top: 0; bottom: 0; width: 34%; background: var(--nc-green); }
.nc-ed-lay-ic.is-goals::before { right: 0; top: 0; bottom: 0; width: 30%; background: var(--nc-green-tint-2); border-left: 2px solid var(--nc-green); }
.nc-ed-lay-ic.is-strip::before { left: 0; right: 0; top: 6px; height: 7px; background: var(--nc-green-tint-2); }
.nc-ed-lay-ic.is-blocks::before { left: 2px; top: 2px; right: 2px; height: 6px; background: var(--nc-green); box-shadow: 0 9px 0 var(--nc-green-tint-2); }
.nc-ed-lay-ic.is-linear::before { left: 0; right: 0; top: 5px; bottom: 5px; background: repeating-linear-gradient(to bottom, var(--nc-green-tint-2) 0 3px, transparent 3px 5px); }

/* ---- Fase 4b: campos de cor, segmentados, biblioteca de paletas ---- */
.nc-ed-cf { display: flex; align-items: center; gap: 6px; }
.nc-ed-cf input[type="color"] { width: 36px; height: 32px; padding: 0; flex: none; border: 1px solid var(--nc-line-strong); border-radius: 4px; background: none; cursor: pointer; }
.nc-hex { width: 104px; font-family: ui-monospace, Consolas, monospace; text-transform: lowercase; }
.nc-hex.is-bad { border-color: var(--nc-red, #d13438); box-shadow: 0 0 0 1px var(--nc-red, #d13438); }
.nc-ed-seg { display: flex; gap: 4px; align-items: center; }
.nc-ed-seg-sp { flex: 1; }
.nc-ed-seg-b { width: 34px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--nc-line-strong); border-radius: 4px; background: var(--nc-surface); color: var(--nc-ink); cursor: pointer; }
.nc-ed-seg-b:hover { background: var(--nc-surface-2); }
.nc-ed-seg-b[aria-pressed="true"] { background: var(--nc-green-tint); border-color: var(--nc-green); color: var(--nc-green-dark); }
.nc-ed-role { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.nc-ed-colors2 { display: grid; gap: 6px; }
.nc-palnow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nc-palstrip { display: inline-flex; height: 26px; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.nc-palstrip i { width: 22px; height: 100%; display: block; }
.nc-palname { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-paltop { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.nc-pchips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.nc-pchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 16px; border: 1px solid var(--nc-line-strong); background: var(--nc-surface); color: var(--nc-ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.nc-pchip small { opacity: .65; font-size: 11px; }
.nc-pchip:hover { background: var(--nc-surface-2); }
.nc-pchip.is-on { background: var(--nc-green); border-color: var(--nc-green); color: var(--nc-on-green); }
.nc-palcols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nc-palcols.is-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.nc-palgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.nc-palcard { width: 100%; display: grid; gap: 6px; justify-items: start; padding: 8px; border: 2px solid var(--nc-line); border-radius: 8px; background: var(--nc-surface); color: var(--nc-ink); font: inherit; cursor: pointer; text-align: left; }
.nc-palcard:hover { border-color: var(--nc-line-strong); }
.nc-palcard.is-sel { border-color: var(--nc-green); background: var(--nc-green-tint); }
.nc-palcard .nc-palstrip { width: 100%; }
.nc-palcard .nc-palstrip i { flex: 1; width: auto; }
.nc-palbadges { display: flex; gap: 4px; min-height: 16px; }
.nc-badge { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: var(--nc-surface-2); color: var(--nc-ink); }
.nc-badge.is-mine { background: #8764b8; color: #fff; }
.nc-badge.is-use { background: var(--nc-green); color: var(--nc-on-green); }
.nc-palside { position: sticky; top: 0; display: grid; gap: 8px; }
.nc-ed-palprev { position: relative; overflow: hidden; width: 100%; border: 1px solid var(--nc-line-strong); border-radius: 4px; background: #fff; }
.nc-ed-palprev > .nc-dp { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.nc-palprevhost { display: block; }
@media (max-width: 700px) { .nc-palcols, .nc-palcols.is-edit { grid-template-columns: minmax(0, 1fr); } .nc-palgrid { max-height: 34vh; } .nc-palside { position: static; } }

/* ---- Fase 5: legenda de feriados e datas especiais, crédito do rodapé ---- */
.nc-dp-day.is-other:not(.is-national):not(.is-optional) { background: #e6f0fa; } .nc-dp-day.is-other:not(.is-national):not(.is-optional) b, .nc-dp-day.is-other:not(.is-national):not(.is-optional) i { color: #0b4f8a; }
.nc-dp-mt.is-mini .nc-dp-day.is-other { background: transparent; }
.nc-dp-mt.is-mini .nc-dp-day.is-other:not(.is-national):not(.is-optional) b { background: #0078d4; color: #fff; border-radius: 50%; width: 14px; height: 14px; line-height: 14px; font-weight: 600; }
.nc-dp-legend { flex: 0 0 auto; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--dp-line); font-size: 8.5px; line-height: 1.2; color: var(--dp-ink); }
.nc-dp-lg-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 4px; }
.nc-dp-lg-h strong { color: var(--dp-primary); font-size: 9.5px; letter-spacing: .4px; text-transform: uppercase; }
.nc-dp-lg-k { display: inline-flex; align-items: center; gap: 4px; opacity: .85; }
.nc-dp-lg-l { list-style: none; margin: 0; padding: 0; column-gap: 16px; column-fill: balance; }
.nc-dp-legend.is-year .nc-dp-lg-l { column-count: 5; column-gap: 12px; }
.nc-dp-legend.is-month .nc-dp-lg-l { column-count: 3; }
.nc-dp-lg-l li { break-inside: avoid; display: flex; align-items: baseline; gap: 4px; padding: 1px 0; }
.nc-dp-lg-l li b { font-variant-numeric: tabular-nums; color: var(--dp-primary); font-weight: 700; flex: none; }
.nc-dp-lg-sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: flex-start; margin-top: 2px; background: var(--dp-line); }
.nc-dp-lg-sw.is-national { background: #d13438; } .nc-dp-lg-sw.is-optional { background: #f2b705; } .nc-dp-lg-sw.is-other { background: #0078d4; }
.nc-dp-lg-sw.is-mk { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mk, var(--dp-accent)); }
.nc-dp-lg-sw.is-ev { border-radius: 2px; background: var(--dp-accent); transform: rotate(45deg) scale(.85); }
.nc-dp-credit { flex: 0 0 auto; padding-top: 6px; line-height: 1.2; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; pointer-events: none; }
@media print { .nc-dp-credit { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.nc-credit-now { margin: 6px 0; padding: 8px 10px; border: 1px dashed var(--nc-line-strong); border-radius: 6px; font-size: 12px; color: var(--nc-muted); text-align: center; }
.nc-dp.is-portrait .nc-dp-legend.is-year .nc-dp-lg-l { column-count: 3; }

/* ---- Fase 5: camadas e impressão ---- */
.nc-ed-tabs { overflow-x: auto; scrollbar-width: none; } .nc-ed-tab { min-width: 52px; }
.nc-layers { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.nc-layer { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border: 1px solid var(--nc-line); border-radius: 6px; background: var(--nc-surface); }
.nc-layer.is-hidden .nc-layer-name { opacity: .5; text-decoration: line-through; }
.nc-layer.is-locked { background: var(--nc-surface-2); }
.nc-layer .nc-iconbtn[aria-pressed="true"][data-act="lock"] { color: var(--nc-green-dark); }
.nc-layer-name { flex: 1; text-align: left; border: 0; background: none; font: inherit; font-size: 13px; color: var(--nc-ink); padding: 6px 4px; }
button.nc-layer-name { cursor: pointer; } button.nc-layer-name:hover { text-decoration: underline; }
.nc-layer-credit { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--nc-muted); margin: 4px 0 8px; }
.nc-ed-page [data-locked] { cursor: not-allowed; outline: none !important; }
.nc-print-root { display: none; }
@page nc-a3-l { size: A3 landscape; margin: 0; } @page nc-a3-p { size: A3 portrait; margin: 0; }
@page nc-a4-l { size: A4 landscape; margin: 0; } @page nc-a4-p { size: A4 portrait; margin: 0; }
@page nc-a5-l { size: A5 landscape; margin: 0; } @page nc-a5-p { size: A5 portrait; margin: 0; }
@page nc-letter-l { size: letter landscape; margin: 0; } @page nc-letter-p { size: letter portrait; margin: 0; }
.nc-print-sheet.is-a3-l { page: nc-a3-l; } .nc-print-sheet.is-a3-p { page: nc-a3-p; } .nc-print-sheet.is-a4-l { page: nc-a4-l; } .nc-print-sheet.is-a4-p { page: nc-a4-p; }
.nc-print-sheet.is-a5-l { page: nc-a5-l; } .nc-print-sheet.is-a5-p { page: nc-a5-p; } .nc-print-sheet.is-letter-l { page: nc-letter-l; } .nc-print-sheet.is-letter-p { page: nc-letter-p; }
@media print {
	html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; height: auto !important; overflow: visible !important; }
	body.nc-printing > *:not(.nc-print-root) { display: none !important; }
	body.nc-printing .nc-print-root { display: block; }
	.nc-print-sheet { position: relative; overflow: hidden; break-after: page; page-break-after: always; box-sizing: border-box; }
	.nc-print-sheet:last-child { break-after: auto; page-break-after: auto; }
	.nc-print-sheet > .nc-dp { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
	.nc-print-root, .nc-print-root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- página inicial (visitantes) ---- */
.nc-home-sec { max-width: 1240px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 48px); }
.nc-home-h { font-size: clamp(22px, 3vw, 30px); font-weight: 600; text-align: center; margin: 0 0 22px; color: var(--nc-ink-strong); }
.nc-home-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.nc-home-feat { padding: 18px; } .nc-home-feat h3 { font-size: 16px; font-weight: 600; margin: 10px 0 6px; } .nc-home-feat p { margin: 0; font-size: 14px; color: var(--nc-muted); line-height: 1.5; }
.nc-home-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--nc-green-soft, #e6f4ea); color: var(--nc-green-dark, #107c41); }
.nc-home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.nc-home-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--nc-line); border-radius: 8px; background: var(--nc-surface); font-size: 14px; }
.nc-home-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--nc-green-dark, #107c41); color: #fff; }
.nc-home-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.nc-home-plan { padding: 18px; display: flex; flex-direction: column; gap: 8px; } .nc-home-plan h3 { margin: 0; font-size: 18px; font-weight: 600; }
.nc-home-price { font-size: 20px; font-weight: 600; color: var(--nc-green-dark, #107c41); }
.nc-home-plan ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 13px; flex: 1; } .nc-home-plan li { display: flex; gap: 6px; align-items: flex-start; }
.nc-home-cta { text-align: center; padding: 40px 16px 56px; } .nc-home-cta h2 { font-size: 24px; font-weight: 600; margin: 0 0 16px; }

/* ---- Eventos e datas: grupos, cores próprias, legenda adaptável ---- */
.nc-dp-day.is-state { background: #fdebd9; } .nc-dp-day.is-state b, .nc-dp-day.is-state i { color: #a54200; }
.nc-dp-day.is-municipal { background: #ece6f6; } .nc-dp-day.is-municipal b, .nc-dp-day.is-municipal i { color: #5a3f8c; }
.nc-dp-day.is-personal { background: #e1f3e8; } .nc-dp-day.is-personal b, .nc-dp-day.is-personal i { color: #0b5a2f; }
.nc-dp-day.has-hc { background: color-mix(in srgb, var(--hc) 17%, #fff); }
.nc-dp-day.has-hc b, .nc-dp-day.has-hc i { color: color-mix(in srgb, var(--hc) 72%, #000); }
.nc-dp-arow.has-hc i { color: color-mix(in srgb, var(--hc) 72%, #000); font-weight: 600; }
.nc-dp-mt.is-mini .nc-dp-day.is-state, .nc-dp-mt.is-mini .nc-dp-day.is-municipal, .nc-dp-mt.is-mini .nc-dp-day.is-personal, .nc-dp-mt.is-mini .nc-dp-day.has-hc { background: transparent; }
.nc-dp-mt.is-mini .nc-dp-day.is-state b, .nc-dp-mt.is-mini .nc-dp-day.is-municipal b, .nc-dp-mt.is-mini .nc-dp-day.is-personal b, .nc-dp-mt.is-mini .nc-dp-day.has-hc b { border-radius: 50%; width: 14px; height: 14px; line-height: 14px; font-weight: 600; color: #fff; }
.nc-dp-mt.is-mini .nc-dp-day.is-state b { background: #e8590c; } .nc-dp-mt.is-mini .nc-dp-day.is-municipal b { background: #8764b8; } .nc-dp-mt.is-mini .nc-dp-day.is-personal b { background: #107c41; }
.nc-dp-mt.is-mini .nc-dp-day.has-hc b { background: var(--hc); color: var(--hcf, #fff); }
.nc-dp-lg-sw.is-state { background: #e8590c; } .nc-dp-lg-sw.is-municipal { background: #8764b8; } .nc-dp-lg-sw.is-personal { background: #107c41; }
.nc-dp-lg-sw.is-hc { background: var(--mk); box-shadow: none; border-radius: 50%; transform: none; }
.nc-dp-lg-t { min-width: 0; overflow-wrap: anywhere; }
/* tamanhos (sempre legíveis: mínimo 7 px na página = ~5,3 pt impresso) e colunas definidas por --lgc */
.nc-dp-legend.lg-small { font-size: 7.5px; } .nc-dp-legend.lg-tiny { font-size: 7px; }
.nc-dp-legend.lg-small .nc-dp-lg-h strong, .nc-dp-legend.lg-tiny .nc-dp-lg-h strong { font-size: 8px; }
.nc-dp-legend .nc-dp-lg-l { column-count: var(--lgc, 4); }
.nc-dp-legend.is-year .nc-dp-lg-l, .nc-dp-legend.is-month .nc-dp-lg-l { column-count: var(--lgc, 4); }
.nc-dp-legend.lg-compact .nc-dp-lg-l li { white-space: normal; overflow-wrap: anywhere; display: block; padding: 0; } /* nunca corta o texto: se faltar largura, quebra a linha */
.nc-dp-legend.lg-compact .nc-dp-lg-t { display: inline; }
.nc-dp-legend.lg-compact .nc-dp-lg-sw { display: inline-block; margin-right: 3px; }
.nc-dp-legend.lg-grid .nc-dp-lg-l { column-count: auto; display: grid; grid-template-columns: repeat(var(--lgc, 4), minmax(0, 1fr)); gap: 4px 8px; }
.nc-dp-legend.lg-grid .nc-dp-lg-l li { display: grid; grid-template-columns: auto auto 1fr; column-gap: 4px; border: 1px solid var(--dp-line); border-radius: 4px; padding: 2px 4px; align-items: baseline; }
.nc-dp-legend.lg-grid .nc-dp-lg-d { grid-column: 3; font-style: normal; opacity: .75; font-size: .92em; }
.nc-dp-lg-months { column-count: var(--lgc, 4); column-gap: 14px; }
.nc-dp-lg-m { break-inside: avoid; margin-bottom: 5px; } .nc-dp-lg-m h4 { margin: 0 0 1px; font-size: 1.05em; color: var(--dp-primary); text-transform: capitalize; border-bottom: 1px solid var(--dp-line); }
.nc-dp-lg-m .nc-dp-lg-l { column-count: 1; }
.nc-dp-lg-d { display: block; font-style: normal; opacity: .75; }
.nc-dp-legend.is-page { border-top: 0; margin-top: 8px; font-size: 11px; flex: 1; }
.nc-dp-legend.is-page .nc-dp-lg-h { margin-bottom: 8px; } .nc-dp-legend.is-page .nc-dp-lg-h strong { font-size: 12px; }
.nc-dp-legendpage { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.nc-dp-lg-empty { color: var(--dp-accent); font-size: 12px; padding: 20px 0; }
.nc-dp.is-legend { padding: 20px 24px; } .nc-dp.is-legend .nc-dp-title { font-size: 26px; margin-bottom: 8px; }
/* legenda e dias clicáveis no editor */
.nc-ed-canvas .nc-dp-legend li[tabindex] { cursor: pointer; border-radius: 3px; }
.nc-ed-canvas .nc-dp-legend li[tabindex]:hover, .nc-ed-canvas .nc-dp-legend li[tabindex]:focus-visible { outline: 1.5px solid var(--nc-green, #107c41); outline-offset: 1px; background: color-mix(in srgb, var(--nc-green, #107c41) 8%, transparent); }
.nc-ed-canvas .nc-dp-legend li.is-sel, .nc-ed-canvas .nc-dp-day.is-datesel { outline: 2px solid var(--nc-green, #107c41); outline-offset: -1px; }

/* ---- gerenciador de eventos e datas ---- */
.nc-mg-top { margin: 0 0 8px; } .nc-mg-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--nc-line); border-radius: 6px; background: var(--nc-surface); }
.nc-mg-switch .nc-cmd-btn[aria-pressed="true"] { background: var(--nc-green-soft, #e6f4ea); color: var(--nc-green-dark, #107c41); font-weight: 600; }
.nc-mg-bar { flex-wrap: wrap; gap: 6px; align-items: center; } .nc-input.nc-mg-year { width: 84px; height: 30px; text-align: center; } .nc-mg-q { width: 180px; height: 30px; } .nc-mg-grp { height: 30px; max-width: 230px; }
.nc-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nc-mg-wb { align-items: flex-start; } .nc-mg-main { min-width: 0; flex: 1; }

.nc-mg-main { container-type: inline-size; container-name: mgm; }
/* Visão anual: sempre 12 meses equilibrados (4x3, 3x4, 2x6 ou 1x12) conforme a largura DISPONÍVEL da área, não da janela. */
.nc-mg-yg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@container mgm (max-width: 880px) { .nc-mg-yg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container mgm (max-width: 620px) { .nc-mg-yg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@container mgm (max-width: 380px) { .nc-mg-yg { grid-template-columns: minmax(0, 1fr); } }
.nc-mg-month { background: var(--nc-surface); border: 1px solid var(--nc-line); border-radius: 8px; padding: 8px; }
.nc-mg-mh { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--nc-ink-strong); padding: 2px 4px 6px; cursor: pointer; } .nc-mg-mh:hover { text-decoration: underline; }
.nc-mg-dow, .nc-mg-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } .nc-mg-dow span { text-align: center; font-size: 10px; color: var(--nc-muted); }
.nc-mg-d { position: relative; aspect-ratio: 1; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 11px; color: var(--nc-ink); cursor: pointer; padding: 0; display: grid; place-items: center; }
.nc-mg-d.is-out { visibility: hidden; cursor: default; } .nc-mg-d:hover { background: var(--nc-surface-2); }
.nc-mg-d.has { font-weight: 700; color: var(--nc-ink-strong); background: var(--nc-surface-2); }
.nc-mg-cnt { font-size: 10px; font-weight: 600; color: var(--nc-muted); background: var(--nc-surface-2); border-radius: 8px; padding: 0 6px; line-height: 16px; }
.nc-mg-mk { position: absolute; top: 1px; right: 1px; line-height: 0; } .nc-mg-mk svg { display: block; } .nc-mg-dotm { width: 8px; height: 8px; border-radius: 50%; position: absolute; top: 2px; right: 2px; }
.nc-mg-keyi .nc-mg-mk { position: static; } .nc-mg-d.is-today { outline: 1.5px solid var(--nc-green-dark, #107c41); outline-offset: -1px; }
.nc-mg-d.is-sel { box-shadow: 0 0 0 2px var(--nc-ink-strong); } .nc-mg-n { position: absolute; right: 0; bottom: 0; font-size: 8px; font-style: normal; background: #fff; color: #333; border-radius: 6px; padding: 0 3px; line-height: 11px; }
.nc-mg-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 2px 0; font-size: 12px; color: var(--nc-muted); } .nc-mg-keyi { display: inline-flex; align-items: center; gap: 5px; } 
.nc-mg-mtitle { font-size: 14px; font-weight: 600; margin: 16px 0 6px; } .nc-mg-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--nc-line); border-radius: 8px; overflow: hidden; background: var(--nc-surface); }
.nc-mg-row { display: grid; grid-template-columns: 12px 46px minmax(0, 1fr) auto auto 32px; gap: 8px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--nc-line); font-size: 13px; } .nc-mg-row:first-child { border-top: 0; }
.nc-mg-row.is-off { opacity: .55; } .nc-mg-row.is-sel { background: var(--nc-surface-2); } .nc-mg-dot { width: 10px; height: 10px; border-radius: 50%; } .nc-mg-date { font-variant-numeric: tabular-nums; color: var(--nc-muted); }
.nc-mg-name { display: flex; flex-direction: column; min-width: 0; } .nc-mg-name small { color: var(--nc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nc-mg-cat { font-size: 12px; color: var(--nc-muted); white-space: nowrap; }
.nc-dt-badge.is-warn { background: #fff4ce; color: #7a5b00; }
.nc-colorinput { width: 38px; height: 30px; padding: 0; border: 1px solid var(--nc-line); border-radius: 4px; background: none; }
@media (max-width: 900px) { .nc-mg-row { grid-template-columns: 12px 42px minmax(0, 1fr) 32px; } .nc-mg-cat, .nc-mg-row .nc-dt-badges { display: none; } }
.nc-ed-year { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; flex: none; } .nc-ed-yearin { width: 74px; height: 30px; text-align: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
.nc-ed-tab { white-space: nowrap; }
@media (max-width: 600px) { .nc-ed-yearin { width: 62px; } }

/* ---- exportar */
.nc-ex-list { display: grid; gap: 8px; margin-bottom: 12px; }
.nc-ex-opt { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--nc-line, #c8c6c4); border-radius: 8px; background: var(--nc-surface, #fff); color: inherit; cursor: pointer; font: inherit; }
.nc-ex-opt.is-sel { border-color: var(--nc-primary, #107c41); box-shadow: 0 0 0 2px color-mix(in srgb, var(--nc-primary, #107c41) 25%, transparent); }
.nc-ex-opt.is-off { opacity: .55; cursor: not-allowed; }
.nc-ex-t { display: flex; flex-direction: column; gap: 2px; }

/* ---- Marcadores de datas (doc.markers): forma no lugar da célula colorida ---- */
.nc-dp-day, .nc-dp-arow { position: relative; }
.nc-dp-day.has-mk, .nc-dp-arow.has-mk { isolation: isolate; }
.nc-dp-mks { position: absolute; pointer-events: none; }
.nc-dp-mk { position: absolute; line-height: 0; display: block; --st: 12px; }
.nc-dp-mk.sz-S { --st: 10px; } .nc-dp-mk.sz-M { --st: 13px; } .nc-dp-mk.sz-L { --st: 17px; }
.nc-dp-mk svg { display: block; overflow: visible; }
.nc-dp-mks.is-corner { inset: 0; z-index: 1; }
.nc-dp-mks.is-corner .nc-dp-mk.pos-tr { top: 2px; right: calc(2px + var(--i, 0) * var(--st)); }
.nc-dp-mks.is-corner .nc-dp-mk.pos-tl { top: 2px; left: calc(2px + var(--i, 0) * var(--st)); }
.nc-dp-mks.is-corner .nc-dp-mk.pos-br { bottom: 2px; right: calc(2px + var(--i, 0) * var(--st)); }
.nc-dp-mks.is-corner .nc-dp-mk.pos-bl { bottom: 2px; left: calc(2px + var(--i, 0) * var(--st)); }
.nc-dp-mks.is-dot { inset: 0; z-index: 1; }
.nc-dp-mks.is-dot .nc-dp-mk { top: 50%; right: calc(6px + var(--i, 0) * var(--st)); transform: translateY(-50%); }
.nc-dp-mks.is-mini { inset: 0; z-index: -1; display: grid; place-items: center; }
.nc-dp-mks.is-mini .nc-dp-mk { position: static; grid-area: 1 / 1; }
.nc-dp-mks.is-mini .nc-dp-mk svg { max-width: 100%; max-height: 100%; }
.nc-dp-mt.is-mini .nc-dp-day.has-mk b, .nc-dp-lc.has-mk { color: var(--mkink, inherit); font-weight: 700; }
.nc-dp-lg-sw.is-mkr { background: transparent; box-shadow: none; border-radius: 0; transform: none; width: 10px; height: 10px; margin-top: 1px; line-height: 0; }
.nc-dp-lg-sw.is-mkr svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---- Imagens: efeitos, imagens livres e fundo ---- */
.nc-dp { position: relative; isolation: isolate; }
.nc-dp-photo img { transform-box: border-box; }
.nc-fx-ov { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.nc-fx-bd { position: absolute; inset: 0; pointer-events: none; z-index: 2; box-sizing: border-box; }
.nc-dp-img { position: absolute; margin: 0; overflow: hidden; box-sizing: border-box; }
.nc-dp-img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.nc-dp-img.is-empty { background: repeating-linear-gradient(135deg, #f3f2f1 0 10px, #edebe9 10px 20px); display: grid; place-items: center; outline: 2px dashed #c8c6c4; outline-offset: -4px; }
.nc-dp-bg { position: absolute; inset: 0; margin: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.nc-dp-bg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nc-dp-bg.is-months { z-index: -1; }
.has-bg-host { position: relative; isolation: isolate; }

/* ---- v0.10: imagens, fundo, marcadores e efeitos no editor ---- */
.nc-fxg { border: 1px solid var(--nc-border, #e1dfdd); border-radius: 6px; margin: 0 0 8px; background: var(--nc-surface, #fff); }
.nc-fxg > summary { cursor: pointer; padding: 8px 10px; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; list-style: none; }
.nc-fxg > summary::-webkit-details-marker { display: none; }
.nc-fxg > summary::before { content: '▸'; font-size: 11px; transition: transform .12s; }
.nc-fxg[open] > summary::before { transform: rotate(90deg); }
.nc-fxg-body { padding: 4px 10px 10px; }
.nc-fx-row label { display: flex; justify-content: space-between; gap: 8px; }
.nc-fx-val { color: var(--nc-muted, #605e5c); font-variant-numeric: tabular-nums; }
.nc-fx-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.nc-fx-segb, .nc-fx-seg .nc-ed-seg-b { flex: 1 1 auto; }
.nc-fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.nc-fx-num { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.nc-fx-back { margin: 0 0 6px; }
.nc-linkbtn { background: none; border: 0; color: var(--nc-accent, #107c41); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.nc-shapes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.nc-shape { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--nc-border, #e1dfdd); background: var(--nc-surface, #fff); border-radius: 6px; cursor: pointer; padding: 0; }
.nc-shape.is-on { outline: 2px solid var(--nc-accent, #107c41); }
.nc-shape svg { width: 18px; height: 18px; }
.nc-mkprev svg { width: 18px; height: 18px; display: block; }
.nc-mkg > summary .nc-mkprev { display: inline-flex; }
.nc-ov { position: absolute; z-index: 40; pointer-events: none; outline: 2px solid #107c41; }
.nc-ov-body { position: absolute; inset: 0; pointer-events: auto; cursor: move; touch-action: none; }
.nc-ov-body.is-locked { cursor: not-allowed; }
.nc-ov-h { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; border: 2px solid #107c41; border-radius: 2px; pointer-events: auto; touch-action: none; }
.nc-ov-h.is-nw, .nc-ov-h.is-se { cursor: nwse-resize; } .nc-ov-h.is-ne, .nc-ov-h.is-sw { cursor: nesw-resize; }
.nc-ov-h.is-n, .nc-ov-h.is-s { cursor: ns-resize; } .nc-ov-h.is-e, .nc-ov-h.is-w { cursor: ew-resize; }
.nc-ov-tag { position: absolute; left: -2px; top: -22px; background: #107c41; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px 3px 0 0; pointer-events: none; }
.nc-dp-img { cursor: pointer; }
.nc-layer.is-hidden .nc-layer-name { opacity: .55; }
.nc-ed-page { overflow: visible; }
.nc-pane-head h2::first-letter { text-transform: uppercase; }

/* v0.11 — abas do editor: cada aba mede o próprio texto (antes "Marcadores" e "Camadas" se sobrepunham) e a barra rola com scrollbar fina visível */
.nc-app .nc-ed-tabs { overflow-x: auto; scrollbar-width: thin; }
.nc-app .nc-ed-tab { flex: 1 0 auto; min-width: 0; padding-left: 9px; padding-right: 9px; }
/* v0.11 — listas de ações em coluna (ex.: escolher o elemento a editar): alinhadas à esquerda, com quebra de linha em vez de texto cortado */
.nc-app .nc-ed-actions.is-col > .nc-btn { justify-content: flex-start; height: auto; min-height: 32px; padding: 6px 12px; white-space: normal; text-align: left; line-height: 1.3; }

/* v0.11 — Painel "Datas" do editor (filtros, lista, edição) e classes que estavam sem estilo desde a 0.7. */
.nc-app .nc-ed-h2 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--nc-ink-strong); }
.nc-app .nc-ed-seg { flex-wrap: wrap; }
.nc-app .nc-ed-segb, .nc-app .nc-dt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border: 1px solid var(--nc-line-strong); border-radius: 15px; background: var(--nc-surface); color: var(--nc-ink); font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; }
.nc-app .nc-ed-segb:hover, .nc-app .nc-dt-chip:hover { background: var(--nc-surface-2); }
.nc-app .nc-ed-segb[aria-pressed="true"], .nc-app .nc-dt-chip[aria-pressed="true"] { background: var(--nc-green-tint); border-color: var(--nc-green); color: var(--nc-green-dark); font-weight: 600; }
[data-bs-theme="dark"] .nc-app .nc-ed-segb[aria-pressed="true"], [data-bs-theme="dark"] .nc-app .nc-dt-chip[aria-pressed="true"] { color: var(--nc-green); }
.nc-app .nc-ed-segb:focus-visible, .nc-app .nc-dt-chip:focus-visible, .nc-app .nc-dt-name:focus-visible { outline: 2px solid var(--nc-green); outline-offset: 2px; }
.nc-app .nc-dt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.nc-app .nc-dt-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.nc-app .nc-dt-two { display: grid; gap: 4px; }
.nc-app .nc-dt-filter { display: grid; gap: 8px; margin-bottom: 8px; }
.nc-app .nc-dt-list { border-top: 1px solid var(--nc-line); margin-bottom: 10px; }
.nc-app .nc-dt-item { border-bottom: 1px solid var(--nc-line); }
.nc-app .nc-dt-item.is-sel { background: var(--nc-surface-2); }
.nc-app .nc-dt-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; min-width: 0; }
.nc-app .nc-dt-row.is-off { opacity: .55; }
.nc-app .nc-dt-row input[type="checkbox"] { flex: none; margin: 0; }
.nc-app .nc-dt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.nc-app .nc-dt-name { flex: 1 1 auto; min-width: 0; padding: 4px 2px; border: 0; background: transparent; color: var(--nc-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.nc-app .nc-dt-name b { font-variant-numeric: tabular-nums; font-weight: 600; margin-right: 2px; }
.nc-app span.nc-dt-name { cursor: default; }
.nc-app button.nc-dt-name:hover { color: var(--nc-green-dark); text-decoration: underline; }
.nc-app .nc-dt-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; flex: none; justify-content: flex-end; }
.nc-app .nc-dt-badge { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 9px; background: var(--nc-surface-2); color: var(--nc-muted); white-space: nowrap; }
.nc-app .nc-dt-badge.is-mine { background: #ece5f6; color: #4b2f7a; }
.nc-app .nc-dt-badge.is-ed { background: #e0eefb; color: #0b4a85; }
.nc-app .nc-dt-badge.is-warn { background: #fff4ce; color: #7a5b00; }
[data-bs-theme="dark"] .nc-app .nc-dt-badge.is-mine { background: #3a2c55; color: #d9c8f5; }
[data-bs-theme="dark"] .nc-app .nc-dt-badge.is-ed { background: #16344f; color: #b9dcf7; }
.nc-app .nc-dt-editor { padding: 4px 8px 12px 24px; display: grid; gap: 8px; }
.nc-app .nc-dt-colorrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-app .nc-dt-save { display: grid; gap: 6px; padding-top: 4px; }
.nc-app .nc-dt-add { display: grid; gap: 8px; padding: 12px; margin-top: 8px; border: 1px solid var(--nc-line); border-radius: 6px; background: var(--nc-surface-2); }
.nc-app .nc-dt-adv { margin: 10px 0; padding: 10px 12px; border: 1px solid #e8d48a; border-radius: 6px; background: #fff8dc; color: #5c4400; font-size: 13px; }
.nc-app .nc-dt-adv strong { display: flex; align-items: center; gap: 6px; }
.nc-app .nc-dt-adv .nc-icon { width: 16px; height: 16px; }
[data-bs-theme="dark"] .nc-app .nc-dt-adv { background: #3a3114; border-color: #6b5a1f; color: #f1e2a8; }
.nc-app .nc-dt-tipbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nc-app .nc-dt-prevrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.nc-app .nc-dt-dayhols { margin: 8px 0 12px; }
.nc-app .nc-dt-dayhol { border-bottom: 1px solid var(--nc-line); }
.nc-app .nc-mg-list { display: block; }
.nc-app .nc-mg-off { margin: 6px 0 10px; }
.nc-app .nc-mk-master { margin: 4px 0 10px; font-weight: 600; }
.nc-app .nc-pitem-title { color: var(--nc-ink-strong); text-decoration: none; }
.nc-app .nc-pitem-title:hover { color: var(--nc-green-dark); text-decoration: underline; }

/* ===== v0.11 Ajuda contextual (botão "?" e gaveta) ===== */
.nc-app .nc-helpbtn { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-left: 6px; vertical-align: middle; border: 0; border-radius: 50%; background: transparent; color: var(--nc-muted); cursor: pointer; flex: none; }
.nc-app .nc-helpbtn:hover, .nc-app .nc-helpbtn:focus-visible { color: var(--nc-green-dark); background: var(--nc-green-tint); }
.nc-app .nc-helpbtn .nc-icon { width: 16px; height: 16px; }
@media (pointer: coarse) { .nc-app .nc-helpbtn { width: 32px; height: 32px; } .nc-app .nc-helpbtn .nc-icon { width: 20px; height: 20px; } }
.nc-app .nc-ed-h .nc-helpbtn, .nc-app .nc-page-title .nc-helpbtn { margin-left: 8px; }
.nc-app .nc-appbar .nc-helpbtn { color: #fff; width: 32px; height: 32px; margin: 0; border-radius: 2px; }
.nc-app .nc-appbar .nc-helpbtn:hover, .nc-app .nc-appbar .nc-helpbtn:focus-visible { background: rgba(255,255,255,.18); color: #fff; }
.nc-app .nc-appbar .nc-helpbtn .nc-icon { width: 20px; height: 20px; }
.nc-help { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 150; display: flex; flex-direction: column; background: var(--nc-surface); color: var(--nc-ink); border-left: 1px solid var(--nc-line-strong); box-shadow: var(--nc-shadow-lg); font-family: var(--nc-font); }
.nc-help[hidden] { display: none; }
.nc-help-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 18px; border-bottom: 1px solid var(--nc-line); }
.nc-help-head h2 { margin: 0; flex: 1; font-size: 17px; font-weight: 600; color: var(--nc-ink-strong); }
.nc-help-x { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--nc-ink); cursor: pointer; }
.nc-help-x:hover { background: var(--nc-rail-hover); }
.nc-help-x .nc-icon { width: 20px; height: 20px; }
.nc-help-body { flex: 1; overflow-y: auto; padding: 14px 18px; line-height: 1.5; font-size: 14px; }
.nc-help-sum { color: var(--nc-muted); margin: 0 0 10px; }
.nc-help-art h2 { font-size: 15px; margin: 16px 0 6px; color: var(--nc-ink-strong); }
.nc-help-art ul, .nc-help-art ol { padding-left: 20px; }
.nc-help-art li { margin: 4px 0; }
.nc-help-art a { color: var(--nc-green-dark); text-decoration: underline; }
.nc-help-art kbd { border: 1px solid var(--nc-line-strong); border-radius: 3px; padding: 0 5px; font-size: 12px; }
.nc-help-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nc-line); }
.nc-help-foot a { text-decoration: none; }
@media (max-width: 640px) {
	.nc-help { top: auto; left: 0; width: 100vw; height: 78vh; border-left: 0; border-top: 1px solid var(--nc-line-strong); border-radius: 12px 12px 0 0; }
}
.nc-rail ul[data-help-links] a { gap: 10px; }
@media (max-width: 900px) { .nc-rail ul[data-help-links] { display: none; } }

/* v0.14: tabela de histórico de utilização */
.nc-plans tfoot td{padding-top:14px;text-align:center;vertical-align:top}
.nc-orders td{font-size:14px;vertical-align:top}


/* ---- v0.14: limite diário (contador) ---- */
.nc-daily { padding: 14px 16px; }
.nc-daily .nc-meter-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nc-daily .nc-meter-top > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nc-daily .nc-meter-top strong { font-variant-numeric: tabular-nums; }
.nc-daily small { display: block; margin-top: 6px; color: var(--nc-muted); font-size: 13px; }
.nc-daily .nc-bar { height: 8px; border-radius: 4px; margin-top: 8px; }
.nc-daily .nc-bar > i { border-radius: 4px; }
.nc-bar.is-near > i { background: #b86e00; }
[data-bs-theme="dark"] .nc-bar.is-near > i { background: #e0a030; }
.nc-daily.is-near { border-color: #b86e00; }
.nc-daily.is-reached { border-color: #a4262c; background: var(--nc-surface); }
[data-bs-theme="dark"] .nc-daily.is-near { border-color: #e0a030; }
[data-bs-theme="dark"] .nc-daily.is-reached { border-color: #f1707b; }
.nc-daily-msg { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--nc-radius); font-size: 13px; line-height: 1.4; }
.nc-daily.is-near .nc-daily-msg { background: #fff4ce; color: #5b3d00; }
.nc-daily.is-reached .nc-daily-msg { background: #fde7e9; color: #7a1c20; }
[data-bs-theme="dark"] .nc-daily.is-near .nc-daily-msg { background: #433519; color: #f6dc9b; }
[data-bs-theme="dark"] .nc-daily.is-reached .nc-daily-msg { background: #442726; color: #ffc4c9; }
.nc-daily.is-compact { padding: 10px 12px; box-shadow: none; margin: 10px 0; }
.nc-daily-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(255,255,255,.16); color: #fff !important; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(255,255,255,.35); }
.nc-daily-chip:hover { background: rgba(255,255,255,.26); text-decoration: none !important; }
.nc-daily-chip .nc-icon { width: 14px; height: 14px; }
.nc-daily-chip.is-near { background: #fff4ce; color: #5b3d00 !important; border-color: #fff4ce; }
.nc-daily-chip.is-reached { background: #fde7e9; color: #7a1c20 !important; border-color: #fde7e9; }
.nc-daily-chip .nc-chip-t { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
	.nc-daily-chip { padding: 0 8px; }
	.nc-daily-chip .nc-chip-l { display: none; }
	.nc-daily .nc-meter-top { flex-wrap: wrap; }
}

/* 0.15: visitante sem conta e miniaturas */
.nc-guestbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 20px;background:#fff8e1;border-bottom:1px solid #f0dc9c;color:#4d3b00;font-size:14px}
.nc-guestbar span{flex:1 1 320px}
.nc-guestbar .nc-ic{flex:0 0 auto}
[data-nc-theme="dark"] .nc-guestbar{background:#3a3112;border-color:#5a4a12;color:#f7e7b0}
.nc-thumbs-list{list-style:none;padding:0;margin:16px 0 0;columns:3;column-gap:24px;font-size:14px}
.nc-thumbs-list li{display:flex;align-items:center;gap:6px;break-inside:avoid;padding:2px 0;color:var(--nc-muted)}
.nc-thumbs-list li.is-done{color:inherit}
@media (max-width:700px){.nc-thumbs-list{columns:1}}
