.client-apple-mail .screen-body { display: flow-root; background: #ececec; min-height: 300px; font-size: 13px; }
.am-prefs { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 14px; padding: 0 14px 14px; }
.am-toolbar { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 4px; margin: 0 -14px 12px; padding: 8px 10px; border-bottom: 1px solid #cfcfcf; background: #e4e4e4; font-size: 11px; color: #4a4a4a; }
.am-toolbar span { padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.am-toolbar .is-on { background: #d0d0d0; color: #0a64d8; font-weight: 600; }
.am-list { display: flex; flex-direction: column; min-height: 300px; background: #fff; border: 1px solid #c8c8c8; border-radius: 6px; overflow: hidden; }
.am-acct { display: flex; align-items: center; gap: 5px; padding: 6px; min-width: 0; font-size: 12px; }
.am-acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-acct.is-selected { background: #0a64d8; color: #fff; }
.am-at { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #3b8df5; color: #fff; font-style: normal; font-size: 12px; font-weight: 600; }
.am-plusminus { margin-top: auto; display: flex; border-top: 1px solid #d8d8d8; background: #f6f6f6; }
.am-plusminus b { width: 26px; text-align: center; font-weight: 400; font-size: 15px; line-height: 22px; border-right: 1px solid #d8d8d8; }
.am-pane { min-width: 0; }
.am-tabs { display: flex; justify-content: center; margin-bottom: 12px; }
.am-tabs span { padding: 3px 7px; font-size: 11.5px; border: 1px solid #c4c4c4; margin-left: -1px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-tabs span:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.am-tabs span:last-child { border-radius: 0 6px 6px 0; }
.am-tabs .is-on { background: #0a64d8; border-color: #0a64d8; color: #fff; }
.am-group { margin: 10px 0 6px; font-weight: 600; }
.am-form { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.am-lbl { text-align: right; overflow-wrap: anywhere; }
.client-apple-mail .field { min-height: 22px; padding: 2px 6px; border-color: #c4c4c4; border-radius: 5px; }
.am-check { display: flex; align-items: center; gap: 6px; min-width: 0; }
.am-box { flex: none; width: 14px; height: 14px; border: 1px solid #a9a9a9; border-radius: 3px; background: #fff; }
.am-box.is-on { position: relative; background: #0a64d8; border-color: #0a64d8; }
.am-box.is-on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.am-portrow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.am-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #28c840; }
.am-btn { justify-self: start; display: inline-block; padding: 3px 12px; border: 1px solid #c4c4c4; border-radius: 6px; background: #fff; white-space: nowrap; }
.am-btn.is-primary { background: #0a64d8; border-color: #0a64d8; color: #fff; }
.am-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.am-buttons .am-btn:first-child { margin-right: auto; }
.am-prefs .am-buttons .am-btn:first-child { margin-right: 0; }
.am-sheet { max-width: 440px; margin: 26px auto; padding: 18px 20px; background: #f6f6f6; border: 1px solid #c4c4c4; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.am-sheet.am-narrow { max-width: 300px; text-align: center; }
.am-sheet h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.am-sheet.am-narrow h2 { justify-content: center; font-size: 16px; }
.am-sheet p { margin: 0 0 10px; }
.am-strong { font-weight: 600; }
.am-small { margin-top: 10px; font-size: 12px; color: #5a5a5a; }
.am-link { display: inline-block; color: #0a64d8; }
.am-stack { display: grid; gap: 6px; margin-top: 12px; }
.am-stack .am-btn { justify-self: stretch; text-align: center; padding: 6px 12px; }
.am-providers { display: grid; gap: 6px; }
.am-providers span { padding: 8px 12px; border: 1px solid #d0d0d0; border-radius: 8px; background: #fff; font-weight: 600; }
.am-error { margin: 12px 0 0; color: #d70015; }
.am-apps { display: grid; gap: 8px; padding: 4px 0 4px 34px; }

/* ---- visual pass: Mail settings window as in macOS Sequoia / Tahoe ---- */
.client-apple-mail .screen-body { background: #f4f4f4; font-size: 13px; color: #262626; }
.client-apple-mail .mac-titlebar { background: #fff; border-bottom: 0; height: 34px; line-height: 34px; color: #4a4a4a; }
.am-prefs { grid-template-columns: 172px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 0 12px; padding: 0 16px 16px; }
.am-toolbar { margin: 0 -16px 18px; padding: 2px 10px 10px; gap: 2px 2px; background: #fff; border-bottom: 1px solid #dedede; font-size: 11px; color: #6b6b6b; }
.am-toolbar span { display: grid; justify-items: center; gap: 3px; padding: 5px 7px 4px; border-radius: 7px; }
.am-toolbar .ico { width: 23px; height: 23px; stroke-width: 1.300; }
.am-toolbar em { font-style: normal; }
.am-aa { height: 23px; font-size: 19px; font-weight: 400; line-height: 23px; letter-spacing: -.020em; }
.am-toolbar .is-on { background: #f0f0f0; color: #0a7aff; font-weight: 400; }
.am-list { grid-row: 2; min-height: 280px; border-color: #dcdcdc; border-radius: 6px; }
.am-pane { grid-row: 2 / span 2; padding: 0 16px 16px; background: #ededed; border: 1px solid #e2e2e2; border-radius: 8px; }
.am-acct { gap: 6px; padding: 8px 6px; font-size: 12.500px; }
.am-acct.is-selected { background: #0a60d0; }
.am-at { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(#55b0ff, #1a7df0); font-size: 17px; font-weight: 500; }
.am-acct.is-selected .am-at { box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
.am-plusminus { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 10px; border: 0; border-radius: 6px; background: #e6e6e6; }
.am-plusminus b { width: 30px; line-height: 24px; font-size: 17px; font-weight: 300; color: #4a4a4a; border-right: 1px solid #cfcfcf; }
.am-plusminus b:last-child { border-right: 0; }
.am-tabs { margin: -11px 0 16px; }
.am-tabs span { padding: 3px 12px; font-size: 13px; border: 0; margin-left: 0; background: #e2e2e2; color: #262626; box-shadow: inset -1px 0 0 #cfcfcf; }
.am-tabs span:last-child { box-shadow: none; }
.am-tabs .is-on { background: #0a7aff; color: #fff; border-radius: 6px; box-shadow: none; font-weight: 500; }
.am-group { margin: 14px 0 8px; font-weight: 700; }
.am-form { gap: 9px 10px; }
.client-apple-mail .field { min-height: 24px; padding: 3px 8px; border: 0; border-radius: 5px; background: #fff; box-shadow: 0 0 0 .500px rgba(0, 0, 0, .14), 0 .500px 1px rgba(0, 0, 0, .12); }
.client-apple-mail .field.select { background: #e0e0e0; box-shadow: none; }
.client-apple-mail .field.select::after { content: "\2303\2304"; font-size: 8px; letter-spacing: -.100em; line-height: 18px; color: #4a4a4a; }
.am-box { width: 15px; height: 15px; border: 0; border-radius: 4px; background: #d9d9d9; box-shadow: inset 0 0 0 .500px rgba(0, 0, 0, .12); }
.am-box.is-on { background: #0a7aff; }
.am-box.is-on::after { left: 5px; top: 2px; }
.am-btn { padding: 3px 14px; border: 0; border-radius: 6px; background: #e0e0e0; color: #262626; }
.am-btn.is-primary { background: #0a7aff; color: #fff; }
.am-sheet { background: #ececec; border: 1px solid #d0d0d0; border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); padding: 20px 22px; }
.am-sheet h2 { gap: 12px; font-size: 14px; }
.am-sheet .am-form { grid-template-columns: minmax(90px, 30%) minmax(0, 1fr); }
.am-sheet .am-buttons .am-btn { min-width: 92px; text-align: center; padding: 4px 14px; }
.am-providers span { border: 0; border-bottom: 1px solid #dcdcdc; border-radius: 0; background: none; padding: 9px 4px; font-weight: 500; text-align: left; }
.am-providers { gap: 0; padding: 2px 12px; border-radius: 10px; background: #f6f6f6; }
.am-providers span:last-child { border-bottom: 0; }
.am-link { color: #0a7aff; }
.am-toolbar { font-size: 10.500px; letter-spacing: -.010em; }
.am-toolbar span { padding: 5px 4px 4px; }
.am-tabs span { padding: 3px 8px; font-size: 12px; }
.am-plusminus b:first-child { border-radius: 6px 0 0 6px; }
.am-tabs span { padding: 3px 6px; }
.am-tabs span { font-size: 11.500px; padding: 3px 5px; overflow: visible; }
/* the "Mail" menu in the menu bar, before the settings window exists */
.am-desktop { min-height: 300px; background: linear-gradient(#5b7fa8, #8fa9c4); }
.am-menubar { display: flex; align-items: center; gap: 14px; padding: 4px 12px; background: rgba(255, 255, 255, .78); font-size: 13px; }
.am-menubar i { width: 34px; height: 8px; border-radius: 4px; background: #b9b9b9; }
.am-menubar .is-open { padding: 1px 8px; border-radius: 5px; background: #0a64d8; color: #fff; }
.am-menu { width: 230px; margin: 0 0 0 8px; padding: 6px; border-radius: 10px; background: #f3f3f3; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); display: grid; gap: 4px; }
.am-menu i { height: 9px; width: 55%; margin: 6px 8px; border-radius: 4px; background: #cfcfcf; }
.am-menu hr { margin: 2px 8px; border: 0; border-top: 1px solid #d3d3d3; }
.am-menu span { padding: 4px 8px; border-radius: 5px; font-size: 14px; width: fit-content; }
/* as in the pictures of macOS 26: rules between groups, "Continue" beside the text and greyed out while the field is empty */
.am-rule { grid-column: 1 / -1; width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #d4d4d4; }
.am-wide { grid-column: 1 / -1; }
.am-btn.is-off { opacity: .45; }
.am-addrow { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.am-addrow .am-small { flex: 1; min-width: 0; margin-bottom: 0; }
.am-addrow .am-btn { flex: none; margin-top: 10px; }
.am-addrow .am-link { display: block; width: fit-content; margin-top: 3px; }
.am-sheet.am-add { max-width: 400px; }
.am-add .am-strong { text-align: left; margin-bottom: 6px; }
.am-add .am-buttons { margin-top: 46px; }
.am-add .am-buttons .am-btn:first-child { margin-right: 0; }
