/* Yuzu Classic! A blue glass sidebar, gel buttons and a simple inbox, three panes wide! */
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'JetBrains Mono', system-ui, sans-serif;
    display: flex;
    background: radial-gradient(circle at 50% 0%, #0065ff 0%, #001a4d 70%, #000c26 100%);
    color: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; }

.yz-sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 2px solid rgba(77, 148, 255, 0.4);
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    gap: 14px;
    position: relative;
    z-index: 50;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}
.yz-brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px; }
.yz-brand img { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
.yz-brand h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0.02em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }

.yz-compose-btn {
    font: 700 15px inherit;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, #7fb3ff 0%, #0065ff 55%, #0048bf 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(0, 101, 255, 0.5);
    text-shadow: 0 1px 2px rgba(0, 30, 90, 0.5);
}
.yz-compose-btn:hover { filter: brightness(1.08); }
.yz-compose-btn:active { transform: translateY(1px); }

.yz-folders { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.yz-folder {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent;
    background: none; color: rgba(255, 255, 255, 0.86); font: 600 14.5px inherit; text-align: left; cursor: pointer;
}
.yz-folder:hover { background: rgba(255, 255, 255, 0.08); }
.yz-folder.on { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.yz-folder-icon { font-size: 16px; width: 20px; text-align: center; }
.yz-folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yz-folder-count { font: 800 11px inherit; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); }

.yz-sidebar-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.yz-btn {
    font: 600 13px inherit;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    text-align: left;
}
.yz-btn:hover { background: rgba(255, 255, 255, 0.18); }
.yz-btn.yz-primary { background: linear-gradient(180deg, #7fb3ff, #0065ff); border-color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.yz-btn.yz-danger { color: #ffd4d4; border-color: rgba(255, 120, 120, 0.4); }
.yz-btn.yz-danger:hover { background: rgba(255, 90, 90, 0.18); }
.yz-link { background: none; border: 0; color: #cfe2ff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.yz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.yz-search-bar { display: flex; align-items: center; gap: 10px; padding: 16px 22px 10px; }
.yz-search-icon { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.7); flex: none; }
.yz-search-bar input {
    flex: 1; max-width: 460px; font: 15px inherit; color: #fff;
    padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px);
}
.yz-search-bar input::placeholder { color: rgba(255, 255, 255, 0.6); }
.yz-search-bar input:focus { outline: none; border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.16); }

.yz-workspace { flex: 1; min-height: 0; display: flex; padding: 0 22px 22px; gap: 16px; }

.yz-list-pane {
    width: 360px; min-width: 280px; flex-shrink: 0;
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 10, 40, 0.3);
}
.yz-list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px 10px; font: 800 15px inherit; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.yz-list-count { font: 600 12px inherit; color: rgba(255, 255, 255, 0.6); }
.yz-list { flex: 1; overflow-y: auto; padding: 6px; }

.yz-row {
    display: flex; align-items: flex-start; gap: 10px; width: 100%;
    padding: 10px 10px; margin: 2px 0; border-radius: 12px; border: 1px solid transparent;
    background: none; color: inherit; text-align: left; cursor: pointer; position: relative;
}
.yz-row:hover { background: rgba(255, 255, 255, 0.08); }
.yz-row.on { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); }
.yz-row.unread .yz-row-from, .yz-row.unread .yz-row-subject { font-weight: 800; }
.yz-row.unread::before { content: ''; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #7fe0ff; box-shadow: 0 0 6px #7fe0ff; }
.yz-avatar {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font: 700 13px inherit; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.25);
}
.yz-row-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.yz-row-top { display: flex; justify-content: space-between; gap: 8px; }
.yz-row-from { font: 600 13.5px inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yz-row-date { font: 500 11px inherit; color: rgba(255, 255, 255, 0.55); flex: none; }
.yz-row-subject { font: 600 13px inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yz-row-snip { font: 400 12px inherit; color: rgba(255, 255, 255, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yz-star { flex: none; background: none; border: 0; color: rgba(255, 255, 255, 0.3); font-size: 17px; cursor: pointer; padding: 2px; line-height: 1; }
.yz-star.on, .yz-star:hover { color: #ffd34d; }

.yz-empty { padding: 40px 20px; text-align: center; color: rgba(255, 255, 255, 0.65); font-size: 14px; }

.yz-reading-pane {
    flex: 1; min-width: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #0b1b33;
    border-radius: 16px;
    overflow-y: auto;
    padding: 24px 30px 40px;
    box-shadow: 0 10px 28px rgba(0, 10, 40, 0.3);
}
.yz-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #6b7fa3; text-align: center; }
.yz-placeholder-icon { font-size: 44px; }
.yz-read-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e3ecff; padding-bottom: 12px; margin-bottom: 14px; }
.yz-read-subject { margin: 0; font-size: 22px; font-weight: 800; color: #0b1b33; }
.yz-read-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.yz-reading-pane .yz-btn { color: #0052cc; border-color: #c8dcff; background: #eef4ff; }
.yz-reading-pane .yz-btn:hover { background: #dbe9ff; }
.yz-reading-pane .yz-btn.yz-danger { color: #c0392b; border-color: #f4c7c0; background: #fdeeec; }
.yz-reading-pane .yz-btn.yz-danger:hover { background: #fadcd7; }
.yz-read-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.yz-read-meta > div { display: flex; flex-direction: column; }
.yz-read-meta b { font-size: 14.5px; }
.yz-read-addr { font-size: 12px; color: #6b7fa3; }
.yz-read-date { margin-left: auto; font-size: 12px; color: #6b7fa3; }
.yz-read-body { font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Compose (the reading pane becomes a compose form) */
.yz-compose { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.yz-compose-top { display: flex; align-items: center; justify-content: space-between; }
.yz-compose-top h2 { margin: 0; font-size: 19px; }
.yz-field { display: flex; flex-direction: column; gap: 4px; font: 700 12px inherit; color: #44557a; }
.yz-field small { font-weight: 400; color: #8092b3; }
.yz-field input, .yz-field textarea {
    font: 15px 'Segoe UI', system-ui, sans-serif; color: #0b1b33;
    padding: 9px 13px; border-radius: 10px; border: 1px solid #d3e0fa;
}
.yz-field input:focus, .yz-field textarea:focus { outline: 2px solid #4d94ff; outline-offset: 0; }
.yz-field-body { flex: none; }
.yz-field-body textarea { flex: none; height: 180px; min-height: 120px; resize: vertical; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13.5px; line-height: 1.5; }
.yz-compose-preview { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px dashed #c8dcff; border-radius: 10px; padding: 12px 14px; background: #f5f9ff; font-size: 14px; line-height: 1.5; min-height: 50px; flex: none; max-height: 40vh; overflow: auto; }
.yz-compose-actions { display: flex; gap: 8px; flex: none; }

.yz-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(10px);
    background: rgba(10, 20, 50, 0.92); color: #fff; padding: 10px 20px; border-radius: 999px;
    font: 600 14px inherit; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 9999;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.yz-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
    .yz-sidebar { width: 72px; min-width: 72px; padding: 14px 8px; }
    .yz-brand h2, .yz-folder-name, .yz-folder-count, .yz-btn span { display: none; }
    .yz-compose-btn { padding: 12px; }
    .yz-workspace { flex-direction: column; padding: 0 14px 14px; }
    .yz-list-pane { width: auto; max-height: 40vh; }
}

/* ---- accounts, sign-in and the welcome card ---- */
.yz-account { margin-bottom: 12px; }
.yz-acct { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(163, 199, 255, 0.55); background: rgba(255, 255, 255, 0.55); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.yz-acct:hover { background: rgba(255, 255, 255, 0.85); }
.yz-acct-text { display: flex; flex-direction: column; min-width: 0; }
.yz-acct-text b, .yz-acct-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yz-acct-text small { color: #6b7fa6; font-size: 11px; }
.yz-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 700 13px system-ui, sans-serif; }
.yz-signin { display: inline-flex; align-items: center; gap: 10px; justify-content: center; padding: 10px 18px; border-radius: 10px; border: 1px solid #c8d6f2; background: #fff; color: #1b2a4a; font: 600 14px system-ui, sans-serif; cursor: pointer; }
.yz-signin:hover { background: #f1f6ff; border-color: #4d94ff; }
.yz-signin svg { width: 18px; height: 18px; }
.yz-welcome, .yz-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 60%; padding: 24px; }
.yz-welcome h2 { margin: 0; }
.yz-welcome p, .yz-placeholder p { max-width: 420px; margin: 0; }
.yz-note { color: #44557a; line-height: 1.5; margin: 0 0 12px; }
.yz-note.small { font-size: 12.5px; color: #6b7fa6; }
.yz-link { background: none; border: 0; padding: 0; color: #0065ff; text-decoration: underline; cursor: pointer; font: inherit; }
.yz-error { color: #b42318; }
.yz-from { font-size: 13px; color: #44557a; }
.yz-plain { white-space: pre-wrap; overflow-wrap: anywhere; }
.yz-acct-card { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.yz-acct-card > div { display: flex; flex-direction: column; }
.yz-modal-back { position: fixed; inset: 0; background: rgba(8, 18, 45, 0.55); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 16px; }
.yz-modal-card { background: #fff; color: #0b1b33; border-radius: 16px; width: min(440px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.yz-modal-card.wide { width: min(640px, 100%); }
.yz-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #e3ecfb; }
.yz-modal-head h2 { margin: 0; font-size: 18px; }
.yz-modal-body { padding: 16px 18px 18px; }
.yz-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.yz-modal-actions.col { flex-direction: column; align-items: stretch; }
.yz-modal details { border: 1px solid #d3e0fa; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.yz-modal summary { font-weight: 700; cursor: pointer; }
.yz-steps { padding-left: 20px; line-height: 1.55; font-size: 13.5px; }
.yz-modal input[type=text] { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 8px; border: 1px solid #d3e0fa; font: 13px 'JetBrains Mono', monospace; }
.yz-modal code { background: #eef4ff; padding: 1px 5px; border-radius: 4px; font-size: 12px; overflow-wrap: anywhere; }
.yz-signin-yuzu { background: #0065ff; border-color: #0048bf; color: #fff; }
.yz-signin-yuzu:hover { background: #1a75ff; border-color: #0048bf; }
.yz-addr { display: flex; align-items: center; gap: 6px; }
.yz-addr input { flex: 1; min-width: 0; }
.yz-addr b { color: #44557a; white-space: nowrap; }
.yz-ok { color: #067a3b; }
.yz-field .yz-error { margin: 0; }
.yz-modal-card .yz-btn { color: #0b1b33; background: #eef4ff; border: 1px solid #c8d6f2; }
.yz-modal-card .yz-btn:hover { background: #dbe9ff; }
.yz-modal-card .yz-btn.yz-primary { color: #fff; background: #0065ff; border-color: #0048bf; }

/* SVG icons, a conversation's messages, and folded quotes */
.yz-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.22em; }
.yz-ico.yz-fill, .yz-star.on .yz-ico { fill: currentColor; }
.yz-btn, .yz-compose-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.yz-btn:has(> .yz-ico:only-child) { padding-left: 9px; padding-right: 9px; }
.yz-folder-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.yz-star .yz-ico { width: 17px; height: 17px; vertical-align: middle; }
.yz-placeholder-icon .yz-ico { width: 56px; height: 56px; opacity: 0.55; stroke-width: 1.5; }
.yz-btn.yz-on { color: #b86e00; }
.yz-thread-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #0065ff; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; vertical-align: 1px; }
.yz-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.yz-msg { border: 1px solid #dbe6fb; border-radius: 12px; padding: 10px 14px; background: #fff; }
.yz-msg:not(.on) { cursor: pointer; background: #f7faff; }
.yz-msg:not(.on):hover { background: #eef4ff; }
.yz-msg.on { border-color: #4d94ff; box-shadow: 0 0 0 2px rgba(0, 101, 255, 0.12); }
.yz-msg .yz-read-meta { margin-top: 0; }
.yz-quote { margin: 8px 0 2px; border-left: 3px solid #c8d6f2; padding-left: 10px; color: #5b6e93; }
.yz-quote summary { cursor: pointer; color: #0065ff; font-size: 12.5px; }
