/* ── In-app notices (notices.js): the banner and the Admin composer ───────
   Buttons are styled by class inside .ntc-* containers with !important so
   the site-wide button skins cannot restyle them. */

.ntc-wrap {
  position: fixed;
  z-index: 8500;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  width: min(560px, calc(100vw - 24px));
  transform: translate(-50%, -16px);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
  pointer-events: none;
}
.ntc-wrap.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

.ntc-bar {
  --ntc-accent: #ffc500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--ntc-accent);
  border-radius: 16px;
  background: #151517;
  color: #f2f2f3;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-family: 'Space Grotesk', -apple-system, 'Segoe UI', system-ui, sans-serif;
}
.ntc-bar.ntc-success { --ntc-accent: #3ddc84; }
.ntc-bar.ntc-warning { --ntc-accent: #ff5a3c; }
.ntc-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--ntc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ntc-accent) 20%, transparent); }
.ntc-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.ntc-text strong { font-size: 14px; line-height: 1.3; }
.ntc-text span { font-size: 13px; line-height: 1.45; color: #a9a9b0; overflow-wrap: anywhere; }

.ntc-bar .ntc-open {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  min-height: 36px;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #c21500, #ffc500) !important;
  color: #1a0b00 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.ntc-bar .ntc-x {
  flex: 0 0 auto;
  display: inline-grid !important;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #d3d3d6 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.ntc-bar :is(.ntc-open, .ntc-x):focus-visible { outline: 2px solid #ffc500 !important; outline-offset: 2px; }
.ntc-bar.ntc-preview { box-shadow: none; }

:root.light-mode .ntc-bar { background: #ffffff; color: #101012; border-color: rgba(16, 16, 18, 0.1); border-left-color: var(--ntc-accent); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16); }
:root.light-mode .ntc-text span { color: #5f5f66; }
:root.light-mode .ntc-bar .ntc-x { background: rgba(16, 16, 18, 0.07) !important; color: #101012 !important; }

/* ── Admin composer ── */
.ntc-form { display: grid; gap: 12px; }
.ntc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ntc-field { display: grid; gap: 6px; font-size: 12px; color: var(--text-secondary, #a9a9b0); }
.ntc-field > span { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.ntc-field em { font-style: normal; font-weight: 400; opacity: 0.75; font-variant-numeric: tabular-nums; }
.ntc-field :is(input, textarea, select) {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary, #f2f2f3);
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  resize: vertical;
}
.ntc-field :is(input, textarea, select):focus { outline: 2px solid rgba(255, 197, 0, 0.6); outline-offset: 1px; }
.ntc-check { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text-secondary, #a9a9b0); }
.ntc-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0 !important; accent-color: #ffc500; }
.ntc-preview-wrap { display: grid; gap: 6px; }
.ntc-preview-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #7a7a82); }
.ntc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ntc-actions .acct-hint { margin: 0; }
#ntcSend {
  display: inline-flex !important;
  align-items: center;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #c21500, #ffc500) !important;
  color: #1a0b00 !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;
  font: 700 14px 'Space Grotesk', system-ui, sans-serif !important;
  cursor: pointer;
}
#ntcSend:disabled { opacity: 0.6; cursor: progress; }
.ntc-error { color: var(--pl-red, #ff5a3c) !important; }

.ntc-subhead { margin: 22px 0 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #7a7a82); }
.ntc-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ntc-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.ntc-item-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.ntc-item-main strong { font-size: 14px; }
.ntc-item-main span { font-size: 13px; color: var(--text-secondary, #a9a9b0); overflow-wrap: anywhere; }
.ntc-item-main small { font-size: 11.5px; color: var(--text-muted, #7a7a82); }
.ntc-status { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, 0.06); color: var(--text-muted, #9a9aa0); }
.ntc-status-live { background: rgba(61, 220, 132, 0.14); color: #3ddc84; }
.ntc-status-scheduled { background: rgba(255, 197, 0, 0.14); color: #ffc500; }
.ntc-item .ntc-end {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(255, 90, 60, 0.5) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #ff6a55 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer;
}

:root.light-mode .ntc-field :is(input, textarea, select) { border-color: rgba(16, 16, 18, 0.15); background: #fff; color: #101012; }
:root.light-mode .ntc-item { border-color: rgba(16, 16, 18, 0.1); background: rgba(16, 16, 18, 0.02); }

@media (max-width: 640px) {
  .ntc-row { grid-template-columns: 1fr; }
  .ntc-item { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .ntc-wrap { transition: none; }
}
