/* One quiet visual language for mailbox cards, lists and conversations. */
body.workspace,body.compact-mail-home{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--accent:#2c6595;--accent-dark:#224f76;--accent-soft:#edf3f8}
body.workspace .topbar,body.compact-mail-home .topbar{height:52px;min-height:52px;background:#286493;border-bottom:1px solid #225c88;padding:0 18px;gap:26px;justify-content:flex-start;color:#fff;backdrop-filter:none}
body.workspace .topbar .brand,body.compact-mail-home .topbar .brand{font-size:14px;font-weight:450;letter-spacing:0;color:#fff;gap:10px}
body.workspace .brand-symbol,body.compact-mail-home .brand-symbol{padding:0;background:none;border-radius:0}
body.workspace .brand-symbol .icon,body.compact-mail-home .brand-symbol .icon{width:21px;height:21px;color:#fff}
body.workspace .topbar nav.desktop-nav,body.compact-mail-home .topbar nav.desktop-nav{display:flex;gap:4px}
body.workspace .topbar nav.desktop-nav a,body.compact-mail-home .topbar nav.desktop-nav a{font-size:12px;font-weight:450;color:#edf4fa;padding:8px 12px;background:none;border-radius:4px}
body.workspace .topbar nav.desktop-nav a.active,body.workspace .topbar nav.desktop-nav a:hover,body.compact-mail-home .topbar nav.desktop-nav a.active,body.compact-mail-home .topbar nav.desktop-nav a:hover{color:#fff;background:#ffffff14}
body.workspace .topbar>form,body.compact-mail-home .topbar>form{margin-left:auto}
body.workspace .topbar .logout-btn,body.compact-mail-home .topbar .logout-btn{color:#e8f0f7;font-size:12px;font-weight:400}
body.workspace .user-dot,body.compact-mail-home .user-dot{border-color:#ffffff55;background:#ffffff15;color:#fff}
body.workspace .topbar .mobile-menu{color:#fff}
/* Home: compact cards, fine separators and no decoration. */
body.compact-mail-home .mail-hub{padding:24px 24px 36px}
body.compact-mail-home .dashboard-heading{margin-bottom:20px}
body.compact-mail-home .dashboard-heading h1{font-family:inherit;font-size:19px;font-weight:500;color:#263e50}
body.compact-mail-home .dashboard-cards{grid-template-columns:repeat(auto-fill,264px);gap:18px}
body.compact-mail-home .mailbox-card{border-radius:7px;border-color:#dde3e9;box-shadow:none}
body.compact-mail-home .mailbox-card-head{padding:13px 17px 11px;background:#f4f6f8;min-height:62px;border-color:#e2e7ec}
body.compact-mail-home .mailbox-card-head h2{font-family:inherit;font-weight:600;font-size:14px;color:#36556f}
body.compact-mail-home .mailbox-card-head>span{font-size:11px;color:#768897}
body.compact-mail-home .mailbox-card-rows{padding:8px 10px 5px}
body.compact-mail-home .mailbox-card-rows>a{font-size:12px;min-height:31px;color:#4c6275}
body.compact-mail-home .card-count{font-size:12px;font-weight:500}
body.compact-mail-home .card-count.count-unread{background:#e8eff5;color:#315e83;border-radius:4px;font-weight:600}
body.compact-mail-home .mailbox-card-actions{height:28px;border-radius:4px;margin:7px 17px 15px;border-color:#e0e6ec;background:#fafbfc}
body.compact-mail-home .mailbox-card-actions>a+a{border-color:#e0e6ec}
body.compact-mail-home .dashboard-search{border-color:#e0e6ec;border-radius:4px}
/* List: a narrow folder rail and a wide table, without a vacant reading pane. */
body.workspace .layout{grid-template-columns:224px minmax(0,1fr)}
body.workspace:not(.reading) .detail-placeholder{display:none}
body.workspace.reading .thread-list{display:none}
body.workspace .sidebar{padding:18px 12px 12px;background:#fafbfc;border-right:1px solid #e2e7ed;gap:3px}
body.workspace .compose-launch{background:#fff;color:#315f82;border:1px solid #cfdae4;border-radius:5px;box-shadow:none;font-size:12px;font-weight:550;padding:10px 12px;margin-bottom:12px;min-height:36px}
body.workspace .compose-launch:hover{background:#edf3f8}
body.workspace .compose-launch .icon{width:16px;height:16px}
body.workspace .sidebar>a.sb-item:first-of-type{padding:7px 8px;color:#7b8998}
body.workspace .sidebar>a.sb-item:first-of-type .account-name{font-size:11px;font-weight:400}
body.workspace .sidebar .sb-title{font-size:9px;letter-spacing:1px;padding:0 8px;margin:12px 0 5px;color:#8a98a6}
body.workspace .sidebar .account-item{border:0;border-radius:0;padding:9px 8px;margin:0;background:transparent;box-shadow:none}
body.workspace .sidebar .account-avatar{display:none}
body.workspace .sidebar .account-name{font-size:14px;font-weight:550;white-space:normal;line-height:1.4}
body.workspace .sidebar .account-name small{font-size:11px;color:#8593a1;white-space:nowrap;font-weight:400}
body.workspace .sidebar .unread-badge{font-size:11px;color:#567790}
body.workspace .sidebar .folder-title{margin-top:20px}
body.workspace .sidebar .folder-item{padding:9px 10px;min-height:36px;border-radius:5px;font-size:12px;color:#637789}
body.workspace .sidebar .folder-item .icon{width:16px;height:16px;color:#97a6b3}
body.workspace .sidebar .folder-item.active{background:#eaf1f7;color:#315f82;font-weight:600}
body.workspace .sidebar .folder-item.active .icon{color:#4f7899!important}
body.workspace .folder-count{font-size:11px;color:#8192a1}
body.workspace .sidebar-footer{font-size:10px;line-height:1.7;padding:18px 8px 0;color:#96a3ae}
body.workspace .sidebar-footer a{font-size:10px;color:#758c9d}
body.workspace .thread-list{border:0;background:#fff}
body.workspace .list-head{padding:19px 24px 0;display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,300px);column-gap:25px;align-items:start}
body.workspace .list-heading{margin:0;min-height:42px}
body.workspace .list-heading .eyebrow{font-size:10px;color:#8192a1;text-transform:none;letter-spacing:0;font-weight:450;margin-bottom:4px}
body.workspace .list-heading h1{font-size:19px;font-weight:550;letter-spacing:-.3px;line-height:1.3}
body.workspace .refresh-btn{width:28px;height:28px;margin-right:3px}
body.workspace .refresh-btn .icon{width:16px;height:16px}
body.workspace .mail-search{height:34px;border:1px solid #dfe6ec;background:#fff;border-radius:4px;margin-top:6px}
body.workspace .mail-search input{font-size:12px}
body.workspace .list-filters{grid-column:1/-1;gap:20px;margin-top:7px}
body.workspace .list-filters>a{padding:10px 0;font-size:11px;font-weight:450}
body.workspace .list-filters>a.selected{font-weight:600}
body.workspace .search-summary{grid-column:1/-1}
body.workspace .bulk-actions{padding:8px 22px;border-top:1px solid #e5eaf0;border-bottom:1px solid #e5eaf0;min-height:35px;font-size:10px}
body.workspace .mail-table-labels{display:grid;grid-template-columns:190px minmax(0,1fr) 90px;gap:20px;padding:8px 24px 8px 52px;background:#f5f8fa;border-bottom:1px solid #e3e9ef;color:#7b8e9d;font-size:10px}
body.workspace .mail-table-labels>span:last-child{text-align:right}
body.workspace .thread-item{display:flex;padding:0 24px 0 20px;gap:16px;border-left:0;border-bottom:1px solid #edf0f3;background:#fff}
body.workspace .thread-item:hover{background:#f7f9fb}
body.workspace .thread-item.unread{background:#f5f8fc}
body.workspace .thread-checkbox{padding-top:18px}
body.workspace .thread-link{display:grid;grid-template-columns:190px minmax(0,1fr) 90px;gap:20px;padding:14px 0;min-height:63px;box-sizing:border-box;align-items:start}
body.workspace .row-author,body.workspace .row-main,body.workspace .row-meta{min-width:0}
body.workspace .thread-item .who{display:block;font-size:12px;line-height:1.5;font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#536c80}
body.workspace .thread-item.unread .who,body.workspace .thread-item.unread .subj{color:#243f56;font-weight:600}
body.workspace .thread-item .subj{font-size:12px;font-weight:450;line-height:1.5;margin:0;color:#3b5265}
body.workspace .thread-item .preview{font-size:11px;line-height:1.5;color:#96a3ae;margin-top:3px}
body.workspace .row-account{font-size:10px;color:#95a3af;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
body.workspace .row-meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
body.workspace .row-meta time{font-size:11px;color:#7c8f9f;line-height:1.5;white-space:nowrap}
body.workspace .message-count,body.workspace .small-status{font-size:9px;font-weight:400;color:#97a5b0;margin:0}
body.workspace .pagination-bar{padding:10px 23px;font-size:10px;min-height:38px;border-top-color:#e5eaf0}
body.workspace .thread-list .empty-state{padding:55px 20px}
body.workspace .empty-state .empty-icon{border:0;box-shadow:none;background:none;width:35px;height:35px;font-size:23px;color:#90a4b3;border-radius:0}
body.workspace .empty-state h2{font-size:15px;font-weight:500;margin:12px 0 7px}
body.workspace .empty-state p{font-size:12px;color:#8d9daa}
/* Reading keeps the same simple rail; the conversation has room to breathe. */
body.workspace .detail-pane{background:#fff}
body.workspace .thread-content-inner{padding:25px 32px!important;max-width:1140px;margin:0 auto}
body.workspace .thread-top.card{padding-bottom:18px;background:#fff}
body.workspace .thread-top-main h2{font-size:19px!important;font-weight:550}
body.workspace .thread-top .mb-chip{border:0;padding:0;background:none;color:#8192a1;font-size:10px}
body.workspace .msg{border:1px solid #e2e8ed;border-radius:5px;background:#fff;box-shadow:none}
body.workspace .msg-head{padding:15px 18px;background:#fafbfc;border-bottom:1px solid #eef1f4}
body.workspace .msg-avatar{width:28px;height:28px;background:#eef3f7;color:#7890a3;border-radius:4px;font-size:12px}
body.workspace .msg-who .name{font-size:12px;font-weight:550}
body.workspace .msg-body{padding:16px 18px}
body.workspace .reply-toggle-btn{background:#326991;box-shadow:none;border-radius:5px;padding:10px 15px;font-size:12px}
body.workspace .reply-box{border-radius:5px;box-shadow:none}
@media(max-width:1100px){body.workspace .layout{grid-template-columns:205px minmax(0,1fr)}body.workspace .thread-link,body.workspace .mail-table-labels{grid-template-columns:155px minmax(0,1fr) 75px;gap:14px}}
@media(max-width:760px){body.workspace .topbar,body.compact-mail-home .topbar{padding:0 12px;gap:8px}body.workspace .topbar .brand,body.compact-mail-home .topbar .brand{font-size:13px}body.workspace .topbar nav.desktop-nav{display:none}body.workspace .topbar .mobile-menu{display:inline-flex}body.workspace .layout{display:block}body.workspace .layout .sidebar{top:52px;width:252px;box-sizing:border-box}body.workspace .sidebar-scrim{inset:52px 0 0}body.workspace .thread-list{height:100%}body.workspace .list-head{padding:16px 16px 0;display:block}body.workspace .list-heading{margin-bottom:12px}body.workspace .mail-search{margin-top:0}body.workspace .list-filters{margin-top:5px}body.workspace .bulk-actions{padding:8px 16px}body.workspace .mail-table-labels{display:none}body.workspace .thread-item{padding:0 16px 0 13px;gap:10px}body.workspace .thread-link{grid-template-columns:minmax(0,1fr) 65px;gap:3px 12px;padding:13px 0;min-height:80px}body.workspace .row-author{grid-column:1;grid-row:1}body.workspace .row-main{grid-column:1/-1;grid-row:2}body.workspace .row-meta{grid-column:2;grid-row:1}body.workspace .row-meta .message-count{display:none}body.workspace .thread-item .who{font-size:12px}body.workspace .thread-item .subj{font-size:13px}body.workspace .thread-item .preview{font-size:11px}body.workspace .thread-checkbox{padding-top:16px}body.workspace .thread-content-inner{padding:20px 15px!important}body.workspace .thread-top-main h2{font-size:17px!important}body.compact-mail-home .mail-hub{padding:20px 16px}body.compact-mail-home .dashboard-cards{grid-template-columns:repeat(auto-fill,minmax(245px,264px))}}
@media(max-width:580px){body.compact-mail-home .dashboard-cards{grid-template-columns:minmax(0,1fr)}body.compact-mail-home .mailbox-card{max-width:340px}body.compact-mail-home .topbar nav.desktop-nav a{padding:8px}body.workspace .topbar .logout-btn>span:not(.user-dot){display:none}body.workspace .topbar .logout-btn>svg{display:none}}
body.workspace .thread-content-inner{width:100%;box-sizing:border-box}body.workspace .msg-stream{max-width:none}body.workspace .thread-item .who,body.workspace .thread-item .subj{font-size:13px}body.workspace .thread-item .preview{font-size:12px}body.workspace .mail-table-labels{font-size:11px}
/* Admin pages (Hesaplar & Ayarlar): match quiet blue topbar and clean scrollable cards. */
body.admin-page{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--accent:#2c6595;--accent-dark:#224f76;--accent-soft:#edf3f8;background:#f6f8fb;color:#243f56}
body.admin-page .app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f6f8fb}
body.admin-page .topbar{height:52px;min-height:52px;background:#286493;border-bottom:1px solid #225c88;padding:0 18px;gap:26px;justify-content:flex-start;color:#fff;backdrop-filter:none;flex-shrink:0}
body.admin-page .topbar .brand{font-size:14px;font-weight:450;letter-spacing:0;color:#fff;gap:10px}
body.admin-page .topbar .brand-symbol{padding:0;background:none;border-radius:0}
body.admin-page .topbar .brand .brand-symbol svg,body.admin-page .topbar .brand-symbol .icon{width:21px;height:21px;color:#fff}
body.admin-page .topbar nav.desktop-nav{display:flex;gap:4px}
body.admin-page .topbar nav.desktop-nav a{font-size:12px;font-weight:450;color:#edf4fa;padding:8px 12px;background:none;border-radius:4px}
body.admin-page .topbar nav.desktop-nav a.active,body.admin-page .topbar nav.desktop-nav a:hover{color:#fff;background:#ffffff14}
body.admin-page .topbar>form{margin-left:auto}
body.admin-page .topbar .logout-btn{color:#e8f0f7;font-size:12px;font-weight:400}
body.admin-page .user-dot{border-color:#ffffff55;background:#ffffff15;color:#fff}
body.admin-page .page-container{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:28px 24px 48px}
body.admin-page .page-content{width:100%;max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:20px;min-width:0}
body.admin-page .page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
body.admin-page .page-header h2{font-size:20px;font-weight:600;color:#243f56;letter-spacing:-.02em;margin:0}
body.admin-page .page-section{background:#fff;border:1px solid #e2e8ed;border-radius:7px;padding:22px 24px;min-width:0}
body.admin-page .page-section h3{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:#243f56;margin:0 0 16px;letter-spacing:-.01em}
body.admin-page .page-section h3 svg.icon{flex-shrink:0}
body.admin-page .page-section>p{margin:-6px 0 16px;line-height:1.5}
body.admin-page .table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e6ecf1;border-radius:6px}
body.admin-page .table-scroll table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;margin-bottom:0!important}
body.admin-page table thead th{background:#f5f8fa;color:#6b7f90;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;padding:10px 12px;border-bottom:1px solid #e3e9ef;white-space:nowrap}
body.admin-page table tbody td{padding:11px 12px;border-bottom:1px solid #edf1f5;color:#2d465b;vertical-align:middle}
body.admin-page table tbody tr:last-child td{border-bottom:0}
body.admin-page table tbody tr:hover td{background:#fafcfe}
body.admin-page table td:first-child{font-weight:600;color:#243f56}
body.admin-page table td:last-child{text-align:right;white-space:nowrap}
body.admin-page table td:last-child form{display:inline-block;margin:0}
body.admin-page table .badge,body.admin-page table.mb-table td{white-space:nowrap}
body.admin-page .form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin-bottom:6px}
body.admin-page .field{margin-bottom:14px;min-width:0}
body.admin-page .form-grid-2 .field{margin-bottom:0}
body.admin-page .field label{display:block;font-size:12px;font-weight:600;color:#52687a;margin-bottom:6px}
body.admin-page .input,body.admin-page textarea,body.admin-page select{width:100%;padding:9px 12px;border-radius:5px;border:1px solid #d5dfe7;background:#fff;font-size:13px;color:#1f3548;transition:border-color .15s,box-shadow .15s}
body.admin-page .input:focus,body.admin-page textarea:focus,body.admin-page select:focus{border-color:#2c6595;box-shadow:0 0 0 3px #2c65951a}
body.admin-page textarea{min-height:160px;line-height:1.5;font-family:var(--font-mono);font-size:12.5px}
body.admin-page .btn{background:#286493;color:#fff;border:1px solid #225c88;border-radius:5px;padding:9px 18px;font-size:13px;font-weight:600;box-shadow:none;margin-top:8px}
body.admin-page .btn:hover{background:#22547c}
body.admin-page .btn.secondary{background:#f4f7fa;color:#365066;border:1px solid #d5dfe7;margin-top:0}
body.admin-page .btn.secondary:hover{background:#e9eff5;color:#1f3548}
body.admin-page .btn.small{padding:5px 11px;font-size:12px;font-weight:500}
body.admin-page .error{margin:0;border-radius:6px;border:1px solid color-mix(in srgb,var(--err) 22%,transparent)}
body.admin-page .success{margin:0;border-radius:6px;border:1px solid color-mix(in srgb,var(--ok) 22%,transparent)}
@media(max-width:900px){body.admin-page .page-container{padding:18px 14px 36px}body.admin-page .page-section{padding:16px}body.admin-page .form-grid-2{grid-template-columns:1fr}body.admin-page .table-scroll:has(.mb-table){display:none}body.admin-page .mb-cards{display:flex;flex-direction:column;gap:10px}body.admin-page .mb-card{margin-bottom:0;border-radius:6px;border:1px solid #e2e8ed;padding:12px 14px}}
@media(max-width:760px){body.admin-page .topbar{padding:0 12px;gap:10px}body.admin-page .topbar .brand{font-size:13px}body.admin-page .topbar nav.desktop-nav a{padding:7px 9px;font-size:12px}body.admin-page .topbar .logout-btn>span:not(.user-dot),body.admin-page .topbar .logout-btn>svg{display:none}}
@media(max-width:580px){body.admin-page .topbar .brand>span:last-child{display:none}body.admin-page .topbar nav.desktop-nav{gap:0}}
