/* OWNER: lane N7 (n7-screen). Notifications screen styles. Theme tokens only, so light, dark and marshmallow all follow.
   Layout is one column that scrolls inside the screen; every target is 44px; nothing can push past the edge. */
.nt { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; min-width: 0; background: var(--bg); color: var(--fg); }
.nt-scroll { flex: 1 1 auto; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 16px calc(env(safe-area-inset-bottom, 0px) + 28px); }
.nt-body { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; min-width: 0; }
.nt-card { display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.nt-card > * { margin: 0; }
.nt-h { margin: 0; font-size: var(--fs-card); font-weight: 600; color: var(--fg); }
.nt-quiet { font-size: var(--fs-body); line-height: 1.45; color: var(--muted); }
.nt-fine { font-size: var(--fs-meta); color: var(--muted); }
.nt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nt .btn { white-space: normal; line-height: 1.2; text-align: center; padding-top: 10px; padding-bottom: 10px; max-width: 100%; }
.nt-big { width: 100%; min-height: 56px; font-size: var(--fs-card); }
.nt-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-body); line-height: 1.45; }
.nt-steps b { font-weight: 600; }

/* Messages sit above the cards and announce themselves; empty means nothing is drawn. */
.nt-msgbox { padding: 0 16px; }
.nt-msg { margin: 0 0 12px; max-width: 560px; padding: 12px 14px; border-radius: 10px; font-size: var(--fs-body); line-height: 1.4; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.nt-msg[hidden] { display: none; }
.nt-msg[data-kind="error"] { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.nt-msg[data-kind="ok"] { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); }

/* Switch rows. The button is the 44px target; the visible track and thumb sit smaller inside it. */
.nt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.nt-row + .nt-row { padding-top: 12px; border-top: 1px solid var(--line); }
.nt-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.nt-row-text b { font-size: var(--fs-body); font-weight: 600; }
.nt-row-text span { font-size: var(--fs-meta); color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.nt-toggle {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-size: 0; color: transparent; /* the On or Off word stays for screen readers only */
}
.nt-toggle::before {
  content: ""; flex: none; width: 40px; height: 24px; border-radius: 999px;
  background: var(--line); border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--line));
  transition: background var(--mo-fast, 120ms) var(--mo-ease, ease), border-color var(--mo-fast, 120ms) var(--mo-ease, ease);
}
.nt-toggle::after {
  content: ""; position: absolute; left: 5px; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-lift);
  transform: translateY(-50%) translateX(0);
  transition: transform var(--mo-fast, 120ms) var(--mo-ease, ease);
}
.nt-toggle[aria-checked="true"]::before { background: var(--accent); border-color: var(--accent); }
.nt-toggle[aria-checked="true"]::after { transform: translateY(-50%) translateX(16px); }
.nt-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.nt-toggle:disabled { opacity: .4; cursor: not-allowed; }

.nt-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.nt-time { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nt-time span { font-size: var(--fs-meta); font-weight: 600; color: var(--muted); }
.nt-card .book-seg { align-self: flex-start; }
.nt .book-seg .btn { min-height: 44px; } /* the shared segment is 36px, a touch target here must be 44 */
.nt-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* The sample salon line and the pretend alert. */
.nt-sample { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: var(--fs-body); line-height: 1.4; color: var(--fg);
  background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); }
.nt-demo { align-items: flex-start; }
.nt-lock { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.nt-lock-app { font-size: var(--fs-chip); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.nt-lock b { font-size: var(--fs-body); font-weight: 600; }
.nt-lock p { margin: 0; font-size: var(--fs-body); color: var(--fg); }
.nt-lock-held { margin: 0; font-size: var(--fs-body); line-height: 1.4; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .nt-toggle::before, .nt-toggle::after { transition: none; }
}
