/* The Message Center's "Secure" panel (securestaff.js). Built on the app's own tokens and its
   .modal / .btn / .field-input classes, so it reads as part of the app, not a bolt-on. */
.sl-overlay { padding-top: 5vh; }
.sl-modal { width: min(640px, 96vw); max-height: 90vh; display: flex; flex-direction: column; }
.sl-modal .modal-head h3 svg { color: var(--primary-ink); }
.sl-tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); }
.sl-tabs button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0;
  padding: 9px 12px 11px; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px;
  transition: color .15s ease-out, border-color .15s ease-out;
}
.sl-tabs button:hover { color: var(--ink); }
.sl-tabs button.on { color: var(--primary-ink); border-bottom-color: var(--primary); }
.sl-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 6px; }
.sl-body { padding: 16px 20px 22px; overflow-y: auto; }

.sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .sl-grid { grid-template-columns: 1fr; gap: 0; } }
.sl-f { display: block; margin: 0 0 12px; }
.sl-f > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.sl-f em { font-style: normal; font-weight: 400; color: var(--muted); }
.sl-f .field-input { width: 100%; margin-bottom: 0; }
.sl-f textarea.field-input { resize: vertical; min-height: 110px; font: inherit; line-height: 1.5; }

.sl-files { margin: 2px 0 14px; }
.sl-filelist { list-style: none; margin: 8px 0 0; padding: 0; }
.sl-filelist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sl-filelist li:first-child { border-top: 0; }
.sl-filelist li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-filelist li small { color: var(--muted); font-variant-numeric: tabular-nums; }
.sl-filelist svg { color: var(--muted); flex: 0 0 auto; }

.sl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.sl-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
/* .btn-primary is width:100% app-wide (the login form) and a later .btn rule repaints it white — same fix as the quiz cards. */
.sl-actions .btn-primary { width: auto; padding: var(--s3) var(--s4); background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.sl-actions .btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.sl-actions .btn:disabled { opacity: .55; cursor: default; }
.sl-help { font-size: 13px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.sl-help strong { color: var(--ink-soft); }
.sl-err { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin: 0 0 12px; }
.sl-err[hidden] { display: none; }
.sl-ctx { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-soft); background: var(--primary-softer); border-radius: 8px; padding: 8px 12px; margin: 0 0 14px; }
.sl-ctx svg { color: var(--primary-ink); flex: 0 0 auto; }

.sl-done p { margin: 0 0 10px; }
.sl-linkrow { display: flex; gap: 8px; align-items: center; }
.sl-linkrow .field-input { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-soft); margin-bottom: 0; }
.sl-linkrow .btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.sl-h { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 18px 0 8px; }
.sl-link { border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 4px 10px 10px 4px; padding: 11px 13px; margin: 0 0 10px; background: var(--surface); }
.sl-link-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 7px; }
.sl-link-head small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sl-linkmore { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }

.sl-sent { list-style: none; margin: 0; padding: 0; }
.sl-sent li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sl-sent li:first-child { border-top: 0; }
.sl-sent small { color: var(--muted); }
.sl-sub { font-size: 13px; color: var(--muted); }
.sl-sent-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.sl-chip { align-self: start; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.sl-ok { background: var(--primary-soft); color: var(--primary-ink); }
.sl-wait { background: var(--surface-2, #eef2ef); color: var(--ink-soft); }
.sl-off { background: var(--surface-2, #eef2ef); color: var(--muted); }
.sl-bad { background: var(--danger-soft); color: var(--danger); }
.sl-danger { color: var(--danger) !important; }

.sl-overlay .linkbtn { font: inherit; font-size: 13px; color: var(--primary-ink); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sl-overlay .linkbtn:disabled { color: var(--muted); cursor: default; }
@media (prefers-reduced-motion: reduce) { .sl-tabs button { transition: none; } }

/* "Send securely" beside "Send email" in both email composers (app.js sendSecureFromComposer). It takes over the
   push to the right edge, so the pair sits together with Send email last. */
.compose-send-row .btn-send-secure { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s2); }
.compose-send-row .btn-send-secure svg { width: 16px; height: 16px; }
.compose-send-row .btn-send-secure + .btn-send-email { margin-left: 0; }

/* The lock button beside Search & jump at the top of the inbox list. */
.rail-left .rail-jump:has(+ .rail-secure) { display: inline-flex; width: calc(100% - 58px); margin-right: 0; vertical-align: top; }
.rail-left .rail-jump:has(+ .rail-secure) kbd { display: none; }   /* room for the full words; Cmd-K still works */
.rail-left .rail-secure {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: top;
  width: 40px; height: 38px; margin: 2px 6px 10px 6px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.rail-left .rail-secure:hover { border-color: var(--primary); background: var(--primary-softer); color: var(--primary-ink); }
/* Folded strip: an icon under the search icon (the strip hides every other child). */
.body.left-rail-min:not(:has(.ap-inbox-layout)) .rail-left > .rail-secure.rail-secure {
  display: flex; width: 100%; height: auto; margin: 0; padding: 8px 0; border: 0; background: transparent; color: var(--muted); }
.body.left-rail-min:not(:has(.ap-inbox-layout)) .rail-left > .rail-secure.rail-secure:hover { color: var(--ink); background: var(--surface-2); }
.docs-outside .rail-secure { display: none; }
@media (max-width: 760px) { .rail-secure { display: none !important; } }
.sl-lead { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.5; }

/* My Inbox category tabs (app.js renderMailSortTabs, lib/mailsort.js) — they reuse the .cat-filter chip style. */
.cat-filter .ms-n { display: inline-block; min-width: 18px; text-align: center; padding: 0 6px; border-radius: 999px; font-size: 11px;
  font-weight: 700; background: var(--primary-soft); color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.cat-filter button.active .ms-n { background: rgba(255, 255, 255, .25); color: inherit; }
.cat-filter button.ms-promo { background: transparent; border-style: dashed; color: var(--muted); }
.cat-filter button.ms-promo:hover { color: var(--ink); background: var(--surface-2); }
.ms-unsub { width: 100%; border-collapse: collapse; font-size: 13px; }
.ms-unsub td { padding: 7px 6px; border-top: 1px solid var(--line); }
.ms-unsub tr:first-child td { border-top: 0; }
.ms-unsub td:first-child { word-break: break-all; }
.ms-unsub td:nth-child(2), .ms-unsub td:nth-child(3) { color: var(--muted); white-space: nowrap; }
