/* BULLDER · notify — recordatorios y correos (prefijo nt-) */
.nt-page { display: flex; flex-direction: column; gap: var(--sp-5); }
.nt-col { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.nt-col > .section-head { margin: var(--sp-3) 0 0; }
.nt-col .section-head h3 { font-size: 18px; }
@media (min-width: 960px) {
  .nt-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
  .nt-col:last-child { position: sticky; top: calc(var(--topbar-h) + 16px); }
  .nt-col:last-child > section > .section-head:first-child { margin-top: 0; }
}

/* encabezado */
.nt-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--sp-4); padding: 20px var(--sp-4) var(--sp-4);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), linear-gradient(160deg, var(--surface-2), var(--surface));
}
.nt-hero-top { display: flex; gap: 14px; align-items: flex-start; }
.nt-hero h2 { font-size: 20px; margin-bottom: 4px; }
.nt-hero p { font-size: 14px; }
.nt-hero-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px var(--accent-soft); }
.nt-hero .banner { background: color-mix(in srgb, var(--info) 14%, transparent); }
.nt-hero .banner.is-warn { background: var(--warn-soft); }
.nt-perm { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--r-sm); background: var(--bg-elev); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }

/* tarjetas de recordatorio */
.nt-card { padding: 0; overflow: hidden; transition: border-color .2s; }
.nt-card.is-on { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.nt-row { display: flex; align-items: center; gap: var(--sp-3); padding: 14px var(--sp-4); min-height: 68px; cursor: pointer; }
.nt-title { display: block; font-weight: 650; }
.nt-sub { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; line-height: 1.35; }
.nt-more { padding: 0 var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); animation: nt-open .22s var(--ease); }
@keyframes nt-open { from { opacity: 0; transform: translateY(-4px); } }
.nt-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.nt-day {
  height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font: 700 15px/1 var(--font-display);
  border: 1.5px solid transparent; transition: background .15s, color .15s, transform .12s var(--ease);
}
.nt-day:hover { border-color: var(--line-strong); }
.nt-day:active { transform: scale(.92); }
.nt-day.is-on { background: var(--accent); color: var(--on-accent); }
.nt-time { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 6px 6px 6px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.nt-time-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.nt-time-input { width: auto; min-width: 118px; min-height: 44px; text-align: center; font: 700 19px/1 var(--font-display); font-variant-numeric: tabular-nums; background: var(--bg-elev); padding: 0 12px; }
.nt-time-input::-webkit-calendar-picker-indicator { filter: invert(.6); cursor: pointer; }
:root[data-theme="light"] .nt-time-input::-webkit-calendar-picker-indicator { filter: none; }
.nt-next { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.nt-next .ic { color: var(--accent); }

/* correos */
.nt-mail { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.nt-mail .li-icon { margin-top: 1px; }
.nt-mail .switch { margin-top: 4px; }
.nt-mail-text { cursor: pointer; }
.nt-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; min-height: 30px; padding: 0 10px 0 8px; border-radius: 9px; background: var(--surface-2); color: var(--text); font: 650 12.5px/1 var(--font); transition: background .15s; }
.nt-link:hover { background: var(--surface-3); }
.nt-test { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.nt-test b { font-size: 15px; }
.nt-sent-head { margin: var(--sp-5) 0 var(--sp-2); }
.nt-sent { display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.nt-sent-row { display: flex; align-items: center; gap: 10px; padding: 11px var(--sp-4); font-size: 14px; color: var(--text-2); }
.nt-sent-row + .nt-sent-row { border-top: 1px solid var(--line); }
.nt-foot { display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; margin-top: var(--sp-3); }
.nt-foot .ic { margin-top: 2px; }
.nt-col > .nt-foot { margin-top: var(--sp-1); }
@media (max-width: 420px) { .nt-test { flex-direction: column; align-items: stretch; } .nt-test .btn { width: 100%; } }

/* hoja: pedir permiso con contexto */
.nt-ask { display: flex; flex-direction: column; gap: var(--sp-4); padding-top: var(--sp-2); }
.nt-mock { display: flex; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.nt-mock-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; flex: none; overflow: hidden; }
.nt-mock-ic img { width: 30px; height: auto; }
:root[data-theme="light"] .nt-mock-ic img.only-light { display: none !important; }
:root[data-theme="light"] .nt-mock-ic img.only-dark { display: block !important; }
.nt-mock-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.nt-mock-top b { font-weight: 650; letter-spacing: .04em; }
.nt-mock-title { display: block; font-size: 14.5px; margin-top: 2px; }
.nt-mock-body { display: block; font-size: 13.5px; color: var(--text-2); }
.nt-ask-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nt-ask-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.nt-ask-list .ic { color: var(--accent); flex: none; }

/* hoja: vista previa del correo */
.nt-preview { display: flex; flex-direction: column; gap: var(--sp-3); height: 100%; }
.sheet-body:has(> .nt-preview) { display: flex; flex-direction: column; }
.nt-preview-subj { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.nt-frame { flex: 1; width: 100%; min-height: 60vh; border: 0; border-radius: var(--r); background: #eef0f8; }

/* aviso dentro de la app */
.nt-nudge {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); max-width: 440px; margin: 0 auto;
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 8px 14px 14px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
#app[data-chrome="stack"] ~ .nt-nudge { bottom: calc(var(--safe-b) + 12px); }
#app[data-dock="1"] ~ .nt-nudge { bottom: calc(var(--tabbar-h) + var(--safe-b) + 88px); }
.nt-nudge.is-in { opacity: 1; transform: none; }
.nt-nudge b { display: block; font: 700 16px/1.25 var(--font-display); }
.nt-nudge p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.nt-nudge-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.nt-nudge-actions { display: flex; gap: 6px; margin-top: 10px; }
.nt-nudge-x { width: 36px; height: 36px; margin-top: -6px; color: var(--text-3); }
@media (min-width: 960px) { .nt-nudge, #app[data-chrome="stack"] ~ .nt-nudge { left: auto; right: 28px; bottom: 24px; width: 400px; } #app[data-dock="1"] ~ .nt-nudge { bottom: 100px; } }
