:root {
  --nc-ink: #142033;
  --nc-muted: #6a7688;
  --nc-line: #dfe5eb;
  --nc-soft: #f1f5f7;
  --nc-mint: #1d8f78;
  --nc-mint-dark: #116b59;
  --nc-mint-soft: #e3f5ef;
  --nc-blue: #3b69e8;
  --nc-danger: #b42318;
}

body { background: #f4f6f5; }
.nc-page [hidden] { display: none !important; }
.nc-back { color: rgba(255,255,255,.58); text-decoration: none; }
.nc-page { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 60px; }
.nc-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.nc-eyebrow, .nc-kicker { color: var(--nc-mint-dark); font: 700 11px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.nc-hero h1 { margin: 6px 0 8px; font: 500 clamp(34px, 4vw, 58px)/.98 var(--display); letter-spacing: .025em; color: var(--nc-ink); }
.nc-hero p { max-width: 660px; color: var(--nc-muted); font-size: 14px; line-height: 1.5; }
.nc-admin-badge { margin-top: 8px; padding: 10px 14px; color: var(--nc-mint-dark); background: var(--nc-mint-soft); border: 1px solid #bde6d9; border-radius: 999px; font: 600 12px var(--mono); }

.nc-alert { margin: 0 0 18px; padding: 13px 16px; border: 1px solid #f2c3bd; background: #fff2f0; color: var(--nc-danger); border-radius: 12px; font-size: 13px; }
.nc-alert.is-success { color: #136c52; background: #e9f8f2; border-color: #b8e5d5; }
.nc-loading { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--nc-ink); }
.nc-loading div { display: flex; flex-direction: column; gap: 5px; }
.nc-loading span:not(.nc-spinner) { color: var(--nc-muted); font-size: 13px; }
.nc-spinner { width: 28px; height: 28px; border: 3px solid #d8e3df; border-top-color: var(--nc-mint); border-radius: 50%; animation: nc-spin .8s linear infinite; }
@keyframes nc-spin { to { transform: rotate(360deg); } }

.nc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: 18px; }
.nc-stack { display: grid; gap: 18px; }
.nc-side { position: sticky; top: 82px; }
.nc-panel { background: #fff; border: 1px solid var(--nc-line); border-radius: 18px; padding: 22px; box-shadow: 0 8px 30px rgba(27,46,61,.055); }
.nc-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.nc-section-head > div { display: flex; align-items: center; gap: 10px; }
.nc-section-head h2 { margin: 0; font: 700 17px var(--sans); color: var(--nc-ink); }
.nc-section-head p { margin: 3px 0 0; color: var(--nc-muted); font-size: 12px; }
.nc-history .nc-section-head > div { display: block; }
.nc-step { width: 26px; height: 26px; display: inline-grid; place-items: center; flex: 0 0 26px; background: var(--nc-ink); color: #fff; border-radius: 8px; font: 600 12px var(--mono); }
.nc-link { border: 0; background: transparent; color: var(--nc-mint-dark); font: 700 12px var(--sans); cursor: pointer; }
.nc-link:hover { text-decoration: underline; }

.nc-channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nc-channel { min-height: 82px; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1.5px solid var(--nc-line); border-radius: 13px; cursor: pointer; transition: .15s ease; }
.nc-channel:hover { border-color: #9bb5ad; }
.nc-channel.is-selected { border-color: var(--nc-mint); background: #f6fcfa; box-shadow: inset 0 0 0 1px var(--nc-mint); }
.nc-channel input { position: absolute; opacity: 0; pointer-events: none; }
.nc-channel-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; background: var(--nc-soft); border-radius: 10px; color: var(--nc-ink); font-size: 18px; }
.nc-channel strong, .nc-channel small { display: block; }
.nc-channel strong { color: var(--nc-ink); font-size: 13px; }
.nc-channel small { margin-top: 3px; color: var(--nc-muted); font-size: 10px; line-height: 1.3; }
.nc-check { margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--nc-line); border-radius: 50%; color: transparent; font-size: 11px; }
.nc-channel.is-selected .nc-check { color: #fff; border-color: var(--nc-mint); background: var(--nc-mint); }

.nc-field { margin-top: 16px; }
.nc-field:first-of-type { margin-top: 0; }
.nc-field label, .nc-label-row label { display: block; margin: 0 0 7px; color: var(--nc-ink); font-size: 12px; font-weight: 700; }
.nc-field label small { color: var(--nc-muted); font-weight: 500; }
.nc-label-row { display: flex; justify-content: space-between; align-items: center; }
.nc-label-row > span { color: var(--nc-muted); font: 10px var(--mono); }
.nc-field input, .nc-field textarea, .nc-search input { width: 100%; border: 1px solid var(--nc-line); background: #fff; color: var(--nc-ink); border-radius: 11px; font: 13px var(--sans); outline: none; }
.nc-field input { height: 44px; padding: 0 13px; }
.nc-field textarea { padding: 12px 13px; resize: vertical; min-height: 142px; line-height: 1.55; }
.nc-field input:focus, .nc-field textarea:focus, .nc-search:focus-within { border-color: var(--nc-mint); box-shadow: 0 0 0 3px rgba(29,143,120,.11); }
.nc-help { margin-top: 6px; color: var(--nc-muted); font-size: 10px; }
.nc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nc-upload-row { margin-top: 14px; }
.nc-upload { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed #aebbc4; border-radius: 12px; cursor: pointer; background: #fafcfc; }
.nc-upload:hover { border-color: var(--nc-mint); background: #f5fbf9; }
.nc-upload input { position: absolute; opacity: 0; pointer-events: none; }
.nc-upload-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--nc-mint-soft); color: var(--nc-mint-dark); font-size: 22px; }
.nc-upload strong, .nc-upload small { display: block; }
.nc-upload strong { font-size: 12px; }.nc-upload small { margin-top: 3px; color: var(--nc-muted); font-size: 10px; }
.nc-image-file { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 9px; border: 1px solid var(--nc-line); border-radius: 12px; }
.nc-image-file img { width: 58px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--nc-soft); }
.nc-image-file strong, .nc-image-file small { display: block; max-width: 430px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-image-file strong { font-size: 12px; }.nc-image-file small { margin-top: 4px; color: var(--nc-muted); font: 10px var(--mono); }
.nc-image-file button { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--nc-soft); color: var(--nc-ink); cursor: pointer; font-size: 19px; }

.nc-selection-count { color: var(--nc-muted); font: 11px var(--mono); }
.nc-target-tabs { display: flex; gap: 5px; padding: 4px; background: var(--nc-soft); border-radius: 11px; overflow-x: auto; }
.nc-target-tabs button { flex: 1; min-width: 105px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--nc-muted); font: 600 12px var(--sans); cursor: pointer; }
.nc-target-tabs button span { margin-left: 5px; display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; background: #fff; border: 1px solid var(--nc-line); border-radius: 99px; font: 10px var(--mono); }
.nc-target-tabs button.is-active { background: #fff; color: var(--nc-ink); box-shadow: 0 2px 7px rgba(30,45,60,.09); }
.nc-target-tools { display: flex; gap: 9px; align-items: center; margin-top: 12px; }
.nc-search { height: 40px; flex: 1; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--nc-line); border-radius: 10px; background: #fff; color: var(--nc-muted); }
.nc-search input { height: 36px; padding: 0; border: 0; box-shadow: none !important; }
.nc-secondary { min-height: 38px; padding: 0 13px; border: 1px solid var(--nc-line); border-radius: 9px; background: #fff; color: var(--nc-ink); font: 600 11px var(--sans); cursor: pointer; }
.nc-secondary:hover { border-color: #aab7bf; background: var(--nc-soft); }
.nc-secondary:disabled { opacity: .45; cursor: not-allowed; }
.nc-clear { padding: 0 5px; white-space: nowrap; }
.nc-target-list { height: 268px; margin-top: 10px; overflow-y: auto; border: 1px solid var(--nc-line); border-radius: 11px; }
.nc-target-item { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-bottom: 1px solid #edf0f2; cursor: pointer; }
.nc-target-item:last-child { border-bottom: 0; }
.nc-target-item:hover { background: #f8faf9; }
.nc-target-item input { width: 17px; height: 17px; accent-color: var(--nc-mint); }
.nc-target-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 9px; background: #e8eefc; color: #3159bd; font: 700 11px var(--mono); }
.nc-target-copy { min-width: 0; }
.nc-target-copy strong, .nc-target-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-target-copy strong { color: var(--nc-ink); font-size: 12px; }.nc-target-copy small { margin-top: 3px; color: var(--nc-muted); font-size: 10px; }
.nc-target-count { margin-left: auto; color: var(--nc-muted); font: 10px var(--mono); }
.nc-empty { height: 100%; display: grid; place-items: center; padding: 30px; color: var(--nc-muted); text-align: center; font-size: 12px; }
.nc-selected-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.nc-chip { display: flex; align-items: center; gap: 6px; max-width: 210px; padding: 5px 8px; color: var(--nc-mint-dark); background: var(--nc-mint-soft); border-radius: 99px; font-size: 10px; }
.nc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.nc-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.nc-more-chip { color: var(--nc-muted); background: var(--nc-soft); }
.nc-audience-summary { display: flex; align-items: center; gap: 14px; margin-top: 13px; padding: 13px; background: #f7f9f8; border-radius: 11px; }
.nc-audience-summary > div:first-child { min-width: 96px; }
.nc-audience-summary strong, .nc-audience-summary span { display: block; }
.nc-audience-summary strong { color: var(--nc-ink); font: 700 22px var(--mono); }.nc-audience-summary span { color: var(--nc-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.nc-preview-status { flex: 1; color: var(--nc-muted); font-size: 11px; }

.nc-preview-panel { padding: 22px; }
.nc-phone { margin-top: 16px; padding: 15px 12px 35px; background: linear-gradient(160deg,#dbe5e2,#f4eee7); border: 8px solid var(--nc-ink); border-radius: 31px; box-shadow: 0 18px 35px rgba(21,31,46,.18); }
.nc-phone-top { display: flex; justify-content: space-between; padding: 0 8px 22px; color: var(--nc-ink); font: 700 9px var(--mono); }
.nc-notification-preview { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 9px; padding: 11px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); border-radius: 15px; box-shadow: 0 5px 18px rgba(18,34,45,.12); }
.nc-app-icon { width: 35px; height: 35px; display: grid; place-items: center; background: var(--nc-ink); color: #fff; border-radius: 9px; font: 500 19px var(--display); }
.nc-preview-copy { min-width: 0; }.nc-preview-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--nc-muted); font-size: 8px; }.nc-preview-meta strong { color: var(--nc-ink); letter-spacing: .04em; }
.nc-preview-title { margin-top: 5px; color: var(--nc-ink); font-weight: 700; font-size: 11px; overflow-wrap: anywhere; }
.nc-preview-body { margin-top: 2px; color: #4c5969; font-size: 10px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.nc-notification-preview img { grid-column: 1 / -1; width: 100%; max-height: 150px; object-fit: cover; border-radius: 10px; margin-top: 4px; }
.nc-send-summary { margin: 20px 0 10px; color: var(--nc-muted); font: 11px var(--mono); text-align: center; }
.nc-send { width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: center; padding: 0 17px; border: 0; border-radius: 12px; color: #fff; background: var(--nc-mint); font: 700 13px var(--sans); cursor: pointer; box-shadow: 0 8px 18px rgba(29,143,120,.24); }
.nc-send:hover { background: var(--nc-mint-dark); }.nc-send:disabled { background: #aeb8b5; box-shadow: none; cursor: not-allowed; }
.nc-safety { margin-top: 11px; color: var(--nc-muted); text-align: center; font-size: 9px; line-height: 1.45; }

.nc-history { margin-top: 18px; }
.nc-history-list { overflow-x: auto; }
.nc-history-row { min-width: 760px; display: grid; grid-template-columns: minmax(220px,1.6fr) 120px 110px 120px 140px; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1px solid #edf0f2; }
.nc-history-row:first-child { border-top: 0; }.nc-history-title strong, .nc-history-title small { display: block; }.nc-history-title strong { color: var(--nc-ink); font-size: 12px; }.nc-history-title small { margin-top: 3px; color: var(--nc-muted); font-size: 10px; }
.nc-history-cell { color: var(--nc-muted); font-size: 10px; }.nc-history-cell strong { display: block; color: var(--nc-ink); font: 600 11px var(--mono); }
.nc-status { width: fit-content; padding: 4px 7px; border-radius: 99px; color: #12644f; background: #e4f5ef; font: 700 9px var(--mono); text-transform: uppercase; }
.nc-status.partial, .nc-status.failed { color: #9d331f; background: #fff0ec; }

@media (max-width: 1050px) { .nc-layout { grid-template-columns: 1fr; }.nc-side { position: static; }.nc-preview-panel { display: grid; grid-template-columns: 230px 1fr; gap: 0 22px; align-items: start; }.nc-preview-panel .nc-kicker { grid-column: 1 / -1; }.nc-phone { grid-row: span 4; } }
@media (max-width: 720px) { .nc-page { width: min(100% - 22px, 1480px); padding-top: 22px; }.nc-hero { display: block; }.nc-admin-badge { width: fit-content; }.nc-panel { padding: 16px; border-radius: 14px; }.nc-channel-grid, .nc-two-col { grid-template-columns: 1fr; }.nc-channel { min-height: 66px; }.nc-target-tools { flex-wrap: wrap; }.nc-search { flex-basis: 100%; }.nc-preview-panel { display: block; }.nc-history-row { min-width: 680px; }.top-nav { padding-inline: 14px; }.nav-right .nav-badge { display: none; } }
