:root{color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:#fff;color:#20242f;font:16px/1.5 "Segoe UI",sans-serif}header,nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap}header{justify-content:space-between;background:#fff;color:#20242f;border-bottom:1px solid #d6dbe2;padding:10px 6vw}header form{background:none;margin:0;padding:0;border:0}main{max-width:980px;margin:auto;padding:32px 20px}nav a{color:#a41a34}h1{font-size:2.5rem}section,form{background:#fff;border:1px solid #d6dbe2;border-radius:10px;padding:20px;margin:16px 0;overflow-wrap:anywhere}section form{border:0;padding:0}label{display:block;font-weight:600;margin:10px 0}input{width:100%;padding:10px;border:1px solid #84909d;border-radius:4px;font:inherit}button{background:#af2039;color:white;border:0;border-radius:5px;padding:10px 16px;margin:4px;cursor:pointer}[role=alert]{color:#a41a34}code{overflow-wrap:anywhere}

input{background:#fff;color:#20242f}a{color:#a41a34}button{font-weight:600}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #a41a34;outline-offset:2px}

.actions,.actions form {display:flex;align-items:center;gap:.45rem}
.actions a,.actions button {font:600 .88rem/1.3 "Segoe UI",sans-serif;color:#363744;background:white;border:1px solid #d6dbe2;border-radius:7px;margin:0;padding:.45rem .7rem;text-decoration:none}
.tabs {display:flex;gap:.3rem;padding:.35rem;background:#f5f6f8;border:1px solid #dfe2e7;border-radius:12px}
.tabs a {display:inline-flex;align-items:center;gap:.35rem;color:#393a44;font-weight:600;font-size:.84rem;text-decoration:none;border-radius:7px;padding:.45rem .65rem}
.tabs a span {font-size:1rem;line-height:1}
.tabs a:hover,.actions a:hover,.actions button:hover {background:#fcecf0}
.tabs a[aria-current=page] {background:#92223e;color:white}
dialog {max-width:min(28rem,90vw);color:#20242f;background:white;border:1px solid #d6dbe2;border-radius:12px;padding:1.5rem}
dialog::backdrop {background:rgb(27 28 38 / 42%)}
dialog form {padding:0;border:0;margin:.8rem 0}
@media(max-width:600px){.tabs{flex-wrap:nowrap;overflow-x:auto}.tabs a{flex:none}main{padding:20px 12px}}

.mailbox-list{display:grid;gap:5px}
.mailbox-row{position:relative;border:1px solid #d6dbe2;border-radius:8px;background:white}
.mailbox-row summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;min-height:42px;padding:0 16px;gap:55px}
.mailbox-row summary::-webkit-details-marker{display:none}
.mailbox-row summary span{min-width:0;overflow-wrap:anywhere}
.mailbox-row summary i{width:8px;height:8px;flex:none;border:solid #56545e;border-width:0 2px 2px 0;transform:rotate(45deg)}
.mailbox-row details[open] summary i{transform:rotate(225deg)}
.mailbox-row button.trash{position:absolute;top:4px;right:35px;width:34px;height:34px;display:grid;place-items:center;padding:0;margin:0;color:#9d2540;background:white}
.mailbox-row button.trash:hover{background:#fcecf0}
.mailbox-settings{padding:0 16px 10px;border-top:1px solid #e9e7e8}
#delete-mailbox form{display:inline-block}

label.checkbox-line{display:flex;align-items:center;gap:.6rem}label.checkbox-line input[type=checkbox]{width:1rem;height:1rem;flex:none;margin:0;padding:0}

.notice{position:sticky;top:.5rem;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;padding:.65rem 1rem;border:1px solid #91c4a2;border-radius:.6rem;background:#ecf8ef;color:#1d5131;box-shadow:0 2px 8px #0001}.notice.pending{background:#fff8e8;color:#654908;border-color:#dfc778}.notice.error{background:#fff1f1;color:#842335;border-color:#d998a0}.notice button{background:transparent;color:inherit;text-decoration:underline;padding:.25rem}
