.pilot-dialog { --w-ink:#eee9dd; --w-ink-faint:#c8c2b7; width:min(620px,calc(100vw - 32px)); max-height:85dvh; overflow:auto; padding:28px; border:1px solid #746448; border-radius:20px; background:#1b2028; color:#eee9dd; box-sizing:border-box; }
.pilot-dialog h2 { margin:0 0 20px; color:#f4dba1 !important; }
.pilot-dialog h3 { margin:24px 0 8px; }
.pilot-dialog p { color:#d0c9ba; line-height:1.65; }
.pilot-dialog label { display:block; margin:16px 0 6px; color:#eee9dd; }
.pilot-dialog input,.pilot-dialog select { width:100%; box-sizing:border-box; padding:12px; background:#10151b; color:#fff4de; border:1px solid #8e8270; border-radius:8px; font:inherit; }
.pilot-dialog button,.pilot-vote button,.pilot-dimension { font:inherit; padding:10px 16px !important; border-radius:10px !important; border:1px solid #8e8270 !important; color:#eee9dd !important; background:#303641 !important; cursor:pointer; margin:6px 4px 6px 0; box-shadow:none !important; }
.pilot-dialog button:disabled,.pilot-vote button:disabled { opacity:.6; cursor:wait; }
.pilot-dialog .pilot-primary,.pilot-vote button[aria-pressed="true"] { background:#d6bd8d !important; color:#25211b !important; }
.pilot-dialog button:focus-visible,.pilot-dialog input:focus-visible,.pilot-dialog select:focus-visible,.pilot-vote button:focus-visible { outline:3px solid #f4dba1; outline-offset:3px; }
.pilot-close { float:right; }
.pilot-codes { background:#10151b; border:1px solid #8e8270; padding:16px; white-space:pre-wrap; overflow-wrap:anywhere; user-select:all; }
.pilot-vote { padding:14px 0; border-top:1px solid #6e6555; }
.pilot-badge { display:inline-block; min-width:1.3em; padding:0 4px; border-radius:12px; background:#ead2a0; color:#302719; font-size:.8em; }
.pilot-note { padding:12px; background:#282e38; border-radius:8px; }

.nav-right { flex-wrap:wrap; }
@media(max-width:650px) { .pilot-dialog { padding:20px; } }
/* A quiet inbox, scoped to avoid inheriting the site's glossy button treatment. */
.inbox-backdrop { background:rgba(12,14,18,.64) !important; backdrop-filter:blur(5px) !important; }
.pilot-inbox { --w-ink:#39362f; --w-ink-faint:#817361; --text-main:#39362f; width:min(590px,calc(100vw - 32px)); max-height:min(760px,88dvh); display:flex; flex-direction:column; overflow:hidden; background:#f8f5ee; color:#39362f; border:1px solid #e5ddcf; border-radius:24px; box-shadow:0 24px 90px #0005; text-align:left; }
.pilot-inbox button { font:inherit; background:transparent !important; background-image:none !important; color:#665138 !important; border:0 !important; border-radius:8px !important; padding:7px 9px !important; box-shadow:none !important; cursor:pointer; line-height:1.5; }
.pilot-inbox button:hover { background:#ebe3d5 !important; }
.pilot-inbox button:focus-visible { outline:3px solid #90744e; outline-offset:2px; }
.pilot-inbox button:disabled { opacity:.45; cursor:default; }
.inbox-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:28px 28px 20px; }
.inbox-eyebrow { color:#8a785e; font-size:12px; letter-spacing:2px; margin:0 0 8px; }
.inbox-header h2 { display:flex; flex-wrap:wrap; align-items:center; gap:12px; color:#34312c !important; margin:0; font-size:26px; font-weight:600; }
.inbox-count { color:#80653b; background:#ece1cc; font-size:12px; font-weight:500; letter-spacing:0; border-radius:20px; padding:4px 10px; }
.pilot-inbox .inbox-close { width:34px; height:34px; padding:0 !important; font-size:28px; line-height:1; color:#837b70 !important; }
.inbox-toolbar { display:flex; justify-content:space-between; gap:8px; align-items:center; padding:0 24px 16px 28px; border-bottom:1px solid #e5ddcf; font-size:12px; color:#796f60; }
.inbox-toolbar>div { display:flex; flex-shrink:0; gap:2px; }
.inbox-body { overflow:auto; min-height:200px; overscroll-behavior:contain; }
.inbox-list { padding:0; margin:0; list-style:none; }
.inbox-list li { display:flex; gap:14px; padding:22px 28px; border-bottom:1px solid #e9e3d8; }
.inbox-list li:last-child { border-bottom:0; }
.inbox-list li.inbox-unread { background:#f1eadc; }
.inbox-item-icon { width:38px; height:38px; flex-shrink:0; border-radius:12px; display:grid; place-items:center; background:#e8dfce; color:#8c7453; font-size:24px; }
.inbox-item-content { flex:1; min-width:0; }
.inbox-item-meta { display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:12px; color:#897d6a; }
.inbox-item-meta time { flex-shrink:0; font-size:11px; }
.inbox-item-content h3 { color:#3d382f !important; font-size:16px; font-weight:500; line-height:1.6; margin:8px 0 4px; overflow-wrap:anywhere; }
.inbox-item-content p { color:#7e7364; font-size:13px; line-height:1.8; margin:0 0 9px; }
.inbox-dot { display:inline-block; vertical-align:middle; width:6px; height:6px; margin-right:7px; border-radius:50%; background:#ae7946; }
.pilot-inbox .inbox-open { margin-left:-9px; font-size:13px; color:#745b3c !important; }
.inbox-empty { padding:36px 24px 42px; text-align:center; }
.inbox-empty-art { width:104px; height:84px; margin-bottom:12px; }
.inbox-empty h3 { margin:0 0 9px; font-size:17px; font-weight:500; color:#4a4235 !important; }
.inbox-empty p { margin:0 0 21px; font-size:13px; color:#8a7b66; line-height:1.9; }
.pilot-inbox .inbox-primary { border:1px solid #cbb99a !important; padding:9px 17px !important; background:#eee3ce !important; color:#685135 !important; }
.inbox-footer { padding:18px 24px 18px 28px; border-top:1px solid #e5ddcf; display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; color:#8a7b66; background:#f2ede3; }
.inbox-footer button { font-size:13px; white-space:nowrap; }
.inbox-pagination { display:flex; justify-content:center; align-items:center; gap:16px; padding:10px; font-size:12px; border-top:1px solid #e5ddcf; }
.inbox-status { padding:50px 24px; color:#8a7b66; text-align:center; }
@media(max-width:480px) { .pilot-inbox { border-radius:20px; } .inbox-header { padding:24px 20px 16px; } .inbox-toolbar { padding:0 12px 12px 20px; flex-wrap:wrap; } .inbox-list li { padding:20px; gap:10px; } .inbox-footer { padding:14px 16px 14px 20px; } }

.pilot-inbox button, .pilot-dialog button, .pilot-vote button, .pilot-dimension { backdrop-filter:none !important; transform:none !important; transition:background-color .15s !important; font-weight:500 !important; text-shadow:none !important; }
.pilot-inbox h2, .pilot-inbox h3, .pilot-dialog h2, .pilot-dialog h3 { text-shadow:none; }
