/* Gmail Rules (Story 5605) -- every filter on the real Gmail account, in plain English.
   Pinned chrome: the icon band, header and status bar never scroll; .gr-body is the one scroller. */

body { background: #F2F2F4; margin: 0; font-family: "Segoe UI", system-ui, sans-serif; }

.page-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
#lwIconBand, .ct-header, .gr-bar, .gr-find { flex: 0 0 auto; }

.ct-header {
    background: #3C3C3C; color: #fff; padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
}
.ct-header h1 { margin: 0; font-size: 14pt; font-weight: 600; flex: 1; }
.ct-header button { color: #fff; background: transparent; border: 1px solid #6A6A6A; border-radius: 3px;
    padding: 4px 12px; font: inherit; cursor: pointer; }
.ct-header .gr-xlink { color: #A8A8A8; font-size: 11px; text-decoration: none; white-space: nowrap; }
.ct-header .gr-xlink:hover, .ct-header .gr-xlink:focus { color: #fff; text-decoration: underline; }

.gr-bar { background: #fff; border-bottom: 1px solid #E2E2E5; padding: 8px 12px; display: flex; gap: 8px; align-items: center; }
.gr-status { flex: 1 1 auto; font-size: 12px; color: #334155; line-height: 1.45; }
.gr-status b { color: #0F172A; }
.gr-btn { background: #fff; color: #0A66C2; border: 1px solid #0A66C2; border-radius: 4px; padding: 6px 12px;
    font: 600 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.gr-btn:disabled { opacity: .5; cursor: default; }

.gr-find { background: #fff; border-bottom: 1px solid #E2E2E5; padding: 8px 12px; }
.gr-find input {
    width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #C9D0D8; border-radius: 4px;
    font: 14px "Segoe UI", system-ui, sans-serif;
}
.gr-none { font-size: 13px; color: #64748B; padding: 8px 2px; }

.gr-body { flex: 1 1 auto; overflow: auto; padding: 10px 12px 24px; }
.gr-err { color: #991B1B; background: #FEF2F2; border-radius: 4px; padding: 8px 10px; font-size: 13px; }

/* ---- a section: your rules / made by Mail Triage / missing ---- */
.gr-section { margin-bottom: 14px; }
.gr-section > summary {
    list-style: none; cursor: pointer; padding: 6px 2px; font: 600 13px "Segoe UI", system-ui, sans-serif; color: #334155;
}
.gr-section > summary::-webkit-details-marker { display: none; }
.gr-section > summary .gr-arrow { display: inline-block; transition: transform .15s; margin-right: 4px; }
.gr-section:not([open]) > summary .gr-arrow { transform: rotate(-90deg); }
.gr-section > summary .n { font-weight: 400; color: #64748B; }
.gr-section .gr-sub { font-size: 12px; color: #64748B; margin: 0 2px 8px; }

/* ---- one rule ---- */
.gr-rule { background: #fff; border: 1px solid #E2E2E5; border-left: 4px solid #0A66C2; border-radius: 4px;
    padding: 8px 12px; margin-bottom: 8px; }
.gr-rule.leonardo { border-left-color: #94A3B8; }
.gr-rule.missing { border-left-color: #D97706; }
.gr-row { display: flex; gap: 8px; font-size: 13px; color: #0F172A; line-height: 1.5; }
.gr-row + .gr-row { margin-top: 4px; }
.gr-word { flex: 0 0 38px; font-weight: 700; color: #0A66C2; }
.gr-rule.leonardo .gr-word { color: #475569; }
.gr-row ul { margin: 0; padding: 0; list-style: none; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.gr-row li + li::before { content: "and "; color: #64748B; }
.gr-why { margin-top: 6px; font-size: 12px; color: #64748B; }
.gr-why a { color: #0A66C2; }

@media (max-width: 600px) {
    .ct-header { gap: 8px; padding: 8px 12px; }
}
