:root{--primary: #2563eb;--primary-dark: #1d4ed8;--bg: #f1f5f9;--card: #ffffff;--border: #e2e8f0;--text: #0f172a;--text-muted: #64748b;--success: #16a34a;--warning: #d97706;--danger: #dc2626;--info: #0284c7;--sidebar-w: 260px;--radius: 8px;--font-sans: "Google Sans", system-ui, -apple-system, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html{font-family:var(--font-sans);font-optical-sizing:auto;font-variation-settings:"GRAD" 0}body{font-family:var(--font-sans);font-optical-sizing:auto;font-variation-settings:"GRAD" 0;background:var(--bg);color:var(--text);min-height:100vh}button,input,textarea,select{font-family:inherit;font-optical-sizing:auto}a{color:inherit;text-decoration:none}.page-loading{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:3rem;color:var(--text-muted)}.page-loading.full-screen{min-height:100vh}.login-page{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:radial-gradient(ellipse 80% 60% at 50% -10%,rgba(37,99,235,.12),transparent),radial-gradient(ellipse 60% 50% at 100% 100%,rgba(15,23,42,.04),transparent),linear-gradient(160deg,#f8fafc,#eef2ff 45%,#f1f5f9)}.login-card{background:var(--card);border:1px solid rgba(226,232,240,.9);border-radius:16px;padding:2.75rem 2.25rem 2.25rem;width:100%;max-width:420px;box-shadow:0 1px 2px #0f172a0a,0 12px 40px #0f172a14;text-align:center;animation:login-enter .45s ease-out both}@keyframes login-enter{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.login-logo{width:80px;height:80px;background:#fff;border:1px solid var(--border);border-radius:14px;display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem;overflow:hidden;box-shadow:0 4px 14px #2563eb1a}.login-logo-img{width:100%;height:100%;object-fit:contain;display:block;padding:.35rem}.login-card h1{font-size:1.625rem;font-weight:700;letter-spacing:.06em;color:#0f172a;margin-bottom:.35rem}.login-sub{color:var(--text-muted);font-size:.9375rem;font-weight:400;line-height:1.45;margin-bottom:2rem;padding-bottom:1.75rem;border-bottom:1px solid var(--border)}.login-form{display:flex;flex-direction:column;gap:1.125rem;text-align:left}.login-form label{display:flex;flex-direction:column;gap:.4rem;font-size:.8125rem;font-weight:600;color:#334155;letter-spacing:.01em}.login-form input{padding:.7rem .85rem;border:1px solid var(--border);border-radius:var(--radius);font-size:.9375rem;background:#f8fafc;color:var(--text);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.login-form input:hover{border-color:#cbd5e1;background:#fff}.login-form input:focus{outline:none;border-color:var(--primary);background:#fff;box-shadow:0 0 0 3px #2563eb1f}.login-form button{margin-top:.35rem;padding:.8rem 1rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius);font-size:.9375rem;font-weight:600;cursor:pointer;transition:background .15s ease,box-shadow .15s ease,transform .1s ease;box-shadow:0 1px 2px #2563eb33}.login-form button:hover:not(:disabled){background:var(--primary-dark);box-shadow:0 4px 12px #2563eb47}.login-form button:active:not(:disabled){transform:translateY(1px)}.login-form button:disabled{opacity:.65;cursor:not-allowed;box-shadow:none}.login-forgot-link,.login-back-link{margin:1rem 0 0;text-align:center;font-size:.875rem}.login-forgot-link a,.login-back-link a{color:var(--primary);text-decoration:none}.login-forgot-link a:hover,.login-back-link a:hover{text-decoration:underline}.login-card-wide{max-width:28rem}.login-form-submit-link{display:inline-flex;justify-content:center;width:100%;text-decoration:none;margin-top:.5rem}.login-form .alert-error{margin-bottom:.125rem}.alert-error{background:#fef2f2;color:var(--danger);padding:.75rem .85rem;border-radius:var(--radius);font-size:.8125rem;border:1px solid #fecaca;text-align:left}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;top:0;left:0;z-index:200;width:var(--sidebar-w);height:100vh;height:100dvh;background:#0f172a;color:#e2e8f0;display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}.sidebar-brand{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1rem;border-bottom:1px solid rgba(255,255,255,.08);font-weight:700;font-size:1.1rem;flex-shrink:0}.sidebar-brand-name{flex:1;min-width:0}.sidebar-close{display:none;align-items:center;justify-content:center;width:2rem;height:2rem;margin-left:auto;border:none;border-radius:6px;background:#ffffff14;color:#e2e8f0;cursor:pointer;flex-shrink:0}.sidebar-close:hover{background:#ffffff24}.sidebar-logo{width:36px;height:36px;background:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.sidebar-logo-img{width:100%;height:100%;object-fit:contain;display:block}.sidebar-user{display:flex;align-items:center;gap:.75rem;padding:1rem;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0}.sidebar-avatar{font-size:2rem;color:#94a3b8}.sidebar-user-name{font-weight:600;font-size:.9rem}.sidebar-user-role{font-size:.75rem;color:#94a3b8}.sidebar-avatar-img{width:40px;height:40px;border-radius:50%;object-fit:cover}.sidebar-nav{flex:1;min-height:0;overflow-y:auto;padding:.5rem 0;overscroll-behavior:contain}.sidebar-section{margin-bottom:.5rem}.sidebar-section-label{padding:.5rem 1rem;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.sidebar-nav ul{list-style:none}.sidebar-link{display:flex;align-items:center;gap:.75rem;padding:.65rem 1rem;margin:0 .5rem;border-radius:6px;font-size:.9rem;color:#cbd5e1;transition:background .15s}.sidebar-link:hover{background:#ffffff0f;color:#fff}.sidebar-link.active{background:var(--primary);color:#fff}.sidebar-link i{width:1.25rem;text-align:center}.sidebar-badge{margin-left:auto;min-width:1.25rem;height:1.25rem;padding:0 .35rem;border-radius:999px;background:var(--danger);color:#fff;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.notif-toast-stack{position:fixed;top:1rem;right:1rem;z-index:2000;display:flex;flex-direction:column;gap:.65rem;max-width:min(380px,calc(100vw - 2rem))}.notif-toast-body p{white-space:pre-line}.notif-toast{display:flex;gap:.75rem;align-items:flex-start;padding:.85rem 1rem;background:#fff;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:12px;box-shadow:0 10px 30px #0f172a26;animation:notif-slide-in .25s ease}@keyframes notif-slide-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:translate(0)}}.notif-toast-icon{width:36px;height:36px;border-radius:10px;background:#eff6ff;color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.notif-toast-body strong{display:block;font-size:.9rem;margin-bottom:.2rem}.notif-toast-body p{font-size:.8rem;color:var(--text-muted);margin-bottom:.35rem;line-height:1.4}.notif-toast-time{display:block;font-size:.72rem;color:var(--text-muted);margin-bottom:.25rem}.notif-toast-body a{font-size:.8rem;font-weight:600;color:var(--primary)}.notif-toast-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.15rem;margin-left:auto;flex-shrink:0}.upload-toast-stack{position:fixed;top:1rem;right:1rem;z-index:2001;display:flex;flex-direction:column;gap:.65rem;max-width:min(400px,calc(100vw - 2rem))}.upload-toast{display:flex;gap:.75rem;align-items:flex-start;padding:.85rem 1rem;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px #0f172a26;animation:upload-slide-in .25s ease}.upload-toast--uploading{border-left:4px solid var(--primary)}.upload-toast--success{border-left:4px solid #16a34a}.upload-toast--error{border-left:4px solid #dc2626}@keyframes upload-slide-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:translate(0)}}.upload-toast-icon{width:36px;height:36px;border-radius:10px;background:#eff6ff;color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.upload-toast--success .upload-toast-icon{background:#f0fdf4;color:#16a34a}.upload-toast--error .upload-toast-icon{background:#fef2f2;color:#dc2626}.upload-toast-body{flex:1;min-width:0}.upload-toast-body strong{display:block;font-size:.9rem;margin-bottom:.15rem}.upload-toast-file{font-size:.78rem;color:var(--text-muted);margin-bottom:.35rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-toast-progress{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-bottom:.25rem}.upload-toast-progress>span{display:block;height:100%;background:var(--primary);border-radius:999px;transition:width .15s ease}.upload-toast-progress-label{display:block;font-size:.72rem;color:var(--text-muted)}.upload-toast-status--success{display:block;font-size:.78rem;color:#16a34a}.upload-toast-error{font-size:.8rem;color:#dc2626;margin:0;line-height:1.4;white-space:pre-line}.upload-toast-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.15rem;margin-left:auto;flex-shrink:0}.notif-page-actions{display:flex;gap:.65rem;margin-bottom:1rem;flex-wrap:wrap}.notif-list{list-style:none;display:flex;flex-direction:column;gap:.65rem}.notif-item{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.1rem;border:1px solid var(--border);border-radius:12px;background:var(--card)}.notif-item.unread{border-color:#93c5fd;background:#f8fbff}.notif-item-type{display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--primary);margin-bottom:.25rem}.notif-item-main strong{display:block;margin-bottom:.25rem}.notif-item-main p{font-size:.875rem;color:var(--text-muted);margin-bottom:.35rem;white-space:pre-line}.notif-item-main small{font-size:.75rem;color:var(--text-muted)}.notif-item-actions{display:flex;flex-direction:column;gap:.35rem;flex-shrink:0}.sidebar-logout{display:flex;align-items:center;gap:.75rem;padding:1rem;margin:.5rem;background:transparent;border:1px solid rgba(255,255,255,.12);border-radius:6px;color:#f87171;cursor:pointer;font-size:.9rem;flex-shrink:0}.sidebar-logout:hover{background:#f871711a}.app-main{flex:1;min-width:0;width:calc(100% - var(--sidebar-w));margin-left:var(--sidebar-w);min-height:100vh;overflow-x:auto}.page{min-height:100vh;width:100%}.app-header{background:var(--card);border-bottom:1px solid var(--border);padding:1.25rem 1.5rem;display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box}.app-header h1{font-size:1.35rem}.app-header-sub{color:var(--text-muted);font-size:.875rem;margin-top:.25rem}.app-header-user{display:flex;align-items:center;gap:.5rem;font-size:.875rem}.status-dot{width:8px;height:8px;background:var(--success);border-radius:50%}.dept-badge{background:#eff6ff;color:var(--primary);padding:.15rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.page-content{padding:1.25rem 1.5rem 1.5rem;width:100%;max-width:none;box-sizing:border-box}.table-wrapper{background:var(--card);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;width:100%}.data-table{width:100%;border-collapse:collapse;font-size:.875rem}.data-table th{text-align:left;padding:.75rem 1rem;background:#f8fafc;border-bottom:1px solid var(--border);font-weight:600;color:var(--text-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.03em}.data-table td{padding:.85rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.data-table tbody tr:hover{background:#f8fafc}.cell-ref{font-weight:600;white-space:nowrap}.cell-subject{min-width:180px;max-width:none}.cell-date{color:var(--text-muted);font-size:.78rem;line-height:1.35;min-width:9rem}.cell-date time{display:inline}time .relative-time-abs{color:var(--text-muted)}time .relative-time-sep{color:#cbd5e1;font-weight:400}time .relative-time-rel{color:var(--primary);font-weight:600;white-space:nowrap}.relative-time-compact{color:var(--primary);font-weight:600}.mail-assign-completed-at time{display:inline}.mail-timeline-head time{font-size:.78rem}.notif-item-time time{font-size:inherit}.cell-muted{color:var(--text-muted);font-size:.85rem}.mails-list-summary{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.85rem;font-size:.875rem;line-height:1.4;color:var(--text-muted)}.mails-list-range{font-size:.875rem}.mails-table-wrap{overflow-x:auto}.mails-table{table-layout:fixed;width:100%}.mails-table th{white-space:nowrap}.mails-table .col-ref{width:9%}.mails-table .col-subject{width:26%}.mails-table .col-sender{width:17%}.mails-table .col-badge{width:8%;text-align:center}.mails-table .col-assignees{width:14%}.mails-table .col-date{width:11%}.mails-table .col-actions{width:48px;text-align:right}.mails-table td{padding:.7rem .85rem;vertical-align:middle}.mails-table .cell-badge{text-align:center}.mails-table .cell-badge .badge{display:inline-flex;justify-content:center;white-space:nowrap;font-size:.72rem}.mails-table tbody tr:last-child td{border-bottom:none}.mails-table tbody tr:hover{background:#f8fafc}.mails-ref-link{display:inline-flex;align-items:center;gap:.35rem;color:var(--text);font-weight:600;text-decoration:none}.mails-ref-link:hover{color:var(--primary)}.mail-table-ref{font-family:ui-monospace,Cascadia Code,Segoe UI Mono,monospace;font-size:.8rem;letter-spacing:-.02em}.mails-subject-link{display:block;color:var(--text);font-weight:500;text-decoration:none;line-height:1.4}.mails-subject-link:hover{color:var(--primary)}.mail-table-subject-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.mail-table-empty{color:#cbd5e1;font-weight:400}.mail-table-assignees{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center}.mail-table-assignee-chip{display:inline-flex;align-items:center;gap:.3rem;max-width:100%;padding:.15rem .5rem .15rem .15rem;border-radius:999px;background:#f1f5f9;font-size:.75rem;font-weight:500;color:var(--text);line-height:1.2}.mail-table-assignee-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-table-assignees-more{display:inline-flex;align-items:center;justify-content:center;min-width:1.65rem;height:1.65rem;padding:0 .35rem;border-radius:999px;background:#e2e8f0;font-size:.7rem;font-weight:700;color:var(--text-muted)}.mail-table-date{display:flex;flex-direction:column;gap:.15rem;line-height:1.3}.mail-table-date-abs{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.mails-table .cell-date .relative-time-compact{font-size:.72rem;font-weight:600}.mail-table-view-btn{opacity:.55;transition:opacity .15s ease,background .15s ease}.mails-table-row:hover .mail-table-view-btn{opacity:1}.user-table-cell-compact{min-width:0;gap:.55rem}.user-table-cell-compact .user-table-name{font-size:.85rem}.mails-table .cell-actions{display:flex;justify-content:flex-end}.mails-table .cell-actions a.btn-icon{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:var(--text-muted)}.mails-table .cell-actions a.btn-icon:hover{background:#f1f5f9;color:var(--text)}.mails-table-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;border-top:1px solid var(--border);background:#f8fafc;font-size:.85rem;color:var(--text-muted)}.mails-pagination{display:flex;align-items:center;gap:.5rem}.mails-pagination .btn-sm{width:32px;height:32px;padding:0;justify-content:center}.mails-page-info{font-size:.8rem;color:var(--text-muted);min-width:5.5rem;text-align:center}@media(max-width:900px){.mails-table-footer{flex-direction:column;align-items:stretch;text-align:center}.mails-pagination{justify-content:center}}@media(max-width:768px){.mails-list-page .page-content{padding:.85rem 1rem 1.25rem}.mails-list-page .app-header{flex-direction:column;align-items:flex-start;gap:.5rem;padding:1rem}.mails-list-page .app-header h1{font-size:1.1rem;line-height:1.3}.mails-list-page .app-header-sub{font-size:.8125rem}.mails-list-page .app-header-user{font-size:.78rem;flex-wrap:wrap}.mails-list-summary{flex-direction:column;align-items:flex-start;gap:.25rem;margin-bottom:.75rem;font-size:.8125rem}.mails-table-wrap{overflow-x:visible;border-radius:12px}.mails-table thead{display:none}.mails-table tbody tr.mails-table-row{display:flex;flex-direction:column;padding:.95rem 1rem;border-bottom:1px solid var(--border)}.mails-table tbody tr.mails-table-row:last-child{border-bottom:none}.mails-table tbody tr.mails-table-row:hover{background:#f8fafc}.mails-table td{display:grid;grid-template-columns:minmax(5.5rem,34%) 1fr;align-items:start;gap:.5rem .75rem;padding:.3rem 0;border:none;min-width:0}.mails-table td:before{content:attr(data-label);font-weight:700;font-size:.68rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);line-height:1.35;padding-top:.1rem}.mails-table td.cell-ref,.mails-table td.cell-subject{display:block;padding:0}.mails-table td.cell-ref:before,.mails-table td.cell-subject:before{display:none}.mails-table td.cell-ref{order:0;padding-bottom:.25rem}.mails-table td.cell-subject{order:1;min-width:0;max-width:none;padding-bottom:.55rem;margin-bottom:.35rem;border-bottom:1px solid var(--border)}.mails-table td.cell-subject .mails-subject-link{font-size:.95rem;font-weight:600}.mails-table td.cell-date{min-width:0}.mails-table td.cell-badge{text-align:left}.mails-table .mail-table-assignees{min-width:0}.mails-table td.cell-subject .mail-table-subject-text{-webkit-line-clamp:4}.mails-table td.cell-actions{display:flex;justify-content:flex-end;grid-template-columns:none;padding-top:.45rem;margin-top:.15rem;border-top:1px dashed var(--border)}.mails-table td.cell-actions:before{display:none}.mails-table-footer{padding:.75rem}.mails-page-info{min-width:0}}.table-empty{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:3rem;text-align:center;color:var(--text-muted)}.table-empty i{font-size:2rem;margin-bottom:.75rem;display:block}.badge{display:inline-block;padding:.2rem .55rem;border-radius:999px;font-size:.75rem;font-weight:600}.badge-success{background:#dcfce7;color:#166534}.badge-warning{background:#fef3c7;color:#92400e}.badge-danger{background:#fee2e2;color:#991b1b}.badge-info{background:#e0f2fe;color:#075985}.badge-muted{background:#f1f5f9;color:#475569}.text-danger{color:var(--danger)}.pagination{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1rem}.pagination button{padding:.5rem 1rem;border:1px solid var(--border);background:var(--card);border-radius:var(--radius);cursor:pointer}.pagination button:disabled{opacity:.4;cursor:not-allowed}.profile-hero{display:flex;align-items:center;gap:1.25rem;padding:1.5rem;margin-bottom:1rem}.profile-hero h2{font-size:1.35rem;margin-bottom:.25rem}.profile-hero-meta{color:var(--text-muted);font-size:.875rem;margin-bottom:.2rem}.profile-hero-job{margin:0 0 .2rem;font-size:.95rem;font-weight:600;color:var(--text)}.profile-hero-email{font-size:.9rem;color:var(--primary)}.profile-hero-avatar{position:relative;flex-shrink:0}.profile-hero-avatar>i{font-size:4.5rem;color:var(--text-muted)}.profile-avatar-img{width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid #e2e8f0}.profile-avatar-edit{position:absolute;right:-2px;bottom:-2px;width:32px;height:32px;border-radius:50%;border:2px solid #fff;background:var(--primary);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.8rem}.profile-avatar-edit:disabled{opacity:.7;cursor:wait}.profile-tabs{display:flex;gap:.5rem;margin-bottom:1rem}.profile-tabs button{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem 1rem;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--text-muted);font-size:.875rem;font-weight:500;cursor:pointer}.profile-tabs button.active{background:var(--primary);border-color:var(--primary);color:#fff}.profile-form-card{padding:1.5rem}.profile-form-card h3{margin-bottom:1rem;font-size:1.05rem}.profile-form{display:flex;flex-direction:column;gap:1rem}.profile-form label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;font-weight:500}.profile-form input{padding:.6rem .7rem;border:1px solid var(--border);border-radius:var(--radius);font:inherit}.profile-readonly{display:grid;grid-template-columns:110px 1fr;gap:.5rem 1rem;padding:.85rem 1rem;background:#f8fafc;border-radius:var(--radius);font-size:.875rem}.profile-readonly dt{color:var(--text-muted)}.profile-readonly dd{font-weight:600}.profile-security-hint{margin-bottom:1rem}.agent-profile-link{text-decoration:none;color:inherit;border-radius:8px;padding:.15rem .35rem .15rem .15rem;margin:-.15rem;transition:background .15s ease,box-shadow .15s ease}.agent-profile-link:hover{background:#eff6ff;box-shadow:0 0 0 1px #bfdbfe}.agent-profile-link-icon{font-size:.65rem;color:var(--primary);opacity:0;margin-left:auto;flex-shrink:0;transition:opacity .15s ease}.agent-profile-link:hover .agent-profile-link-icon{opacity:1}.mail-comment-head{flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.35rem .75rem}.mail-comment-author-link{flex:1;min-width:0}.mail-comment-head-side{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;flex-shrink:0}.agent-profile-page{background:var(--bg)}.agent-profile-content{max-width:880px;margin:0 auto}.agent-profile-card{background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:0 4px 24px #0f172a0f}.agent-profile-cover{position:relative;height:140px;background:linear-gradient(135deg,#1e40af,#2563eb 45%,#3b82f6)}.agent-profile-cover-pattern{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.15;background-image:radial-gradient(circle at 20% 80%,#fff 1px,transparent 1px),radial-gradient(circle at 80% 20%,#fff 1px,transparent 1px);background-size:24px 24px}.agent-profile-body{padding:0 1.5rem 1.5rem}.agent-profile-head{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:flex-end;margin-top:-52px;margin-bottom:1.5rem}.agent-profile-avatar-wrap{position:relative;flex-shrink:0}.agent-profile-avatar-img,.agent-profile-avatar-fallback{display:block;width:112px;height:112px;border-radius:50%;border:4px solid var(--card);box-shadow:0 8px 24px #0f172a1f;object-fit:cover}.agent-profile-avatar-fallback{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#dbeafe,#93c5fd);color:#1e3a8a;font-size:2rem;font-weight:800;letter-spacing:-.02em}.agent-profile-you-badge{position:absolute;right:-4px;bottom:6px;padding:.15rem .5rem;border-radius:999px;background:#16a34a;color:#fff;font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;border:2px solid var(--card)}.agent-profile-identity{flex:1;min-width:200px;padding-bottom:.25rem}.agent-profile-eyebrow{margin:0 0 .2rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--primary)}.agent-profile-identity h1{margin:0 0 .25rem;font-size:1.65rem;font-weight:800;line-height:1.2;letter-spacing:-.02em}.agent-profile-role{margin:0 0 .25rem;font-size:1.05rem;font-weight:700;color:var(--text)}.agent-profile-role-sub{margin:0 0 .65rem;font-size:.9rem;font-weight:600;color:var(--text-muted)}.agent-profile-chips{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.75rem}.agent-profile-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .65rem;border-radius:999px;font-size:.78rem;font-weight:600;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.agent-profile-chip.muted{background:#f8fafc;color:var(--text-muted);border-color:var(--border)}.agent-profile-chip i{font-size:.72rem;opacity:.85}.agent-profile-edit-btn{display:inline-flex;align-items:center;gap:.45rem;margin-top:.25rem;font-size:.85rem;padding:.5rem 1rem}.agent-profile-section{margin-bottom:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border)}.agent-profile-section h2{display:flex;align-items:center;gap:.5rem;margin:0 0 1rem;font-size:.95rem;font-weight:700;color:var(--text)}.agent-profile-section h2 i{color:var(--primary);font-size:.9rem}.agent-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.agent-profile-stat{display:flex;align-items:center;gap:.85rem;padding:1rem;border-radius:12px;border:1px solid var(--border);background:#fafbfc;transition:box-shadow .15s ease,transform .15s ease}.agent-profile-stat:hover{box-shadow:0 4px 12px #0f172a0f;transform:translateY(-1px)}.agent-profile-stat-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0}.agent-profile-stat.tone-blue .agent-profile-stat-icon{background:#dbeafe;color:#1d4ed8}.agent-profile-stat.tone-green .agent-profile-stat-icon{background:#dcfce7;color:#15803d}.agent-profile-stat.tone-violet .agent-profile-stat-icon{background:#ede9fe;color:#6d28d9}.agent-profile-stat-value{display:block;font-size:1.5rem;font-weight:800;line-height:1;color:var(--text)}.agent-profile-stat-label{display:block;margin-top:.2rem;font-size:.72rem;font-weight:600;color:var(--text-muted);line-height:1.3}.agent-profile-progress{margin-top:1rem;padding:1rem 1.1rem;border-radius:12px;background:linear-gradient(180deg,#f0fdf4,#f8fafc);border:1px solid #bbf7d0}.agent-profile-progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.85rem}.agent-profile-progress-head strong{color:#15803d;font-size:1rem}.agent-profile-progress-track{height:8px;border-radius:999px;background:#dcfce7;overflow:hidden}.agent-profile-progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#22c55e,#16a34a);transition:width .4s ease}.agent-profile-progress-hint{margin:.45rem 0 0;font-size:.78rem;color:var(--text-muted)}.agent-profile-dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1.25rem;margin:0}.agent-profile-dl div{padding:.75rem .9rem;border-radius:10px;background:#f8fafc;border:1px solid var(--border)}.agent-profile-dl dt{margin:0 0 .2rem;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.agent-profile-dl dd{margin:0;font-size:.9rem;font-weight:600;line-height:1.4}.agent-profile-id{font-family:ui-monospace,monospace;font-size:.82rem!important;color:var(--text-muted)!important}.agent-profile-privacy{display:flex;align-items:flex-start;gap:.65rem;padding:.85rem 1rem;border-radius:10px;background:#f8fafc;border:1px dashed #cbd5e1;font-size:.8rem;color:var(--text-muted);line-height:1.45}.agent-profile-privacy i{margin-top:.15rem;color:#64748b}.agent-profile-privacy p{margin:0}.agent-profile-empty{text-align:center;padding:3rem 2rem}.agent-profile-empty i{font-size:2.5rem;color:var(--text-muted);margin-bottom:1rem}.agent-profile-empty h2{margin:0 0 .5rem}.agent-profile-empty p{color:var(--text-muted);margin-bottom:1.25rem}.agent-profile-skeleton .agent-profile-body{padding-top:1rem}.agent-profile-skeleton-avatar{width:112px;height:112px;border-radius:50%;margin-top:-52px;margin-bottom:1rem}.agent-profile-skeleton-lines div{height:20px;border-radius:6px;margin-bottom:.5rem}.agent-profile-skeleton-lines div.short{width:60%}.skeleton-shimmer{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0,#f1f5f9 75%);background-size:200% 100%;animation:skeleton-shimmer 1.2s ease-in-out infinite}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media(max-width:720px){.agent-profile-body{padding:0 1rem 1.25rem}.agent-profile-head{flex-direction:column;align-items:flex-start;margin-top:-44px}.agent-profile-avatar-img,.agent-profile-avatar-fallback,.agent-profile-skeleton-avatar{width:96px;height:96px}.agent-profile-avatar-fallback{font-size:1.65rem}.agent-profile-stats,.agent-profile-dl{grid-template-columns:1fr}.agent-profile-cover{height:110px}}.pwd-field-group{display:flex;flex-direction:column;gap:.5rem}.pwd-strength{padding:.75rem .9rem;background:#f8fafc;border:1px solid var(--border);border-radius:10px}.pwd-strength-meter-wrap{display:flex;align-items:center;gap:.65rem;margin-bottom:.65rem}.pwd-strength-meter{flex:1;height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden}.pwd-strength-meter-fill{height:100%;border-radius:inherit;transition:width .2s ease,background .2s ease}.pwd-strength-meter-fill.level-weak{background:linear-gradient(90deg,#ef4444,#f97316)}.pwd-strength-meter-fill.level-medium{background:linear-gradient(90deg,#f59e0b,#eab308)}.pwd-strength-meter-fill.level-strong{background:linear-gradient(90deg,#22c55e,#16a34a)}.pwd-strength-label{font-size:.75rem;font-weight:700;min-width:3rem;text-align:right}.pwd-strength-label.level-weak{color:#dc2626}.pwd-strength-label.level-medium{color:#d97706}.pwd-strength-label.level-strong{color:#16a34a}.pwd-strength-rules{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.35rem .75rem}.pwd-strength-rule{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--text-muted);transition:color .15s ease}.pwd-strength-rule i{font-size:.75rem;width:1rem;text-align:center}.pwd-strength-rule.met{color:#16a34a;font-weight:500}.pwd-strength-rule.met i{color:#16a34a}.pwd-strength-rule.unmet{color:#94a3b8}.pwd-strength-rule.unmet i{color:#cbd5e1}.pwd-strength-ok{margin-top:.55rem;font-size:.8rem;font-weight:600;color:#16a34a;display:flex;align-items:center;gap:.35rem}.pwd-match{display:flex;align-items:center;gap:.45rem;padding:.55rem .75rem;border-radius:8px;font-size:.8rem;font-weight:500}.pwd-match.idle{background:#f8fafc;color:var(--text-muted);border:1px solid var(--border)}.pwd-match.idle i{color:#cbd5e1}.pwd-match.met{background:#ecfdf5;color:#16a34a;border:1px solid #bbf7d0}.pwd-match.unmet{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.forbidden-page,.placeholder-card{display:flex;align-items:center;justify-content:center;min-height:60vh}.forbidden-card,.placeholder-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:3rem;text-align:center;max-width:400px}.forbidden-card i,.placeholder-card i{font-size:3rem;color:var(--text-muted);margin-bottom:1rem}.btn-primary{display:inline-block;margin-top:1rem;padding:.65rem 1.25rem;background:var(--primary);color:#fff;border-radius:var(--radius);font-weight:600}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem}.mail-form{max-width:720px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.mail-form label,.modal label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;font-weight:500;margin-bottom:1rem}.mail-form input,.mail-form select,.mail-form textarea,.modal input,.modal select,.modal textarea{padding:.6rem .75rem;border:1px solid var(--border);border-radius:var(--radius);font-size:1rem;font-family:inherit}.field-hint{color:var(--text-muted);font-size:.75rem;font-weight:400}.form-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:.5rem}button.btn-primary,button.btn-secondary,button.btn-danger{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1rem;border:none;border-radius:var(--radius);font-weight:600;cursor:pointer}button.btn-primary{background:var(--primary);color:#fff}button.btn-secondary{background:#f1f5f9;color:var(--text);border:1px solid var(--border)}button.btn-danger{background:#fee2e2;color:var(--danger)}button:disabled{opacity:.6;cursor:not-allowed}.alert-success{background:#dcfce7;color:#166534;padding:.75rem 1rem;border-radius:var(--radius);margin-bottom:1rem}.btn-link{color:var(--primary);font-weight:600;font-size:.875rem}.detail-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-bottom:1rem}.detail-card h3{margin-bottom:1rem;font-size:1rem}.detail-dl{display:grid;grid-template-columns:110px 1fr;gap:.5rem 1rem;font-size:.9rem}.detail-dl dt{color:var(--text-muted)}.full-width{grid-column:1 / -1}.mail-detail-back{margin-bottom:1rem}.mail-detail-back-link{display:inline-flex;align-items:center;gap:.45rem;font-size:.875rem;font-weight:600;color:var(--text-muted);text-decoration:none}.mail-detail-back-link:hover{color:var(--primary)}.mail-detail-hero{padding:1.25rem 1.35rem;margin-bottom:1rem;width:100%;box-sizing:border-box}.mail-detail-hero-locked{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}.sensitive-unlock-gate{max-width:32rem;margin:0 auto 1.5rem;padding:1.75rem 1.5rem;text-align:center}.sensitive-unlock-icon{width:3.5rem;height:3.5rem;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#fef2f2;color:#dc2626;font-size:1.35rem}.sensitive-unlock-gate h2{margin:0 0 .5rem;font-size:1.15rem}.sensitive-unlock-gate>p{margin:0 0 1.25rem;color:var(--text-muted);font-size:.9rem;line-height:1.5}.sensitive-unlock-form{display:flex;flex-direction:column;gap:.75rem;text-align:left}.sensitive-mail-modal{width:100%;max-width:28rem;background:var(--card);border-radius:12px;padding:1.25rem 1.35rem}.sensitive-mail-modal .modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:1rem}.sensitive-mail-modal .modal-header h2{margin:0;font-size:1.05rem;display:flex;align-items:center;gap:.45rem}.sensitive-mail-modal .modal-footer{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}.sensitive-mail-modal-intro{margin:0 0 .75rem;font-size:.88rem;color:var(--text-muted);line-height:1.5}.sensitive-mail-modal-ref{margin:0 0 1rem;font-size:.82rem}.sensitive-mail-field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.85rem;font-size:.82rem;font-weight:600;color:var(--text-muted)}.sensitive-mail-field input{font-weight:400;padding:.55rem .75rem;border:1px solid var(--border);border-radius:8px}.mail-detail-hero-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem 1.5rem;margin-bottom:1.15rem}.mail-detail-ref{margin:0 0 .35rem;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);display:flex;align-items:center;gap:.4rem}.mail-detail-subject{margin:0 0 .65rem;font-size:1.35rem;font-weight:700;line-height:1.3}.mail-detail-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}.mail-detail-type{font-size:.8rem;color:var(--text-muted);padding:.2rem .55rem;background:#f1f5f9;border-radius:999px}.mail-detail-hero-meta{display:flex;flex-direction:column;gap:.45rem;font-size:.82rem;color:var(--text-muted);min-width:200px}.mail-detail-hero-meta span{display:inline-flex;align-items:center;gap:.4rem}.mail-detail-workflow{display:flex;list-style:none;gap:0;margin:0;padding:0;border-top:1px solid var(--border);padding-top:1rem}.mail-detail-workflow li{flex:1;display:flex;align-items:center;gap:.45rem;font-size:.78rem;font-weight:600;color:var(--text-muted);position:relative;padding-right:.5rem}.mail-detail-workflow li:not(:last-child):after{content:"";flex:1;height:2px;background:#e2e8f0;margin-left:.35rem;min-width:12px}.mail-detail-workflow li.done{color:#166534}.mail-detail-workflow li.done .mail-detail-workflow-dot{background:#22c55e;border-color:#22c55e}.mail-detail-workflow li.active{color:var(--primary)}.mail-detail-workflow li.active .mail-detail-workflow-dot{background:var(--primary);border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.mail-detail-workflow-dot{width:10px;height:10px;border-radius:50%;border:2px solid #cbd5e1;background:#fff;flex-shrink:0}.mail-detail-workflow-status{margin:.65rem 0 0;font-size:.8rem;color:var(--text-muted)}.mail-detail-actions{display:flex;flex-wrap:wrap;gap:.5rem;padding:.85rem 1rem;margin-bottom:1rem}.mail-detail-actions .btn-primary,.mail-detail-actions .btn-secondary,.mail-detail-actions .btn-danger{margin-top:0}.mail-detail-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.95fr);gap:1rem;align-items:start;width:100%}.mail-detail-main{display:flex;flex-direction:column;gap:1rem;min-width:0}.mail-detail-aside{position:relative;align-self:start;min-width:0;width:100%;min-height:calc(100vh - 2rem)}.mail-detail-aside-fixed{width:100%;height:calc(100vh - 2rem)}.mail-detail-aside-fixed .mail-comments-section{height:100%;max-height:100%}@media(min-width:901px){.mail-detail-aside-fixed{position:fixed;top:1rem;right:1.5rem;width:calc((100vw - var(--sidebar-w) - 3rem - 1rem) * .95 / 2.5);min-width:300px;max-width:460px;height:calc(100vh - 2rem);z-index:15}}.mail-detail-section{padding:1.15rem 1.25rem}.mail-detail-section-title{margin:0 0 1rem;font-size:.95rem;font-weight:700;display:flex;align-items:center;gap:.45rem;color:var(--text)}.mail-detail-section-title i{color:var(--primary);font-size:.9rem}.mail-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1.25rem}.mail-info-item{display:flex;flex-direction:column;gap:.25rem}.mail-info-item-wide{grid-column:1 / -1}.mail-info-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.mail-info-value{font-size:.9rem;font-weight:500}.mail-info-note{font-weight:400;line-height:1.45;color:var(--text);background:#f8fafc;padding:.65rem .75rem;border-radius:8px}.mail-info-sender-block{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.mail-attachment-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.65rem}.mail-attachment-card{display:flex;flex-direction:column;gap:.25rem;width:100%;padding:.75rem .85rem;border:1px solid var(--border);border-radius:10px;background:#f8fafc;text-decoration:none;text-align:left;font:inherit;color:var(--text);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.mail-attachment-card:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0f172a0f;color:var(--primary)}.mail-attachment-card i{font-size:1.1rem;color:var(--primary)}.mail-create-hero{padding:1.25rem 1.35rem;margin-bottom:1rem}.mail-create-hero-main{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.mail-create-hero-icon{width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.35rem;flex-shrink:0;box-shadow:0 4px 14px #2563eb47}.mail-create-hero h1{margin:0 0 .25rem;font-size:1.35rem}.mail-create-hero p{margin:0;font-size:.9rem;color:var(--text-muted)}.mail-create-workflow{display:flex;list-style:none;gap:0;margin:0;padding:.85rem 0 0;border-top:1px solid var(--border)}.mail-create-workflow li{flex:1;display:flex;align-items:center;gap:.45rem;font-size:.78rem;font-weight:600;color:var(--text-muted);position:relative;padding-right:.5rem}.mail-create-workflow li:not(:last-child):after{content:"";flex:1;height:2px;background:#e2e8f0;margin-left:.35rem;min-width:12px}.mail-create-workflow li.active{color:var(--primary)}.mail-create-workflow li.active .mail-detail-workflow-dot{background:var(--primary);border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.mail-create-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:1rem;align-items:start}.mail-create-main{display:flex;flex-direction:column;gap:1rem;min-width:0}.mail-create-section{padding:1.15rem 1.25rem}.mail-create-section-title{margin:0 0 1rem;font-size:.95rem;font-weight:700;display:flex;align-items:center;gap:.45rem}.mail-create-section-title i{color:var(--primary);font-size:.9rem}.mail-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem}.mail-create-field{display:flex;flex-direction:column;gap:.35rem;margin:0}.mail-create-field-wide{grid-column:1 / -1}.mail-create-field>span{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.mail-create-input-wrap{display:flex;align-items:center;gap:.55rem;height:42px;padding:0 .75rem;border:1px solid var(--border);border-radius:8px;background:#f8fafc;transition:border-color .15s ease,box-shadow .15s ease}.mail-create-input-wrap:focus-within{border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1a;background:var(--card)}.mail-create-input-wrap i{color:var(--text-muted);font-size:.85rem;flex-shrink:0}.mail-create-input-wrap input,.mail-create-input-wrap select{flex:1;border:none;background:transparent;font-size:.9rem;min-width:0;padding:0;font-family:inherit}.mail-create-input-wrap input:focus,.mail-create-input-wrap select:focus{outline:none}.mail-create-field-ref{grid-column:1 / -1}.mail-create-ref-row{display:flex;align-items:stretch;gap:.5rem}.mail-create-ref-row .mail-create-input-wrap{flex:1;min-width:0}.mail-create-ref-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;height:42px;padding:0 .9rem;font-size:.85rem}.mail-create-field-hint{display:block;margin-top:.35rem;font-size:.78rem;color:var(--text-muted)}.mail-create-field textarea{width:100%;padding:.75rem .85rem;border:1px solid var(--border);border-radius:8px;font-size:.9rem;font-family:inherit;resize:vertical;min-height:100px;background:#f8fafc;transition:border-color .15s ease,box-shadow .15s ease}.mail-create-field textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1a;background:var(--card)}.mail-create-priority{display:flex;gap:.5rem;flex-wrap:wrap}.mail-create-priority-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .85rem;border:1px solid var(--border);border-radius:999px;background:var(--card);font-size:.85rem;font-weight:600;cursor:pointer;color:var(--text-muted);transition:all .15s ease}.mail-create-priority-btn.tone-high.active{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}.mail-create-priority-btn.tone-medium.active{background:#fef3c7;border-color:#fcd34d;color:#b45309}.mail-create-priority-btn.tone-low.active{background:#dcfce7;border-color:#86efac;color:#166534}.mail-create-priority-btn:hover{border-color:#cbd5e1}.mail-create-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;width:100%;padding:1.75rem 1rem;border:2px dashed #cbd5e1;border-radius:12px;background:#f8fafc;cursor:pointer;font:inherit;color:var(--text);text-align:center;transition:border-color .15s ease,background .15s ease}.mail-create-dropzone:hover{border-color:#93c5fd;background:#eff6ff}.mail-create-dropzone.has-file{border-style:solid;border-color:#86efac;background:#f0fdf4}.mail-create-dropzone i{font-size:1.75rem;color:var(--primary)}.mail-create-dropzone.has-file i{color:#16a34a}.mail-create-file-input-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mail-create-attachment-hint{margin:.55rem 0 0;font-size:.8rem;color:#b45309;line-height:1.4}.mail-create-clear-file{display:inline-flex;align-items:center;gap:.35rem;margin-top:.65rem;padding:0;border:none;background:none;color:var(--danger);font-size:.8rem;font-weight:600;cursor:pointer}.mail-create-file-list{list-style:none;margin:.75rem 0 0;padding:0;display:flex;flex-direction:column;gap:.45rem}.mail-create-file-list li{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.55rem .7rem;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.mail-create-file-item{display:flex;align-items:center;gap:.5rem;min-width:0;flex:1}.mail-create-file-item>i{color:var(--primary);flex-shrink:0}.mail-create-file-name{font-size:.85rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-create-file-size{font-size:.75rem;color:var(--text-muted);flex-shrink:0}.mail-create-file-remove{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:6px;background:transparent;color:var(--danger);cursor:pointer;flex-shrink:0}.mail-create-file-remove:hover{background:#fee2e2}.mail-create-aside{display:flex;flex-direction:column;gap:1rem;position:sticky;top:1rem}.mail-create-side-card{padding:1.1rem 1.15rem}.mail-create-side-card h3{margin:0 0 .75rem;font-size:.9rem;display:flex;align-items:center;gap:.4rem}.mail-create-side-card h3 i{color:var(--primary)}.mail-create-tips{list-style:none;display:flex;flex-direction:column;gap:.55rem}.mail-create-tips li{display:flex;align-items:flex-start;gap:.5rem;font-size:.82rem;color:var(--text-muted);line-height:1.45}.mail-create-tips i{color:#16a34a;margin-top:.15rem;flex-shrink:0}.mail-create-actions-card{display:flex;flex-direction:column;gap:.65rem}.mail-create-actions-card .btn-primary,.mail-create-actions-card .btn-secondary{margin-top:0;width:100%;justify-content:center}@media(max-width:1024px){.mail-create-layout{grid-template-columns:1fr}.mail-create-aside{position:static}.mail-create-actions-card{flex-direction:row;flex-wrap:wrap}.mail-create-actions-card .btn-primary,.mail-create-actions-card .btn-secondary{flex:1 1 180px}}@media(max-width:600px){.mail-create-workflow{flex-wrap:wrap;gap:.5rem}.mail-create-workflow li:not(:last-child):after{display:none}.mail-create-workflow li{flex:1 1 calc(50% - .25rem)}}@media(max-width:768px){.mail-create-page .page-content{padding:.85rem 1rem 6.5rem}.mail-create-hero{padding:1rem}.mail-create-hero-main{align-items:flex-start;gap:.85rem}.mail-create-hero-icon{width:44px;height:44px;font-size:1.15rem;border-radius:12px}.mail-create-hero h1{font-size:1.15rem;line-height:1.3}.mail-create-hero p{font-size:.82rem}.mail-create-section{padding:1rem}.mail-create-grid{grid-template-columns:1fr}.mail-create-ref-row{flex-direction:column;align-items:stretch}.mail-create-ref-btn{width:100%;justify-content:center}.mail-create-input-wrap{height:auto;min-height:42px;padding:.55rem .75rem}.mail-create-priority{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.mail-create-priority-btn{justify-content:center;padding:.55rem .35rem;font-size:.78rem}.mail-create-dropzone{padding:1.35rem .85rem}.mail-create-dropzone strong{font-size:.9rem;word-break:break-word}.mail-create-side-card:not(.mail-create-actions-card){padding:1rem}.mail-create-actions-card{position:fixed;left:0;right:0;bottom:0;z-index:100;flex-direction:row;gap:.5rem;margin:0;border-radius:0;border-left:none;border-right:none;border-bottom:none;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 20px #0f172a14;background:var(--card)}.mail-create-actions-card .btn-primary,.mail-create-actions-card .btn-secondary{flex:1;min-width:0;margin-top:0;padding:.7rem .5rem;font-size:.82rem;white-space:nowrap}.mail-detail-back-link{font-size:.8125rem;line-height:1.4}}@media(max-width:400px){.mail-create-priority{grid-template-columns:1fr}.mail-create-actions-card .btn-primary,.mail-create-actions-card .btn-secondary{font-size:.78rem;padding:.65rem .35rem}}.attachment-preview-overlay{z-index:1100;padding:.75rem 1rem}.attachment-preview-modal{background:var(--card);border-radius:14px;width:min(1280px,calc(100vw - 2rem));max-height:94vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 48px #0f172a33}.attachment-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border-bottom:1px solid var(--border);background:#f8fafc}.attachment-preview-header-main{display:flex;gap:.85rem;min-width:0}.attachment-preview-file-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1.15rem}.attachment-preview-file-icon.kind-image{background:#dbeafe;color:#1d4ed8}.attachment-preview-file-icon.kind-pdf{background:#fee2e2;color:#b91c1c}.attachment-preview-file-icon.kind-docx{background:#dbeafe;color:#1d4ed8}.attachment-preview-file-icon.kind-unsupported{background:#f1f5f9;color:#64748b}.attachment-preview-titles{min-width:0}.attachment-preview-titles h2{margin:0;font-size:1rem;line-height:1.35;word-break:break-word}.attachment-preview-meta{display:flex;flex-wrap:wrap;gap:.35rem .65rem;margin:.3rem 0 0;font-size:.75rem;color:var(--text-muted)}.attachment-preview-meta span:not(:last-child):after{content:"·";margin-left:.65rem;opacity:.6}.attachment-preview-body{flex:1;min-height:360px;max-height:calc(94vh - 140px);overflow:auto;background:#0f172a;display:flex;align-items:center;justify-content:center}.attachment-preview-image{max-width:100%;max-height:calc(94vh - 140px);object-fit:contain;display:block}.attachment-preview-pdf{width:100%;height:calc(94vh - 140px);min-height:480px;border:none;background:#fff}.attachment-preview-body-docx{background:#e2e8f0;align-items:stretch;justify-content:flex-start}.attachment-preview-docx-wrap{width:100%;min-height:100%;position:relative}.attachment-preview-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:.65rem;background:#e2e8f0eb;color:var(--text-muted);font-size:.9rem;z-index:2}.attachment-preview-docx{width:100%;min-height:calc(94vh - 140px);overflow:auto;padding:1.25rem 1.5rem}.attachment-preview-docx.is-loading{visibility:hidden}.attachment-preview-docx .docx-wrapper{margin:0 auto;background:#fff;box-shadow:0 4px 24px #0f172a1f}.attachment-preview-unsupported-light{background:#f8fafc;color:var(--text-muted);min-height:280px;width:100%}.attachment-preview-unsupported-light i{color:#94a3b8}.attachment-preview-unsupported{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:2rem;text-align:center;color:#e2e8f0}.attachment-preview-unsupported i{font-size:2.5rem;opacity:.75}.attachment-preview-footer{display:flex;justify-content:flex-end;gap:.65rem;padding:.85rem 1.15rem;border-top:1px solid var(--border);background:var(--card)}.attachment-preview-footer .btn-primary,.attachment-preview-footer .btn-secondary{margin-top:0}.attachment-preview-download{display:inline-flex;align-items:center;gap:.45rem;text-decoration:none}@media(max-width:600px){.attachment-preview-footer{flex-direction:column-reverse}.attachment-preview-footer .btn-primary,.attachment-preview-footer .btn-secondary,.attachment-preview-download{width:100%;justify-content:center}}.mail-attachment-name{font-size:.85rem;font-weight:600;word-break:break-word}.mail-attachment-cat{font-size:.72rem;color:var(--text-muted);text-transform:uppercase}.mail-timeline{list-style:none;margin:0;padding:0}.mail-timeline-item{display:flex;gap:.85rem;padding-bottom:1rem}.mail-timeline-item:not(:last-child) .mail-timeline-marker:after{content:"";position:absolute;top:14px;left:50%;transform:translate(-50%);width:2px;bottom:-1rem;background:#e2e8f0}.mail-timeline-marker{width:12px;height:12px;border-radius:50%;background:var(--primary);border:2px solid #dbeafe;flex-shrink:0;margin-top:.2rem;position:relative}.mail-timeline-body{flex:1;min-width:0}.mail-timeline-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.35rem 1rem;margin-bottom:.25rem}.mail-timeline-head strong{font-size:.9rem}.mail-timeline-head time{font-size:.75rem;color:var(--text-muted)}.mail-timeline-comment{margin:.25rem 0 .5rem;font-size:.85rem;color:var(--text);line-height:1.45}.mail-timeline-actor{margin-top:.35rem}.mail-detail-section-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.85rem}.mail-detail-section-head .mail-detail-section-title{margin-bottom:0}.mail-detail-assign-count{font-size:.72rem;font-weight:600;padding:.15rem .5rem;border-radius:999px;background:#e0e7ff;color:#4338ca;margin-left:.35rem}.mail-detail-assign-progress{font-size:.78rem;font-weight:700;padding:.2rem .6rem;border-radius:999px;background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}.mail-assign-meta-row{margin-bottom:1rem;padding-bottom:.85rem;border-bottom:1px solid var(--border)}.mail-assign-progress-list{list-style:none;display:flex;flex-direction:column;gap:.65rem}.mail-assign-progress-card{padding:.85rem .95rem;border:1px solid var(--border);border-radius:12px;background:#f8fafc}.mail-assign-progress-card.done{border-color:#bbf7d0;background:#f0fdf4}.mail-assign-progress-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.mail-assign-status{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:700;padding:.2rem .55rem;border-radius:999px;white-space:nowrap;flex-shrink:0}.mail-assign-status.done{background:#dcfce7;color:#15803d}.mail-assign-status.pending{background:#fef3c7;color:#b45309}.mail-assign-completed-at{display:flex;align-items:center;gap:.4rem;margin:.55rem 0 0;padding-left:2.5rem;font-size:.8rem;color:var(--text-muted)}.mail-assign-completion-note{margin:.55rem 0 0;padding-left:2.5rem}.mail-assign-completion-note p{margin:.35rem 0 0;font-size:.85rem;line-height:1.45;color:var(--text);white-space:pre-wrap}.mail-assign-output{margin-top:.65rem;padding-top:.65rem;border-top:1px dashed #e2e8f0}.mail-assign-output .mail-info-label{display:block;margin-bottom:.4rem}.mail-assign-output-files{list-style:none;display:flex;flex-direction:column;gap:.35rem}.mail-assign-output-btn{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .65rem;border:1px solid var(--border);border-radius:8px;background:var(--card);font:inherit;font-size:.82rem;color:var(--text);cursor:pointer;text-align:left;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.mail-detail-section .comment-attachments{margin-top:0}.mail-assign-output-btn:hover{border-color:#93c5fd;background:#eff6ff}.mail-assign-output-btn span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-assign-output-btn .fa-eye{color:var(--primary);font-size:.8rem}.mail-assign-no-output{margin:0;font-size:.8rem;color:var(--text-muted);font-style:italic}.mail-assign-no-output.pending{font-style:normal;color:#b45309}.mail-assignee-list{list-style:none;display:flex;flex-direction:column;gap:.5rem}.mail-assignees-cell{display:flex;flex-direction:column;gap:.45rem}.mail-assignees-more{font-size:.75rem;color:var(--text-muted);font-weight:600}.mail-comments-section{display:flex;flex-direction:column;padding:0;overflow:hidden}@media(max-width:900px){.mail-detail-layout{grid-template-columns:1fr}.mail-detail-aside{min-height:0}.mail-detail-aside-fixed{position:static;width:100%;height:auto}.mail-detail-aside-fixed .mail-comments-section{height:min(72vh,640px);max-height:min(72vh,640px)}.mail-detail-workflow{flex-wrap:wrap;gap:.5rem}.mail-detail-workflow li{flex:1 1 45%}.mail-detail-workflow li:not(:last-child):after{display:none}}@media(max-width:768px){.mail-detail-page .page-content{padding:.85rem 1rem 1.25rem}.mail-detail-page--actions .page-content{padding-bottom:6.5rem}.mail-detail-hero{padding:1rem}.mail-detail-hero-top{flex-direction:column;gap:.85rem;margin-bottom:.85rem}.mail-detail-hero-meta{min-width:0;width:100%;font-size:.78rem}.mail-detail-subject{font-size:1.1rem;line-height:1.35}.mail-detail-section{padding:1rem}.mail-info-grid,.mail-attachment-grid{grid-template-columns:1fr}.mail-detail-section-head,.mail-assign-progress-head{flex-direction:column;align-items:flex-start;gap:.45rem}.mail-assign-output-files{flex-direction:column}.mail-assign-output-btn{width:100%}.mail-detail-actions{position:fixed;left:0;right:0;bottom:0;z-index:100;margin:0;border-radius:0;border-left:none;border-right:none;border-bottom:none;padding:.65rem .75rem calc(.65rem + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 20px #0f172a14;background:var(--card);gap:.4rem;flex-wrap:wrap}.mail-detail-actions .btn-primary,.mail-detail-actions .btn-secondary,.mail-detail-actions .btn-danger{flex:1 1 calc(50% - .2rem);min-width:0;justify-content:center;font-size:.78rem;padding:.6rem .45rem;white-space:nowrap}.mail-detail-aside-fixed .mail-comments-section{height:min(65vh,520px);max-height:min(65vh,520px)}}@media(max-width:600px){.mail-detail-workflow li{flex:1 1 calc(50% - .25rem)}.mail-detail-subject{font-size:1.05rem}.mail-detail-actions .btn-primary,.mail-detail-actions .btn-secondary,.mail-detail-actions .btn-danger{flex:1 1 100%}}.modal-overlay,.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:2100;padding:1rem}.modal{background:var(--card);border-radius:12px;padding:1.5rem;width:100%;max-width:520px;max-height:90vh;overflow-y:auto}.modal h2{margin-bottom:.25rem}.modal-sub{color:var(--text-muted);margin-bottom:1rem;font-size:.875rem}.search-input{width:100%;padding:.6rem;border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.75rem}.user-picker{max-height:200px;overflow-y:auto;border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem}.user-picker-item{display:flex;align-items:flex-start;gap:.5rem;padding:.6rem .75rem;border-bottom:1px solid var(--border);cursor:pointer;margin:0}.user-picker-item small{display:block;color:var(--text-muted);font-weight:400}.modal-lg{max-width:560px}.create-user-modal{max-width:min(56rem,calc(100vw - 2rem));padding:1.75rem 2rem}.create-user-modal form{display:flex;flex-direction:column;gap:.15rem}.create-user-modal .perm-editor{margin-top:.35rem}.create-user-modal .perm-group__grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}@media(min-width:900px){.create-user-modal .perm-group__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.assign-modal{max-width:680px;padding:0;overflow:hidden;display:flex;flex-direction:column;max-height:min(92vh,900px)}.assign-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.25rem 1.35rem;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#f8fafc 0%,var(--card) 100%)}.assign-modal-header-main{display:flex;gap:1rem;min-width:0}.assign-modal-icon{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0;box-shadow:0 4px 12px #2563eb40}.assign-modal-titles{min-width:0}.assign-modal-titles h2{margin:0 0 .35rem;font-size:1.15rem}.assign-modal-ref{margin:0;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--primary)}.assign-modal-subject{margin:.2rem 0 0;font-size:.875rem;color:var(--text-muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.assign-modal-close{flex-shrink:0}.assign-modal-form{display:flex;flex-direction:column;min-height:0;overflow-y:auto;padding:1.15rem 1.35rem 1.35rem}.assign-modal-form .alert-error{margin-bottom:1rem}.assign-modal-section{margin-bottom:1.15rem}.assign-modal-section h3{margin:0;font-size:.9rem;font-weight:700;display:flex;align-items:center;gap:.45rem;color:var(--text)}.assign-modal-section h3 i{color:var(--primary);font-size:.85rem}.assign-modal-section-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.assign-modal-count{font-size:.75rem;font-weight:600;padding:.2rem .55rem;border-radius:999px;background:#f1f5f9;color:var(--text-muted);white-space:nowrap}.assign-modal-count.has-selection{background:#dbeafe;color:#1d4ed8}.assign-modal-filters{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.55rem}.assign-modal-filter{display:flex;flex-direction:column;gap:.25rem;min-width:0}.assign-modal-filter span{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.assign-modal-filter select{height:36px;padding:0 .6rem;border:1px solid var(--border);border-radius:8px;background:#f8fafc;font-size:.82rem;font-family:inherit;color:var(--text);min-width:0}.assign-modal-filter select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1a;background:var(--card)}.assign-modal-dept-all{display:flex;align-items:center;gap:.5rem;margin-bottom:.55rem;padding:.45rem .65rem;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;font-size:.82rem;font-weight:500;color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none}.assign-modal-dept-all input{width:15px;height:15px;accent-color:var(--primary);flex-shrink:0;cursor:pointer}.assign-modal-dept-all.disabled{opacity:.55;cursor:not-allowed}.assign-modal-dept-all.disabled input{cursor:not-allowed}.assign-modal-search{display:flex;align-items:center;gap:.55rem;height:40px;padding:0 .75rem;border:1px solid var(--border);border-radius:10px;background:#f8fafc;margin-bottom:.65rem}.assign-modal-search i{color:var(--text-muted);font-size:.85rem}.assign-modal-search input{flex:1;border:none;background:transparent;font-size:.875rem;min-width:0}.assign-modal-search input:focus{outline:none}.assign-agent-list{display:flex;flex-direction:column;gap:.45rem;max-height:240px;overflow-y:auto;padding:.15rem;margin:0 -.15rem}.assign-agent-card{display:flex;align-items:center;gap:.75rem;width:100%;padding:.65rem .75rem;border:1px solid var(--border);border-radius:10px;background:var(--card);cursor:pointer;text-align:left;font:inherit;color:inherit;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.assign-agent-card:hover{border-color:#cbd5e1;background:#f8fafc}.assign-agent-card.selected{border-color:#93c5fd;background:#eff6ff;box-shadow:0 0 0 1px #bfdbfe}.assign-agent-info{flex:1;min-width:0}.assign-agent-name{display:block;font-size:.9rem;font-weight:600;line-height:1.3}.assign-agent-meta{display:block;font-size:.78rem;color:var(--text-muted);margin-top:.1rem}.assign-agent-check{flex-shrink:0;font-size:1.1rem;color:#cbd5e1}.assign-agent-card.selected .assign-agent-check{color:#2563eb}.assign-agent-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:2rem 1rem;color:var(--text-muted);font-size:.875rem;text-align:center}.assign-agent-empty i{font-size:1.5rem;opacity:.6}.assign-modal-options{padding-top:.25rem;border-top:1px solid var(--border)}.assign-modal-options>h3{margin-bottom:.75rem}.assign-modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:.85rem 1rem}.assign-modal label.assign-field{display:flex;flex-direction:column;gap:.35rem;margin:0;font-weight:inherit}.assign-field-wide{grid-column:1 / -1}.assign-field>span{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.assign-field-input-wrap{display:flex;align-items:center;gap:.5rem;height:40px;padding:0 .75rem;border:1px solid var(--border);border-radius:8px;background:var(--card)}.assign-field-input-wrap i{color:var(--text-muted);font-size:.8rem;flex-shrink:0}.assign-field-input-wrap input,.assign-field-input-wrap select{flex:1;border:none;background:transparent;font-size:.9rem;min-width:0;padding:0;margin:0}.assign-field-input-wrap input:focus,.assign-field-input-wrap select:focus{outline:none}.assign-field textarea{width:100%;padding:.65rem .75rem;border:1px solid var(--border);border-radius:8px;font-size:.9rem;font-family:inherit;resize:vertical;min-height:72px}.assign-field textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1a}.assign-modal-footer{display:flex;justify-content:flex-end;gap:.65rem;padding-top:1rem;margin-top:.25rem;border-top:1px solid var(--border)}.assign-modal-footer .btn-primary,.assign-modal-footer .btn-secondary{margin-top:0}@media(max-width:600px){.assign-modal{max-width:none;max-height:95vh}.assign-modal-fields{grid-template-columns:1fr}.assign-modal-footer{flex-direction:column-reverse}.assign-modal-footer button{width:100%;justify-content:center}}.complete-modal{max-width:min(780px,calc(100vw - 2rem));width:100%;padding:0;overflow:hidden;display:flex;flex-direction:column;max-height:min(92vh,820px)}.complete-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.25rem 1.35rem;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#f0fdf4 0%,var(--card) 100%)}.complete-modal-header-main{display:flex;gap:1rem;min-width:0}.complete-modal-icon{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0;box-shadow:0 4px 12px #16a34a40}.complete-modal-titles{min-width:0}.complete-modal-titles h2{margin:0 0 .35rem;font-size:1.15rem}.complete-modal-ref{margin:0;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#15803d}.complete-modal-subject{margin:.2rem 0 0;font-size:.875rem;color:var(--text-muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.complete-modal-close{flex-shrink:0}.complete-modal-form{display:flex;flex-direction:column;min-height:0;overflow-y:auto;padding:1.15rem 1.35rem 1.35rem}.complete-modal-form .alert-error{margin-bottom:1rem}.complete-modal-workflow{display:flex;align-items:center;gap:.35rem;margin:0 0 1rem;padding:0;list-style:none;font-size:.72rem;font-weight:600;color:var(--text-muted);flex-wrap:wrap}.complete-modal-workflow li{display:flex;align-items:center;gap:.35rem}.complete-modal-workflow li:not(:last-child):after{content:"›";margin-left:.35rem;color:#cbd5e1;font-weight:400}.complete-modal-workflow li.active{color:#15803d}.complete-modal-workflow-dot{width:7px;height:7px;border-radius:50%;background:#cbd5e1;flex-shrink:0}.complete-modal-workflow li.active .complete-modal-workflow-dot{background:#16a34a;box-shadow:0 0 0 3px #16a34a33}.complete-modal-section{margin-bottom:1rem}.complete-modal-section h3{margin:0 0 .65rem;font-size:.9rem;font-weight:700;display:flex;align-items:center;gap:.45rem;color:var(--text)}.complete-modal-section h3 i{color:#16a34a;font-size:.85rem}.complete-modal-section-desc{margin:-.35rem 0 .75rem;font-size:.82rem;color:var(--text-muted);line-height:1.45}.complete-modal-description{width:100%;padding:.65rem .75rem;border:1px solid #e2e8f0;border-radius:8px;font-family:inherit;font-size:.875rem;line-height:1.45;resize:vertical;min-height:96px}.complete-modal-description:focus{outline:none;border-color:#86efac;box-shadow:0 0 0 3px #16a34a26}.complete-modal-summary{display:grid;grid-template-columns:1fr 1fr;gap:.65rem 1rem;margin:0;padding:.85rem 1rem;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.complete-modal-summary div{min-width:0}.complete-modal-summary-wide{grid-column:1 / -1}.complete-modal-summary dt{margin:0 0 .15rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.complete-modal-summary dd{margin:0;font-size:.875rem;line-height:1.4;word-break:break-word}.complete-priority{display:inline-flex;align-items:center;padding:.12rem .5rem;border-radius:999px;font-size:.75rem;font-weight:600}.complete-priority.tone-high{background:#fee2e2;color:#b91c1c}.complete-priority.tone-medium{background:#fef3c7;color:#b45309}.complete-priority.tone-low{background:#e0f2fe;color:#0369a1}.complete-modal-notice{display:flex;gap:.65rem;align-items:flex-start;margin-bottom:1rem;padding:.75rem .9rem;border-radius:10px;border:1px solid #fde68a;background:#fffbeb;font-size:.82rem;line-height:1.45;color:#92400e}.complete-modal-notice i{margin-top:.1rem;flex-shrink:0}.complete-modal-notice p{margin:0}.complete-modal-tips{display:flex;gap:.65rem;align-items:flex-start;margin-bottom:.25rem;padding:.75rem .9rem;border-radius:10px;border:1px solid #bbf7d0;background:#f0fdf4;font-size:.82rem;line-height:1.45;color:#166534}.complete-modal-tips i{margin-top:.1rem;flex-shrink:0;color:#16a34a}.complete-modal-tips strong{display:block;margin-bottom:.15rem}.complete-modal-tips p{margin:0}.complete-modal-footer{display:flex;justify-content:flex-end;gap:.65rem;padding-top:1rem;margin-top:.75rem;border-top:1px solid var(--border)}.complete-modal-footer .btn-primary,.complete-modal-footer .btn-secondary{margin-top:0}.complete-modal-submit{background:linear-gradient(135deg,#16a34a,#15803d);border-color:#15803d}.complete-modal-submit:hover:not(:disabled){background:linear-gradient(135deg,#15803d,#166534)}@media(max-width:600px){.complete-modal{max-width:none;max-height:95vh}.complete-modal-summary{grid-template-columns:1fr}.complete-modal-footer{flex-direction:column-reverse}.complete-modal-footer button{width:100%;justify-content:center}}.reopen-modal{max-width:min(720px,calc(100vw - 2rem));width:100%;padding:0;overflow:hidden}.reopen-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.25rem 1.35rem;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fff7ed 0%,var(--card) 100%)}.reopen-modal-header-main{display:flex;gap:1rem;align-items:flex-start}.reopen-modal-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#ffedd5;color:#c2410c;font-size:1.25rem}.reopen-modal-ref{margin:.2rem 0 0;font-size:.8rem;color:var(--text-muted)}.reopen-modal-form{padding:1.15rem 1.35rem 1.35rem}.reopen-modal-intro{margin:0 0 1rem;font-size:.875rem;line-height:1.5;color:var(--text-muted)}.reopen-modal-section{margin-bottom:1rem}.reopen-modal-section h3{margin:0 0 .5rem;font-size:.9rem}.reopen-assignee-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}.reopen-assignee-item{display:flex;align-items:center;gap:.65rem;padding:.55rem .7rem;border:1px solid var(--border);border-radius:8px;cursor:pointer}.reopen-assignee-item.selected{border-color:#fdba74;background:#fff7ed}.reopen-assignee-item span{display:flex;flex-direction:column;font-size:.875rem}.reopen-assignee-item small{color:var(--text-muted);font-size:.75rem}.reopen-modal-field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem;font-size:.875rem}.reopen-modal-field input{width:120px;padding:.5rem .65rem;border:1px solid var(--border);border-radius:8px}.reopen-modal-footer{display:flex;justify-content:flex-end;gap:.65rem;padding-top:.5rem;border-top:1px solid var(--border)}.reopen-modal-submit{background:linear-gradient(135deg,#ea580c,#c2410c);border-color:#c2410c}.reopen-action-btn{border-color:#fdba74;color:#c2410c}.mail-assign-progress-card.rejected{border-color:#fecaca;background:#fffbfb}.mail-assign-status.rejected{background:#fee2e2;color:#b91c1c}.mail-rounds-history{display:flex;flex-direction:column;gap:.85rem}.mail-round-history-card{border:1px solid var(--border);border-radius:10px;padding:.85rem 1rem;background:#f8fafc}.mail-round-history-head{margin-bottom:.65rem;font-size:.85rem}.mail-round-history-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.75rem}.mail-round-history-item{padding-top:.65rem;border-top:1px dashed #e2e8f0}.mail-round-history-item:first-child{padding-top:0;border-top:none}.mail-round-history-meta{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.mail-round-status{font-size:.75rem;font-weight:700;padding:.2rem .5rem;border-radius:999px;background:#e2e8f0}.mail-round-status.status-completed{background:#dcfce7;color:#15803d}.mail-round-status.status-rejected{background:#fee2e2;color:#b91c1c}.mail-round-amendment,.mail-round-completion-note,.mail-round-completed-at{margin:.4rem 0 0;font-size:.82rem;line-height:1.45}.mail-round-amendment{color:#c2410c}.mail-round-completion-note{white-space:pre-wrap}.admin-toolbar{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap;align-items:center;justify-content:space-between}.search-bar{display:flex;gap:.5rem;flex:1;max-width:400px}.search-bar input{flex:1;padding:.6rem .75rem;border:1px solid var(--border);border-radius:var(--radius)}.cell-actions{display:flex;gap:.35rem;white-space:nowrap}.btn-icon{width:32px;height:32px;border:1px solid var(--border);background:var(--card);border-radius:6px;cursor:pointer;color:var(--text-muted)}.btn-icon:hover{background:#f1f5f9;color:var(--text)}.btn-icon-danger:hover{background:#fee2e2;color:var(--danger)}.row-inactive{opacity:.55}.admin-filters{display:flex;gap:1rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:1rem}.admin-filters label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;font-weight:500}.admin-filters select{padding:.5rem .65rem;border:1px solid var(--border);border-radius:var(--radius);min-width:160px}.filter-count{margin-left:auto;color:var(--text-muted);font-size:.875rem}.user-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#e0e7ff,#dbeafe);color:#3730a3;font-weight:700}.user-avatar img{width:100%;height:100%;object-fit:cover}.user-avatar-sm{width:32px;height:32px;font-size:.7rem}.user-avatar-md{width:40px;height:40px;font-size:.8rem}.user-avatar-lg{width:52px;height:52px;font-size:.95rem}.user-avatar-initials{line-height:1;letter-spacing:.02em}.admin-users-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin-bottom:1rem;padding:.85rem 1rem}.admin-users-toolbar .btn-primary,.admin-users-toolbar .btn-secondary{margin-top:0}.admin-users-search{flex:1 1 260px;display:flex;align-items:center;gap:.55rem;height:40px;padding:0 .55rem 0 .85rem;border:1px solid var(--border);border-radius:8px;background:#f8fafc}.admin-users-search>i{color:var(--text-muted);font-size:.85rem;flex-shrink:0}.admin-users-search input{flex:1;border:none;background:transparent;padding:0;min-width:0;height:100%;font-size:.875rem}.admin-users-search input:focus{outline:none}.admin-users-search .btn-secondary{height:30px;padding:0 .75rem;font-size:.8rem;flex-shrink:0}.admin-users-filter-select{height:40px;padding:0 2rem 0 .75rem;border:1px solid var(--border);border-radius:8px;min-width:150px;font-size:.875rem;font-weight:500;color:var(--text);background:var(--card);cursor:pointer}.admin-users-create{height:40px;padding:0 1rem;white-space:nowrap;margin-left:auto}.admin-users-summary{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.85rem;font-size:.875rem;line-height:1.4;color:var(--text-muted)}.admin-users-range{font-size:.875rem}.admin-user-you{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.12rem .4rem;border-radius:999px;background:#e0e7ff;color:#4338ca;margin-left:.35rem;vertical-align:middle}.admin-users-table-wrap{overflow-x:auto}.admin-users-table .col-actions{width:120px;text-align:right}.admin-users-table tbody tr:last-child td{border-bottom:none}.admin-users-table .cell-muted{color:var(--text-muted);font-size:.82rem}.user-table-cell{display:flex;align-items:center;gap:.75rem;min-width:220px}.user-table-info{display:flex;flex-direction:column;gap:.1rem;min-width:0}.user-table-name{font-weight:600;font-size:.9rem;line-height:1.3}.user-table-email{font-size:.8rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-table-sub{display:block;font-size:.75rem;color:var(--text-muted);margin-top:.15rem}.user-table-dept-code{display:block;font-weight:600;color:var(--text);font-size:.85rem}.user-table-stat{display:inline-flex;align-items:center;gap:.35rem;margin-right:.85rem;font-size:.8rem}.user-table-stat i{font-size:.72rem;opacity:.75}.admin-users-role-link{display:block;font-weight:600;color:var(--primary);text-decoration:none;font-size:.875rem}.admin-users-role-link:hover{text-decoration:underline}.admin-users-table .cell-actions{display:flex;align-items:center;justify-content:flex-end;gap:.35rem}.admin-users-table .cell-actions a.btn-icon{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:var(--text-muted)}.admin-users-table .cell-actions a.btn-icon:hover{background:#f1f5f9;color:var(--text)}.admin-users-table-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;border-top:1px solid var(--border);background:#f8fafc;font-size:.85rem;color:var(--text-muted)}.admin-users-pagination{display:flex;align-items:center;gap:.5rem}.admin-users-pagination .btn-sm{width:32px;height:32px;padding:0;justify-content:center}.admin-users-page-info{font-size:.8rem;color:var(--text-muted);min-width:5.5rem;text-align:center}.btn-sm{padding:.4rem .65rem;font-size:.8rem;height:32px;box-sizing:border-box}@media(max-width:900px){.admin-users-create{margin-left:0;width:100%;justify-content:center}.admin-users-filter-select{flex:1 1 140px}.admin-users-table-footer{flex-direction:column;align-items:stretch;text-align:center}.admin-users-pagination{justify-content:center}}.contacts-tabs{display:flex;gap:.35rem;margin-bottom:1rem;padding:.25rem;background:#f1f5f9;border-radius:10px;width:fit-content}.contacts-tab{display:inline-flex;align-items:center;gap:.45rem;padding:.5rem 1rem;border:none;border-radius:8px;background:transparent;color:var(--text-muted);font-size:.875rem;font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease}.contacts-tab:hover{color:var(--text)}.contacts-tab.active{background:var(--card);color:var(--primary);box-shadow:0 1px 3px #0f172a14}.nav-tab-badge{margin-left:.4rem;min-width:1.15rem;height:1.15rem;padding:0 .3rem;border-radius:999px;background:var(--danger);color:#fff;font-size:.68rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.contacts-tab.active .nav-tab-badge{background:var(--primary)}.contacts-toolbar{margin-bottom:.85rem}.contacts-table-wrap{overflow-x:auto}.contacts-table .col-actions{width:88px;text-align:right}.contacts-table tbody tr:last-child td{border-bottom:none}.contacts-table .cell-actions{display:flex;justify-content:flex-end;gap:.15rem}.addressbook-current-logo{display:flex;align-items:center;gap:.65rem;margin-bottom:.5rem}.contacts-person-cell{display:flex;align-items:flex-start;gap:.65rem;min-width:0}.contacts-person-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#e0f2fe;color:#0369a1;flex-shrink:0;font-size:.85rem}.contacts-person-name{display:block;font-weight:600;font-size:.875rem;line-height:1.3}.contacts-person-notes{display:block;font-size:.75rem;color:var(--text-muted);margin-top:.1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.contacts-org-cell{display:flex;align-items:center;gap:.5rem;min-width:0;font-size:.85rem}.contacts-org-cell-main{align-items:flex-start}.contacts-org-name{display:block;font-weight:600;font-size:.875rem;line-height:1.3}.contacts-org-acronym{display:block;font-size:.75rem;color:var(--text-muted);margin-top:.05rem}.contacts-link{display:block;color:var(--primary);text-decoration:none;font-size:.82rem;word-break:break-all}.contacts-link:hover{text-decoration:underline}.contacts-phone,.contacts-address{display:block;font-size:.82rem;margin-top:.15rem}.contacts-address{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.contacts-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.75rem;height:1.75rem;padding:0 .45rem;border-radius:999px;background:#f1f5f9;font-size:.8rem;font-weight:700;color:var(--text-muted)}.link-btn{background:none;border:none;padding:0;cursor:pointer;text-align:left;color:var(--primary);font:inherit}.link-btn small{color:var(--text-muted)}.access-preview{background:#f8fafc;border:1px solid var(--border);border-radius:var(--radius);padding:.85rem 1rem;margin:.75rem 0}.access-preview h4{font-size:.85rem;margin-bottom:.5rem;color:var(--text-muted)}.access-preview-list{list-style:none;display:flex;flex-direction:column;gap:.35rem;font-size:.85rem}.access-preview-list.horizontal{flex-direction:row;flex-wrap:wrap;gap:.5rem 1rem}.access-preview-list li i{color:var(--success);margin-right:.35rem;font-size:.75rem}.access-expand-row td{background:#f8fafc;padding:0!important}.access-expand-row .access-preview.inline{margin:0;border:none;border-radius:0}.checkbox-label{flex-direction:row!important;align-items:center;gap:.5rem!important}.checkbox-label input{width:auto}.btn-link{background:none;border:none;color:var(--primary);cursor:pointer;font-size:.8rem;text-decoration:underline}.perm-editor{--perm-accent: var(--primary)}.perm-editor__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.25rem;flex-wrap:wrap;margin-bottom:1rem}.perm-editor__title{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;font-size:1.05rem;font-weight:600;margin-bottom:.35rem}.perm-editor__title i{color:var(--primary);font-size:.95rem}.perm-editor__subtitle{color:var(--text-muted);font-size:.875rem;line-height:1.45;max-width:42rem}.perm-editor__toolbar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.perm-editor__counter{display:flex;flex-direction:column;align-items:flex-end;padding:.55rem .85rem;background:linear-gradient(135deg,#eff6ff,#f8fafc);border:1px solid #bfdbfe;border-radius:12px;min-width:108px}.perm-editor__counter-value{font-size:1.35rem;font-weight:700;line-height:1;color:var(--primary)}.perm-editor__counter-sep{color:#93c5fd;font-weight:500;margin:0 .1rem}.perm-editor__counter-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-top:.2rem}.perm-editor__reset{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .9rem;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--text);font-size:.8rem;font-weight:500;cursor:pointer;transition:border-color .15s,color .15s,box-shadow .15s}.perm-editor__reset:hover{border-color:var(--primary);color:var(--primary);box-shadow:0 2px 8px #2563eb1f}.perm-editor__progress{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin-bottom:1.25rem}.perm-editor__progress-bar{height:100%;background:linear-gradient(90deg,var(--primary),#60a5fa);border-radius:inherit;transition:width .25s ease}.perm-editor__groups{display:flex;flex-direction:column;gap:1rem}.perm-group{border:1px solid var(--border);border-radius:14px;background:linear-gradient(180deg,#fff,#f8fafc);overflow:hidden;box-shadow:0 1px 2px #0f172a0a}.perm-group__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid var(--border);background:#ffffffd9}.perm-group__identity{display:flex;align-items:flex-start;gap:.85rem}.perm-group__icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--perm-accent) 12%,white);color:var(--perm-accent);font-size:1rem;flex-shrink:0}.perm-group__title{font-size:.95rem;font-weight:600;margin-bottom:.15rem}.perm-group__desc{font-size:.8rem;color:var(--text-muted);line-height:1.4}.perm-group__actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.perm-group__badge{font-size:.75rem;font-weight:600;padding:.25rem .55rem;border-radius:999px;background:#f1f5f9;color:var(--text-muted)}.perm-group__bulk{border:none;background:transparent;color:var(--perm-accent);font-size:.75rem;font-weight:600;cursor:pointer;padding:.25rem .35rem;border-radius:6px}.perm-group__bulk:hover{background:color-mix(in srgb,var(--perm-accent) 10%,white)}.perm-group__grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.65rem;padding:1rem}.perm-tile{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.8rem .95rem;border:1.5px solid var(--border);border-radius:12px;background:var(--card);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease,background .15s ease}.perm-tile:hover:not(.is-locked){border-color:#cbd5e1;box-shadow:0 4px 14px #0f172a0f;transform:translateY(-1px)}.perm-tile.is-active{border-color:color-mix(in srgb,var(--perm-accent) 45%,white);background:linear-gradient(135deg,color-mix(in srgb,var(--perm-accent) 8%,white),#fff);box-shadow:0 0 0 1px color-mix(in srgb,var(--perm-accent) 12%,white)}.perm-tile.is-locked{opacity:.62;cursor:not-allowed;background:#f8fafc}.perm-tile__input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.perm-tile__body{display:flex;flex-direction:column;gap:.2rem;min-width:0}.perm-tile__label{font-size:.875rem;font-weight:500;line-height:1.35}.perm-tile__hint{display:inline-flex;align-items:center;gap:.3rem;font-size:.7rem;color:var(--text-muted)}.perm-switch{position:relative;width:44px;height:24px;border-radius:999px;background:#cbd5e1;flex-shrink:0;transition:background .2s ease}.perm-switch__thumb{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a2e;transition:transform .2s ease}.perm-tile.is-active .perm-switch{background:var(--perm-accent)}.perm-tile.is-active .perm-switch__thumb{transform:translate(20px)}.perm-editor__footer{display:flex;align-items:flex-start;gap:.45rem;margin-top:1rem;padding:.75rem .9rem;border-radius:10px;background:#f8fafc;border:1px dashed #cbd5e1;color:var(--text-muted);font-size:.8rem;line-height:1.45}.perm-editor__footer i{margin-top:.1rem;color:var(--info)}.badge-info{background:#e0f2fe;color:#0369a1;font-size:.7rem;padding:.15rem .45rem;border-radius:999px;font-weight:600}a.link-btn{display:inline;text-decoration:none}a.link-btn:hover{text-decoration:underline}a.btn-icon{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.access-page-top{padding:1rem 1.5rem 0}.back-link{display:inline-flex;align-items:center;gap:.4rem;color:var(--text-muted);font-size:.875rem;text-decoration:none}.back-link:hover{color:var(--primary)}.access-layout{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:1rem;margin-bottom:1rem}.access-card h3{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;font-size:1rem}.access-card-wide{grid-column:1 / -1}.access-card label{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.85rem;font-size:.875rem;font-weight:500}.access-card select,.access-card input[type=password]{padding:.55rem .65rem;border:1px solid var(--border);border-radius:var(--radius);font:inherit}.access-profile-dl{margin:0}.access-profile-dl dd{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.access-form-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:1rem 1.25rem}.access-form-footer .form-actions{margin:0}.access-card-wide.perm-editor-card{padding:1.25rem}.perf-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;margin-bottom:1.25rem}.perf-stat-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;display:flex;flex-direction:column;gap:.35rem}.perf-stat-card.highlight{border-color:#93c5fd;background:#eff6ff}.perf-stat-value{font-size:1.75rem;font-weight:700;color:var(--primary)}.perf-stat-label{font-size:.875rem;color:var(--text-muted)}.perf-grid{display:grid;grid-template-columns:2fr 1fr;gap:1rem;margin-bottom:1rem}.perf-chart-card,.perf-detail-card,.perf-table-card,.perf-self-card{padding:1.25rem}.my-perf{--my-accent: #2563eb;--my-accent-soft: #eff6ff;display:flex;flex-direction:column;gap:1rem}.my-perf.tier-high{--my-accent: #16a34a;--my-accent-soft: #ecfdf5}.my-perf.tier-mid{--my-accent: #2563eb;--my-accent-soft: #eff6ff}.my-perf.tier-low{--my-accent: #d97706;--my-accent-soft: #fff7ed}.my-perf-hero{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap;padding:1.5rem 1.75rem;border-radius:16px;background:linear-gradient(135deg,var(--my-accent-soft),#ffffff 55%);border:1px solid color-mix(in srgb,var(--my-accent) 18%,white);box-shadow:0 8px 24px color-mix(in srgb,var(--my-accent) 8%,transparent)}.my-perf-greeting{font-size:.875rem;color:var(--text-muted);margin-bottom:.35rem;text-transform:uppercase;letter-spacing:.04em;font-weight:600}.my-perf-headline{font-size:1.5rem;font-weight:700;margin-bottom:.5rem;color:var(--text)}.my-perf-message{font-size:.95rem;line-height:1.55;color:var(--text-muted);max-width:36rem;margin-bottom:.85rem}.my-perf-meta{display:flex;flex-wrap:wrap;gap:.65rem 1rem;font-size:.8rem;color:var(--text-muted)}.my-perf-meta span{display:inline-flex;align-items:center;gap:.35rem}.my-perf-score-wrap{display:flex;flex-direction:column;align-items:center;gap:.45rem;flex-shrink:0}.my-perf-ring{--score: 0;width:148px;height:148px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--my-accent) calc(var(--score) * 1%),#e2e8f0 0);box-shadow:0 4px 16px color-mix(in srgb,var(--my-accent) 20%,transparent)}.my-perf-ring-inner{width:118px;height:118px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem}.my-perf-ring-icon{color:var(--my-accent);font-size:1rem;margin-bottom:.15rem}.my-perf-ring-value{font-size:2rem;font-weight:800;line-height:1;color:var(--my-accent)}.my-perf-ring-max{font-size:.75rem;color:var(--text-muted);font-weight:500}.my-perf-ring-caption{font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.my-perf-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.my-perf-kpi{display:flex;align-items:center;gap:.85rem;padding:1rem 1.1rem;background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:0 1px 3px #0f172a0a}.my-perf-kpi-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0}.my-perf-kpi-icon.done{background:#dcfce7;color:#16a34a}.my-perf-kpi-icon.init{background:#dbeafe;color:#2563eb}.my-perf-kpi-icon.time{background:#fef3c7;color:#d97706}.my-perf-kpi-value{display:block;font-size:1.5rem;font-weight:700;line-height:1.1}.my-perf-kpi-label{font-size:.8rem;color:var(--text-muted)}.my-perf-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.my-perf-goals,.my-perf-breakdown{padding:1.25rem}.my-perf-goals h3,.my-perf-breakdown h3{display:flex;align-items:center;gap:.5rem;font-size:1rem;margin-bottom:1rem}.my-perf-goal-list,.my-perf-breakdown-list{list-style:none;display:flex;flex-direction:column;gap:1rem}.my-perf-goal-head,.my-perf-breakdown-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-size:.875rem;margin-bottom:.4rem}.my-perf-weight{color:var(--text-muted);font-weight:500}.my-perf-goal-bar{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}.my-perf-goal-fill{height:100%;border-radius:inherit;transition:width .4s ease}.my-perf-goal-fill.done{background:linear-gradient(90deg,#22c55e,#16a34a)}.my-perf-goal-fill.init{background:linear-gradient(90deg,#60a5fa,#2563eb)}.my-perf-goal-fill.mix{background:linear-gradient(90deg,var(--my-accent),color-mix(in srgb,var(--my-accent) 70%,white))}.my-perf-goal-tip{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem .9rem;border-radius:10px;background:#fffbeb;border:1px dashed #fcd34d;font-size:.85rem;color:#92400e}.my-perf-goal-tip i{margin-top:.1rem}.my-perf-breakdown-hint{font-size:.75rem;color:var(--text-muted);margin-top:.35rem}.my-perf-footnote{margin-top:1rem;margin-bottom:0}.my-perf-empty-notice{display:flex;gap:.75rem;align-items:flex-start;padding:1rem 1.1rem;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;font-size:.875rem;color:var(--text-muted)}.my-perf-empty-notice i{color:var(--info);margin-top:.15rem;flex-shrink:0}.my-perf-empty-notice strong{display:block;color:var(--text);margin-bottom:.35rem}.my-perf-empty-notice p{line-height:1.5;margin:0}.perf-section-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.perf-section-head h3,.perf-table-card h3,.perf-detail-card h3{font-size:1rem;margin:0}.perf-chart-wrap{height:320px;position:relative}.perf-detail-dl dd{font-weight:600}.perf-score-badge{display:inline-block;padding:.2rem .55rem;border-radius:999px;font-size:.8rem;font-weight:600}.perf-score-badge.score-high{background:#dcfce7;color:#166534}.perf-score-badge.score-mid{background:#dbeafe;color:#1d4ed8}.perf-score-badge.score-low{background:#ffedd5;color:#c2410c}.data-table tbody tr.row-selected{background:#eff6ff}.data-table tbody tr{cursor:pointer}.mail-comments-header{flex-shrink:0;padding:1rem 1.15rem .75rem;border-bottom:1px solid var(--border);background:var(--card);z-index:2}.mail-comments-section h3{display:flex;align-items:center;gap:.5rem;margin:0 0 .3rem;font-size:.95rem}.mail-comments-hint{margin:0;font-size:.75rem}.mail-comments-feed{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:1rem 1.15rem;scroll-behavior:smooth}.mail-comments-composer{flex-shrink:0;padding:.75rem 1.15rem 1rem;border-top:1px solid var(--border);background:linear-gradient(180deg,#f8fafc 0%,var(--card) 100%);box-shadow:0 -4px 16px #0f172a0a;z-index:2}.mail-comment-form{margin-bottom:0;padding-bottom:0;border-bottom:none}.mail-comment-form-composer textarea{min-height:56px;max-height:120px}.mail-comment-form-composer .mail-comment-mention-list{top:auto;bottom:calc(100% + 4px)}.mail-comment-form-composer .mail-comment-private{margin-top:.45rem;padding:.4rem .55rem;font-size:.75rem}.mail-comment-form-composer .mail-comment-form-actions{margin-top:.5rem}.mail-comment .mail-comment-form:not(.mail-comment-form-composer){margin-top:.65rem;padding-top:.75rem;border-top:1px dashed var(--border)}.mail-comment-form textarea{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:var(--radius);font:inherit;resize:vertical;min-height:72px}.mail-comment-form textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1f}.mail-comment-compose{position:relative}.mail-comment-mention-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;list-style:none;margin:0;padding:.35rem;border:1px solid var(--border);border-radius:10px;background:var(--card);box-shadow:0 8px 24px #0f172a1f;max-height:220px;overflow-y:auto}.mail-comment-mention-list button{display:flex;align-items:center;gap:.55rem;width:100%;padding:.45rem .55rem;border:none;border-radius:8px;background:transparent;font:inherit;text-align:left;cursor:pointer;color:var(--text)}.mail-comment-mention-list button:hover,.mail-comment-mention-list button.active{background:#eff6ff}.mail-comment-mention-list button span{display:flex;flex-direction:column;gap:.1rem;min-width:0}.mail-comment-mention-list button small{font-size:.72rem;color:var(--text-muted);font-weight:500}.mail-comment-private{display:flex;align-items:flex-start;gap:.5rem;margin-top:.55rem;padding:.5rem .65rem;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;font-size:.8rem;line-height:1.4;cursor:pointer}.mail-comment-private input{margin-top:.15rem;accent-color:var(--primary);flex-shrink:0}.mail-comment-private span{display:inline-flex;align-items:flex-start;gap:.4rem}.mail-comment-mention-count{font-size:.75rem;color:#7c3aed;font-weight:600}.mail-comment-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin-top:.65rem}.mail-comment-form-buttons{display:flex;gap:.5rem;margin-left:auto}.mail-comment-file-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .7rem;border:1px dashed var(--border);border-radius:8px;font-size:.8rem;color:var(--text-muted);cursor:pointer}.mail-comment-file-btn input{display:none}.mail-comment-file-count{font-size:.75rem;color:var(--primary);font-weight:600}.mail-comment-error{color:var(--danger);font-size:.8rem;margin-top:.5rem}.mail-comments-loading,.mail-comments-empty{color:var(--text-muted);font-size:.875rem;padding:.5rem 0}.mail-comments-list{display:flex;flex-direction:column;gap:1rem}.mail-comment{padding:1rem;border:1px solid var(--border);border-radius:12px;background:#fafbfc}.mail-comment-own{background:#eff6ff;border-color:#bfdbfe}.mail-comment-private{background:#fffbeb;border-color:#fde68a}.mail-comment-head-row{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.mail-comment-private-badge{display:inline-flex;align-items:center;gap:.25rem;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:.12rem .45rem;border-radius:999px;background:#fef3c7;color:#b45309}.mail-comment-mention{display:inline;font-weight:700;padding:.1rem .35rem;border-radius:6px;text-decoration:none;cursor:pointer;transition:filter .15s ease,box-shadow .15s ease;border:1px solid transparent;box-decoration-break:clone;-webkit-box-decoration-break:clone}.mail-comment-mention-compose{cursor:text;font-weight:inherit;padding:0;border:none;border-radius:0;box-shadow:none}.mail-comment-mention:hover{filter:brightness(.95);text-decoration:none;box-shadow:0 1px 3px #0f172a14}.mention-tone-0{color:#1a56db;background:#e8f0fe;border-color:#93c5fd}.mention-tone-1{color:#7c3aed;background:#f3e8ff;border-color:#c4b5fd}.mention-tone-2{color:#137333;background:#e6f4ea;border-color:#86efac}.mention-tone-3{color:#b06000;background:#fef7e0;border-color:#fcd34d}.mention-tone-4{color:#c5221f;background:#fce8e6;border-color:#fca5a5}.mention-tone-5{color:#00796b;background:#e0f7fa;border-color:#5eead4}.comment-compose-mirror-wrap{position:relative;border:1px solid var(--border);border-radius:10px;background:var(--card);transition:border-color .15s,box-shadow .15s}.comment-compose-mirror-wrap:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1f}.comment-compose-mirror,.comment-compose-input{display:block;width:100%;min-height:4.5rem;max-height:9rem;padding:.75rem .85rem;margin:0;border:none;font:inherit;font-size:.9rem;font-weight:400;line-height:1.55;letter-spacing:normal;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;resize:none;box-sizing:border-box;-moz-tab-size:2;tab-size:2}.comment-compose-mirror{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;color:var(--text)}.comment-compose-input{position:relative;z-index:1;background:transparent;color:transparent;caret-color:var(--text);overflow-y:auto;resize:vertical}.comment-compose-input::placeholder{color:var(--text-muted);opacity:1}.comment-compose-input:focus{outline:none}.mail-comment-reply{background:#fff;margin-top:.65rem}.mail-comment-head{display:flex;gap:.65rem;margin-bottom:.6rem}.mail-comment-avatar{font-size:1.75rem;color:var(--text-muted);line-height:1}.mail-comment-head strong{display:block;font-size:.9rem}.mail-comment-role{display:inline-block;margin-left:.4rem;font-size:.7rem;font-weight:600;color:var(--text-muted);background:#f1f5f9;padding:.1rem .4rem;border-radius:999px}.mail-comment-head time{display:block;font-size:.75rem;color:var(--text-muted);margin-top:.15rem}.mail-comment-body{font-size:.9rem;line-height:1.55;white-space:pre-wrap;margin-bottom:.5rem}.mail-comment-attachments{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.mail-comment-attachments a{display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;padding:.35rem .6rem;background:#fff;border:1px solid var(--border);border-radius:8px;color:var(--primary)}.comment-attachments{list-style:none;margin:.65rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.5rem}.comment-attach-card{display:flex;align-items:center;gap:.65rem;width:100%;min-width:0;padding:.55rem .65rem;border:1px solid var(--border);border-radius:10px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .12s}.comment-attach-card:hover{border-color:color-mix(in srgb,var(--primary) 40%,var(--border));box-shadow:0 2px 8px #0f172a14;transform:translateY(-1px)}.mail-comment-own .comment-attach-card{background:#f8fbff}.comment-attach-card-preview{flex-shrink:0;width:2.75rem;height:2.75rem;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:1.15rem}.comment-attach-card-preview img{width:100%;height:100%;object-fit:cover;display:block}.comment-attach-card-pdf .comment-attach-card-preview,.file-type-icon.file-kind-pdf,.attachment-preview-file-icon.kind-pdf{background:#fce8e6;color:#c5221f}.comment-attach-card-word .comment-attach-card-preview,.comment-attach-card-doc .comment-attach-card-preview,.file-type-icon.file-kind-word,.attachment-preview-file-icon.kind-word{background:#e8f0fe;color:#1a56db}.comment-attach-card-image .comment-attach-card-preview,.file-type-icon.file-kind-image,.attachment-preview-file-icon.kind-image{background:#e6f4ea;color:#137333}.comment-attach-card-image .comment-attach-card-preview{padding:0}.comment-attach-card-excel .comment-attach-card-preview,.file-type-icon.file-kind-excel,.attachment-preview-file-icon.kind-excel{background:#e6f4ea;color:#217346}.comment-attach-card-powerpoint .comment-attach-card-preview,.file-type-icon.file-kind-powerpoint,.attachment-preview-file-icon.kind-powerpoint{background:#fce8e6;color:#d24726}.comment-attach-card-archive .comment-attach-card-preview,.file-type-icon.file-kind-archive,.attachment-preview-file-icon.kind-archive{background:#fef7e0;color:#e37400}.comment-attach-card-video .comment-attach-card-preview,.file-type-icon.file-kind-video,.attachment-preview-file-icon.kind-video{background:#f3e8ff;color:#7c3aed}.comment-attach-card-audio .comment-attach-card-preview,.file-type-icon.file-kind-audio,.attachment-preview-file-icon.kind-audio{background:#fce7f3;color:#be185d}.comment-attach-card-database .comment-attach-card-preview,.file-type-icon.file-kind-database,.attachment-preview-file-icon.kind-database{background:#e0f2fe;color:#0891b2}.comment-attach-card-code .comment-attach-card-preview,.file-type-icon.file-kind-code,.attachment-preview-file-icon.kind-code{background:#f1f5f9;color:#475569}.comment-attach-card-text .comment-attach-card-preview,.file-type-icon.file-kind-text,.attachment-preview-file-icon.kind-text{background:#f8fafc;color:#64748b}.comment-attach-card-file .comment-attach-card-preview,.file-type-icon.file-kind-file,.attachment-preview-file-icon.kind-file,.attachment-preview-file-icon.kind-unsupported{background:#f1f3f5;color:#5f6368}.file-type-icon{flex-shrink:0;width:2rem;height:2rem;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;overflow:hidden}.file-type-icon img{width:100%;height:100%;object-fit:cover;display:block}.file-type-icon--sm{width:1.35rem;height:1.35rem;font-size:.72rem;border-radius:5px}.comment-attach-card-pdf .comment-attach-card-type{background:#fce8e6;color:#c5221f}.comment-attach-card-word .comment-attach-card-type,.comment-attach-card-doc .comment-attach-card-type{background:#e8f0fe;color:#1a56db}.comment-attach-card-image .comment-attach-card-type{background:#e6f4ea;color:#137333}.comment-attach-card-excel .comment-attach-card-type{background:#e6f4ea;color:#217346}.comment-attach-card-powerpoint .comment-attach-card-type{background:#fce8e6;color:#d24726}.comment-attach-card-archive .comment-attach-card-type{background:#fef7e0;color:#e37400}.comment-attach-card-video .comment-attach-card-type{background:#f3e8ff;color:#7c3aed}.comment-attach-card-audio .comment-attach-card-type{background:#fce7f3;color:#be185d}.comment-attach-card-database .comment-attach-card-type{background:#e0f2fe;color:#0891b2}.comment-attach-card-code .comment-attach-card-type{background:#f1f5f9;color:#475569}.comment-attach-card-text .comment-attach-card-type{background:#f8fafc;color:#64748b}.comment-attach-card-file .comment-attach-card-type{background:#f1f3f5;color:#5f6368}.comment-attach-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.2rem}.comment-attach-card-name{font-size:.8rem;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}.comment-attach-card-meta{display:flex;align-items:center;gap:.35rem;font-size:.7rem;color:var(--text-muted);line-height:1.2}.comment-attach-card-type{display:inline-flex;padding:.1rem .35rem;border-radius:4px;background:#f1f3f5;font-weight:700;font-size:.62rem;letter-spacing:.03em;color:#5f6368}.comment-attach-card-sep{width:3px;height:3px;border-radius:50%;background:#cbd5e1;flex-shrink:0}.comment-attach-card-size{font-weight:500;white-space:nowrap}.comment-attach-card-action{flex-shrink:0;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--text-muted);font-size:.75rem;opacity:0;transition:opacity .15s,background .15s,color .15s}.comment-attach-card:hover .comment-attach-card-action{opacity:1;background:#e8f0fe;color:var(--primary)}.mail-comment-reply-btn{background:none;border:none;color:var(--primary);font-size:.8rem;font-weight:600;cursor:pointer;padding:.25rem 0}.mail-comment-reply-btn:hover{text-decoration:underline}.mail-comment-replies{margin-top:.75rem;padding-left:.75rem;border-left:2px solid #e2e8f0}.mail-comment-form .mail-comment-form{margin-top:.75rem;margin-bottom:0;padding-bottom:0;border-bottom:none}.app-mobile-bar,.sidebar-backdrop{display:none}@media(max-width:768px){.app-mobile-bar{display:flex;align-items:center;gap:.75rem;position:fixed;top:0;left:0;right:0;z-index:180;height:52px;padding:0 .75rem;background:#0f172a;color:#e2e8f0;border-bottom:1px solid rgba(255,255,255,.08);box-sizing:border-box}.sidebar-toggle{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border:none;border-radius:8px;background:#ffffff14;color:#e2e8f0;font-size:1.1rem;cursor:pointer;flex-shrink:0}.sidebar-toggle:hover{background:#ffffff24}.app-mobile-bar-brand{display:flex;align-items:center;gap:.6rem;font-weight:700;font-size:1rem;min-width:0}.app-mobile-bar-logo{width:28px;height:28px;object-fit:contain;border-radius:6px;background:#fff;padding:2px;flex-shrink:0}.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:190;border:none;padding:0;margin:0;background:#0f172a73;cursor:pointer;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}.app-shell.sidebar-open .sidebar-backdrop{opacity:1;visibility:visible;pointer-events:auto}.sidebar{width:min(280px,86vw);transform:translate(-100%);transition:transform .25s ease;box-shadow:4px 0 24px #0003}.app-shell.sidebar-open .sidebar{transform:translate(0)}.sidebar-close{display:flex}.sidebar-nav{flex:1;min-height:0;overflow-y:auto}.app-main{width:100%;margin-left:0;padding-top:52px;min-height:100dvh;box-sizing:border-box;overflow-x:hidden}.page-content{padding:1rem 1rem 1.25rem}.data-table:not(.mails-table) .cell-subject{min-width:120px}.form-row,.perf-grid,.my-perf-kpis,.my-perf-panels{grid-template-columns:1fr}.my-perf-hero{flex-direction:column-reverse;align-items:stretch}.my-perf-score-wrap{align-self:center}.access-layout{grid-template-columns:1fr}.access-form-footer{flex-direction:column;align-items:stretch}.perm-group__header{flex-direction:column}.perm-group__actions{width:100%;justify-content:space-between}.perm-group__grid{grid-template-columns:1fr}.perm-editor__toolbar{width:100%;justify-content:space-between}}.org-logo{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#f1f5f9;color:#64748b;overflow:hidden;flex-shrink:0}.org-logo img{width:100%;height:100%;object-fit:cover}.sender-display{display:flex;align-items:center;gap:.65rem;min-width:0}.sender-display.layout-stacked{flex-direction:row;align-items:flex-start}.sender-display.layout-compact{gap:.45rem}.sender-display-body{display:flex;flex-direction:column;gap:.1rem;min-width:0}.sender-display-name{font-size:.9rem;line-height:1.3}.sender-display-org{font-size:.8rem;color:var(--text-muted)}.sender-display-org a{color:var(--primary);text-decoration:none}.sender-display-org a:hover{text-decoration:underline}.sender-display-meta{font-size:.75rem;color:var(--text-muted)}.mail-detail-hero-meta .sender-display{margin-top:.35rem}.sender-display.layout-table{display:flex;align-items:center;gap:.5rem;min-width:0}.sender-display.layout-table .sender-display-body{min-width:0;flex:1}.sender-display.layout-table .sender-display-name{display:block;font-size:.82rem;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sender-display.layout-table .sender-display-org{display:block;font-size:.72rem;color:var(--text-muted);line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-sender .sender-display-name{font-weight:600}.sender-detail-card{border:1px solid #e2e8f0;border-radius:12px;background:linear-gradient(180deg,#f8fafc,#fff);overflow:hidden}.sender-detail-head{display:flex;align-items:flex-start;gap:1rem;padding:1rem 1.1rem}.sender-detail-avatar{width:56px;height:56px;border-radius:12px;background:#e0e7ff;color:#4338ca;display:flex;align-items:center;justify-content:center;font-size:1.35rem;flex-shrink:0}.sender-detail-identity{min-width:0;flex:1}.sender-detail-name{margin:0 0 .25rem;font-size:1.05rem;font-weight:700;line-height:1.3;color:var(--text)}.sender-detail-org{margin:0 0 .35rem;font-size:.875rem;color:var(--text-muted);line-height:1.4}.sender-detail-org a{color:var(--primary);text-decoration:none;display:inline-flex;align-items:center;gap:.35rem}.sender-detail-org a:hover{text-decoration:underline}.sender-detail-org a i{font-size:.7rem;opacity:.75}.sender-detail-acronym{display:inline-block;margin-bottom:.35rem;padding:.15rem .5rem;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:.7rem;font-weight:700;letter-spacing:.03em}.sender-detail-desc{margin:.35rem 0 0;font-size:.8rem;line-height:1.45;color:var(--text-muted)}.sender-detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1.25rem;margin:0;padding:.85rem 1.1rem 1rem;border-top:1px dashed #e2e8f0;background:#fff}.sender-detail-meta div{min-width:0}.sender-detail-meta-wide{grid-column:1 / -1}.sender-detail-meta dt{display:flex;align-items:center;gap:.4rem;margin:0 0 .15rem;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.sender-detail-meta dt i{width:.85rem;text-align:center;color:#64748b}.sender-detail-meta dd{margin:0;font-size:.875rem;line-height:1.4;word-break:break-word}.sender-detail-meta dd a{color:var(--primary);text-decoration:none}.sender-detail-meta dd a:hover{text-decoration:underline}.org-logo-lg{border-radius:12px}@media(max-width:640px){.sender-detail-meta{grid-template-columns:1fr}.sender-detail-head{flex-direction:column;align-items:center;text-align:center}.sender-detail-identity{width:100%}}.mail-create-sender-hint{margin:-.25rem 0 .85rem}.sender-picker-search{display:flex;align-items:center;gap:.55rem;padding:.6rem .75rem;border:1px solid var(--border);border-radius:10px;background:#fff}.sender-picker-search input{flex:1;border:none;outline:none;font-size:.9rem;background:transparent}.sender-picker-spin{color:var(--text-muted);font-size:.85rem}.sender-picker-results{margin-top:.45rem}.sender-picker-selected{display:flex;flex-direction:column;gap:.75rem;padding:1rem;border:1px solid #86efac;background:#f0fdf4}.sender-picker-change{align-self:flex-start;border:none;background:none;color:var(--primary);font-size:.82rem;font-weight:600;cursor:pointer}.addressbook-suggest-list{list-style:none;margin:.35rem 0 0;padding:0;border:1px solid var(--border);border-radius:10px;background:#fff;max-height:220px;overflow-y:auto;box-shadow:0 8px 24px #0f172a14}.addressbook-suggest-list li button{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;width:100%;padding:.65rem .75rem;border:none;background:none;text-align:left;cursor:pointer}.addressbook-suggest-list li button:hover{background:#f8fafc}.addressbook-suggest-list li+li button{border-top:1px solid #f1f5f9}.sender-picker-result-name{font-weight:600;font-size:.875rem}.sender-picker-result-org{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--text-muted)}.sender-picker-result-meta{font-size:.75rem;color:var(--text-muted)}.addressbook-add-link{display:inline-flex;align-items:center;gap:.4rem;margin-top:.65rem;padding:0;border:none;background:none;color:var(--primary);font-size:.85rem;font-weight:600;cursor:pointer}.addressbook-modal{max-width:min(640px,calc(100vw - 2rem));width:100%;padding:0}.modal-overlay-nested{z-index:1100}.addressbook-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.25rem;border-bottom:1px solid var(--border)}.addressbook-modal-header h2{margin:0;font-size:1.05rem}.addressbook-modal-form{padding:1.1rem 1.25rem 1.25rem}.addressbook-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.addressbook-field{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem}.addressbook-field-wide{grid-column:1 / -1}.addressbook-field input,.addressbook-field textarea{padding:.55rem .65rem;border:1px solid var(--border);border-radius:8px;font:inherit}.addressbook-selected-org{display:flex;align-items:center;gap:.55rem;padding:.55rem .65rem;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff}.addressbook-modal-footer{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}.job-title-combobox{position:relative}.job-title-combobox-input-wrap{display:flex;align-items:stretch}.job-title-combobox-input-wrap input{flex:1;min-width:0;border-top-right-radius:0;border-bottom-right-radius:0}.job-title-combobox-toggle{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;border:1px solid var(--border);border-left:none;border-radius:0 8px 8px 0;background:#f8fafc;color:var(--text-muted);cursor:pointer}.job-title-combobox-toggle:hover{background:#f1f5f9;color:var(--text)}.job-title-combobox-list{position:absolute;z-index:20;left:0;right:0;top:calc(100% + .25rem);max-height:220px;overflow-y:auto;background:var(--card);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #0f172a1f}.job-title-combobox-hint{padding:.65rem .85rem;font-size:.8rem;color:var(--text-muted)}.job-title-combobox-custom{color:var(--primary);font-weight:600}.job-title-combobox-custom i{margin-right:.35rem}@media(max-width:640px){.addressbook-form-grid{grid-template-columns:1fr}}.dossiers-list-actions{margin-bottom:1rem}.dossiers-table .cell-pilot{min-width:11rem}.dossiers-table .dossier-table-pilot{text-decoration:none;color:inherit}.dossiers-table .dossier-table-pilot .mails-cell-sub{font-size:.72rem;color:var(--text-muted);line-height:1.25}.dossiers-table .cell-date .relative-time-compact{font-size:.72rem;font-weight:600;color:#2563eb}.dossier-progress-bar{height:6px;background:#e2e8f0;border-radius:999px;overflow:hidden;flex:1;min-width:80px}.dossier-progress-bar span{display:block;height:100%;background:linear-gradient(90deg,#0ea5e9,#2563eb);border-radius:999px}.dossier-progress-bar-lg{height:10px}.dossier-progress-cell{display:flex;align-items:center;gap:.5rem;min-width:120px}.dossier-create-back{margin-bottom:1rem}.dossier-create-form{padding:1.25rem}.dossier-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.dossier-field{display:flex;flex-direction:column;gap:.35rem}.dossier-field-wide{grid-column:1 / -1}.dossier-field input,.dossier-field textarea{padding:.55rem .75rem;border:1px solid var(--border);border-radius:8px}.dossier-form-section{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--border)}.dossier-form-section h3{font-size:1rem;margin-bottom:.85rem}.dossier-form-section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.85rem}.dossier-form-section-head h3{margin-bottom:0}.dossier-participants-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.user-multi-picker{display:flex;flex-direction:column;gap:.45rem}.user-multi-picker-label{font-size:.8rem;font-weight:600;color:var(--text-muted)}.user-multi-picker-chips{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem}.user-multi-picker-chips li{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .45rem .2rem .2rem;border-radius:999px;background:#f1f5f9;font-size:.8rem}.user-multi-picker-dept{color:var(--text-muted)}.user-multi-picker-search{position:relative}.user-multi-picker-search input{width:100%;padding:.5rem .75rem;border:1px solid var(--border);border-radius:8px}.user-multi-picker-suggest{position:absolute;z-index:10;left:0;right:0;top:calc(100% + .25rem);max-height:200px;overflow-y:auto}.dossier-stage-draft{display:grid;grid-template-columns:1fr 1fr auto;gap:.5rem;margin-bottom:.5rem}.dossier-stage-draft input{padding:.5rem .75rem;border:1px solid var(--border);border-radius:8px}.dossier-form-hint{margin:0 0 1rem;font-size:.82rem;color:var(--text-muted);line-height:1.45}.dossier-stage-block{margin-bottom:1.25rem;padding:1rem;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.dossier-stage-tasks{margin-top:.75rem;padding-top:.75rem;border-top:1px dashed #cbd5e1}.dossier-stage-tasks-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.65rem;font-size:.82rem;font-weight:600;color:var(--text-muted)}.dossier-stage-tasks-empty{margin:0;font-size:.8rem}.dossier-task-draft-list{list-style:none;display:flex;flex-direction:column;gap:.75rem}.dossier-task-draft{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:.75rem;padding:.85rem 2.25rem .85rem .85rem;border-radius:10px;border:1px solid #e2e8f0;background:#fff}.dossier-task-draft-main{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.dossier-task-draft-main input,.dossier-task-deadline-field input,.dossier-task-estimate-row input,.dossier-task-estimate-row select{width:100%;padding:.45rem .65rem;border:1px solid var(--border);border-radius:8px;font-size:.85rem}.dossier-task-draft-label{display:block;margin-bottom:.35rem;font-size:.72rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.dossier-task-draft-assignee,.dossier-task-draft-schedule{min-width:0}.dossier-task-schedule-modes{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.5rem}.dossier-schedule-pill{padding:.25rem .6rem;border:1px solid #cbd5e1;border-radius:999px;background:#fff;font-size:.72rem;font-weight:600;color:var(--text-muted);cursor:pointer}.dossier-schedule-pill.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.dossier-task-deadline-field,.dossier-task-estimate-row label{display:flex;flex-direction:column;gap:.25rem;font-size:.78rem;color:var(--text-muted)}.dossier-task-estimate-row{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.dossier-task-estimate-hint{margin:.35rem 0 0;font-size:.72rem}.dossier-task-draft-remove{position:absolute;top:.5rem;right:.5rem}.user-single-picker{display:flex;flex-direction:column;gap:.35rem}.user-single-picker-label{font-size:.72rem;font-weight:600;color:var(--text-muted)}.user-single-picker-selected{display:flex;align-items:center;gap:.4rem;padding:.25rem .35rem .25rem .25rem;border-radius:999px;background:#f1f5f9;font-size:.8rem}.user-single-picker-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-single-picker-role{color:var(--text-muted)}.user-single-picker-search{position:relative}.user-single-picker-search input{width:100%;padding:.45rem .65rem;border:1px solid var(--border);border-radius:8px;font-size:.85rem}.user-single-picker-suggest{position:absolute;z-index:20;left:0;right:0;top:calc(100% + .25rem);max-height:180px;overflow-y:auto}.dossier-activate-check{display:flex;align-items:center;gap:.5rem;margin-top:1.25rem;font-size:.875rem}.dossier-create-footer{display:flex;justify-content:flex-end;gap:.65rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border)}.dossier-detail-hero{padding:1.25rem;margin-bottom:1rem}.dossier-overview{padding:0;margin-bottom:1rem;overflow:hidden}.dossier-overview-main{display:grid;grid-template-columns:1fr min(320px,38%);gap:1.25rem;padding:1.15rem 1.25rem;border-bottom:1px solid var(--border)}.dossier-overview-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin-bottom:.65rem}.dossier-status-badge{font-weight:600}.dossier-status-active{background:#e8f0fe;color:#1a73e8}.dossier-status-draft{background:#f1f3f5;color:#5f6368}.dossier-status-closed,.dossier-status-archived{background:#e6f4ea;color:#137333}.dossier-status-on_hold{background:#fef7e0;color:#b06000}.dossier-overview-ref{font-size:.78rem;font-weight:600;color:var(--text-muted);letter-spacing:.02em}.dossier-overview-note{margin:0 0 .85rem;font-size:.88rem;color:var(--text-muted);line-height:1.5;max-width:52rem}.read-more-link{display:inline;padding:0;border:none;background:none;font-size:inherit;font-weight:600;color:var(--primary);cursor:pointer;text-decoration:underline;text-underline-offset:2px}.read-more-link:hover{color:#1d4ed8}.read-more-modal{width:100%;max-width:36rem;max-height:min(85vh,640px);display:flex;flex-direction:column;background:var(--card);border-radius:12px;padding:0;overflow:hidden}.read-more-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1.1rem 1.25rem;border-bottom:1px solid var(--border)}.read-more-modal-header h2{margin:0;font-size:1.05rem;line-height:1.35}.read-more-modal-body{flex:1;overflow-y:auto;padding:1.15rem 1.25rem;font-size:.9rem;line-height:1.6;color:var(--text);white-space:pre-wrap;word-break:break-word}.read-more-modal-footer{display:flex;justify-content:flex-end;padding:.85rem 1.25rem;border-top:1px solid var(--border)}.dossier-overview-meta{display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:.65rem 1.25rem;margin:0}.dossier-overview-meta-item{margin:0}.dossier-overview-meta-item dt{margin:0 0 .2rem;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.dossier-overview-meta-item dd{margin:0;display:flex;align-items:center;gap:.45rem;font-size:.86rem;font-weight:500}.dossier-overview-stats{background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:.85rem 1rem;display:flex;flex-direction:column;gap:.85rem}.dossier-overview-progress-block{display:flex;flex-direction:column;gap:.4rem}.dossier-overview-progress-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;font-size:.78rem;color:var(--text-muted)}.dossier-overview-progress-head strong{font-size:1.5rem;line-height:1;color:var(--text)}.dossier-overview-progress-head strong.is-complete{color:#137333}.dossier-progress-bar.is-complete span{background:linear-gradient(90deg,#34a853,#137333)}.dossier-overview-progress-caption{margin:0;font-size:.75rem;color:var(--text-muted)}.dossier-overview-kpis{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.dossier-overview-kpis li{display:flex;align-items:center;gap:.4rem;padding:.45rem .5rem;background:var(--card);border:1px solid var(--border);border-radius:8px;min-width:0}.dossier-overview-kpis li i{color:var(--primary);font-size:.85rem;flex-shrink:0}.dossier-overview-kpis li div{display:flex;flex-direction:column;min-width:0}.dossier-overview-kpis li strong{font-size:.82rem;line-height:1.2}.dossier-overview-kpis li span{font-size:.65rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dossier-overview-activate{width:100%;justify-content:center}.dossier-overview-participants{padding:.85rem 1.25rem 1rem}.dossier-overview-participants-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.65rem}.dossier-overview-participants-head h3{margin:0;font-size:.92rem;display:flex;align-items:center;gap:.45rem}.dossier-overview-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;height:1.35rem;padding:0 .35rem;border-radius:999px;background:#e8f0fe;color:var(--primary);font-size:.72rem;font-weight:700}.dossier-overview-participants-head .dossier-informed-hint{margin:0;font-size:.75rem}.dossier-participant-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:stretch;gap:.5rem}.dossier-participant-chips>li{display:flex;min-width:0}.dossier-participant-chip{display:flex;align-items:center;gap:.55rem;flex:1;min-width:12.5rem;max-width:100%;min-height:3.25rem;padding:.45rem .55rem .45rem .5rem;background:#f8fafc;border:1px solid var(--border);border-radius:.65rem}.dossier-participant-chip>.user-avatar{flex-shrink:0;align-self:center}.dossier-participant-chip-actions{display:flex;align-items:center;gap:.1rem;margin-left:auto;flex-shrink:0;align-self:center}.dossier-participant-chip-actions-spacer{flex-shrink:0;width:4.1rem;margin-left:auto}.dossier-participant-edit,.dossier-participant-remove{flex-shrink:0;color:var(--text-muted)}.dossier-participant-remove:hover{color:var(--danger)}.dossier-overview-participants-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem}.add-participant-modal{max-width:32rem;padding:0;overflow:hidden}.add-participant-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1.25rem 1.35rem 1rem;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#f8fafc,#fff)}.add-participant-modal-heading{min-width:0}.add-participant-modal-header h2{margin:0;font-size:1.1rem;line-height:1.3}.add-participant-member{display:flex;align-items:center;gap:.85rem}.add-participant-member h2{margin:0 0 .15rem}.add-participant-modal-form{display:flex;flex-direction:column;gap:1rem;padding:1.15rem 1.35rem 1.25rem}.add-participant-modal-footer{display:flex;justify-content:flex-end;gap:.65rem;margin-top:.25rem;padding-top:1rem;border-top:1px solid var(--border)}.add-participant-modal-footer .btn-primary,.add-participant-modal-footer .btn-secondary{min-width:7.5rem}.add-participant-intro{margin:.35rem 0 0;font-size:.84rem;color:var(--text-muted);line-height:1.45}.add-participant-field{margin:0}.add-participant-perms{margin:0;padding:1rem;border:1px solid var(--border);border-radius:12px;background:#f8fafc}.add-participant-perms-title{margin:0;font-size:.88rem;font-weight:700;color:var(--text)}.add-participant-perms-sub{margin:.35rem 0 .85rem;font-size:.78rem;color:var(--text-muted);line-height:1.4}.add-participant-perm-list{display:flex;flex-direction:column;gap:.55rem}.add-participant-perm-card{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"icon text tick" "icon text tick";align-items:center;gap:.65rem .75rem;padding:.75rem .85rem;border:1px solid var(--border);border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.add-participant-perm-card:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0f172a0d}.add-participant-perm-card.is-checked{border-color:#93c5fd;background:#f8fbff;box-shadow:0 0 0 1px #2563eb14}.add-participant-perm-input{position:absolute;opacity:0;pointer-events:none}.add-participant-perm-icon{grid-area:icon;width:2.25rem;height:2.25rem;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:.95rem;flex-shrink:0}.add-participant-perm-icon.tasks{background:#e0f2fe;color:#0284c7}.add-participant-perm-icon.stages{background:#ede9fe;color:#7c3aed}.add-participant-perm-text{grid-area:text;min-width:0}.add-participant-perm-text strong{display:block;font-size:.86rem;font-weight:600;color:var(--text)}.add-participant-perm-text small{display:block;margin-top:.15rem;font-size:.76rem;color:var(--text-muted);line-height:1.35}.add-participant-perm-tick{grid-area:tick;width:1.35rem;height:1.35rem;border-radius:999px;border:1.5px solid #cbd5e1;display:flex;align-items:center;justify-content:center;color:transparent;font-size:.62rem;transition:background .15s ease,border-color .15s ease,color .15s ease}.add-participant-perm-card.is-checked .add-participant-perm-tick{background:var(--primary);border-color:var(--primary);color:#fff}.add-participant-perms-hint{display:flex;align-items:flex-start;gap:.65rem;margin:0;padding:.85rem .95rem;border-radius:10px;background:#eff6ff;border:1px solid #bfdbfe}.add-participant-perms-hint-icon{width:2rem;height:2rem;border-radius:8px;background:#dbeafe;color:#1d4ed8;display:flex;align-items:center;justify-content:center;flex-shrink:0}.add-participant-perms-hint p{margin:0;font-size:.82rem;color:#1e40af;line-height:1.45}.dossier-participant-perm{display:inline-flex;align-items:center;gap:.2rem;padding:.08rem .35rem;border-radius:4px;background:#e8f0fe;color:#1a56db;font-size:.62rem;font-weight:700;letter-spacing:.02em;white-space:nowrap}.dossier-participant-chip-text{display:flex;flex-direction:column;justify-content:center;gap:.12rem;flex:1;min-width:0}.dossier-participant-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .35rem;min-width:0}.dossier-participant-chip-text strong{font-size:.8rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dossier-participant-role{font-size:.68rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dossier-detail-hero-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.dossier-origin-note{color:var(--text-muted);margin-bottom:1rem;line-height:1.5}.dossier-progress-hero{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.dossier-progress-stats{display:flex;flex-direction:column;gap:.15rem;min-width:8rem}.dossier-progress-stats strong{font-size:1.35rem;line-height:1.1}.dossier-detail-meta{display:flex;flex-wrap:wrap;gap:1rem;font-size:.85rem;color:var(--text-muted)}.dossier-detail-grid{display:flex;flex-direction:column;gap:1rem;align-items:stretch}.dossier-panel{padding:1rem 1.15rem}.dossier-panel-wide{grid-column:1 / -1}.dossier-panel h2{font-size:1rem;margin-bottom:.85rem}.dossier-participants-list{list-style:none;display:flex;flex-direction:column;gap:.65rem}.dossier-participants-list li{display:flex;align-items:center;gap:.55rem}.dossier-participants-list li div{display:flex;flex-direction:column;min-width:0}.dossier-participants-list .cell-muted{font-size:.75rem}.dossier-informed-hint{margin-top:.85rem;font-size:.8rem;color:var(--primary)}.dossier-board-section{overflow:hidden}.dossier-board-section-head{margin-bottom:1rem}.dossier-board-section-head h2{display:flex;align-items:center;gap:.5rem;margin:0 0 .25rem}.dossier-board{display:flex;gap:1rem;overflow-x:auto;padding-bottom:.5rem;align-items:flex-start}.dossier-board-column{flex:0 0 min(300px,88vw);background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:.75rem;display:flex;flex-direction:column;gap:.55rem;min-height:12rem}.dossier-board-column-done{border-left:3px solid #137333;background:#f6fbf7}.dossier-board-column-in_progress{border-left:3px solid #1a73e8}.dossier-board-column-head{display:flex;flex-direction:column;gap:.5rem}.dossier-board-column-title{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .55rem}.dossier-board-column-title h3{margin:0;font-size:.92rem;font-weight:700;line-height:1.25}.dossier-stage-actions{display:flex;flex-wrap:wrap;gap:.35rem}.dossier-board-stage-warn{margin:0;padding:.35rem .5rem;font-size:.72rem;border-radius:6px;background:#fef7e0;color:#b06000;display:flex;align-items:center;gap:.35rem}.dossier-stage-pill{display:inline-block;font-size:.7rem;padding:.15rem .45rem;border-radius:999px;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.dossier-stage-pill-todo{background:#e8eaed;color:#5f6368}.dossier-stage-pill-in_progress{background:#e8f0fe;color:#1a73e8}.dossier-stage-pill-done{background:#e6f4ea;color:#137333}.dossier-board-column-desc{margin:0;font-size:.82rem}.dossier-board-column-progress{display:flex;align-items:center;gap:.5rem}.dossier-board-column-progress small{color:var(--text-muted);white-space:nowrap}.dossier-board-tasks{display:flex;flex-direction:column;gap:.5rem;flex:1;min-height:2rem}.dossier-board-empty{margin:0;font-size:.82rem;text-align:center;padding:.75rem 0}.dossier-task-card{display:flex;flex-direction:column;gap:.4rem;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:.6rem .65rem .45rem;box-shadow:0 1px 3px #0f172a0d;transition:border-color .15s,box-shadow .15s}.dossier-task-card:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--border));box-shadow:0 2px 8px #0f172a12}.dossier-task-card.is-done{background:linear-gradient(135deg,color-mix(in srgb,#137333 8%,var(--card)),var(--card));border-color:color-mix(in srgb,#137333 30%,var(--border))}.dossier-task-card-top{display:flex;align-items:flex-start;gap:.55rem}.dossier-task-check{position:relative;flex-shrink:0;margin-top:.05rem;cursor:pointer}.dossier-task-check input{position:absolute;opacity:0;width:0;height:0}.dossier-task-check-ui{display:flex;align-items:center;justify-content:center;width:1.55rem;height:1.55rem;border:2px solid #c5cdd8;border-radius:50%;background:var(--card);color:transparent;font-size:.7rem;transition:all .2s cubic-bezier(.34,1.4,.64,1)}.dossier-task-card:hover .dossier-task-check-ui{border-color:var(--primary)}.dossier-task-check input:focus-visible+.dossier-task-check-ui{outline:2px solid var(--primary);outline-offset:2px}.dossier-task-check input:checked+.dossier-task-check-ui{background:linear-gradient(145deg,#3ecf6e,#137333);border-color:#137333;color:#fff;transform:scale(1.08);box-shadow:0 2px 8px #13733366}.dossier-task-title{margin:0;flex:1;font-weight:600;font-size:.86rem;line-height:1.35;word-break:break-word}.dossier-task-card.is-done .dossier-task-title{text-decoration:line-through;color:var(--text-muted);font-weight:500}.dossier-task-desc{margin:0;font-size:.8rem}.dossier-task-meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.75rem;color:var(--text-muted)}.dossier-task-assignee{display:inline-flex;align-items:center;gap:.3rem}.dossier-task-attach-block{margin-top:.15rem}.dossier-task-attach-gallery{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem}.dossier-task-attach-thumb{display:block;padding:0;border:1px solid var(--border);border-radius:8px;overflow:hidden;cursor:pointer;background:#fff;line-height:0;transition:transform .15s,box-shadow .15s}.dossier-task-attach-thumb:hover{transform:scale(1.03);box-shadow:0 2px 8px #0000001f}.dossier-task-attach-thumb img{width:3.25rem;height:3.25rem;object-fit:cover;display:block}.dossier-task-attach-files{list-style:none;margin:.35rem 0 0;padding:0;display:flex;flex-direction:column;gap:.2rem}.dossier-task-attach-file{display:flex;align-items:center;gap:.45rem;width:100%;padding:.3rem .45rem;border:1px solid var(--border);border-radius:6px;background:#f8fafc;font-size:.72rem;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}.dossier-task-attach-file:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--border));background:#fff}.dossier-task-attach-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dossier-task-card-foot{display:flex;align-items:center;justify-content:flex-end;gap:.35rem;margin-top:.15rem;padding-top:.35rem;border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent);opacity:.85}.dossier-task-card:hover .dossier-task-card-foot{opacity:1}.dossier-task-attach-count{margin-right:auto;font-size:.7rem;color:var(--text-muted);display:inline-flex;align-items:center;gap:.25rem}.dossier-task-attach-add{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:6px;color:var(--text-muted);cursor:pointer;transition:background .15s,color .15s}.dossier-task-attach-add:hover{background:#e8f0fe;color:var(--primary)}.dossier-task-attach-add input{display:none}.dossier-task-attach-error{display:block;width:100%;margin-top:.35rem;font-size:.72rem;color:#dc2626;line-height:1.35}.dossier-board-add-task{margin-top:.35rem;padding-top:.55rem;border-top:1px dashed var(--border)}.dossier-board-compose{display:flex;align-items:center;gap:.35rem;background:var(--card);border:1px solid var(--border);border-radius:8px;padding:.3rem .35rem .3rem .55rem}.dossier-board-compose input{flex:1;min-width:0;border:none;background:transparent;font-size:.82rem;padding:.25rem 0;outline:none}.dossier-board-compose-attach{position:relative;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:6px;color:var(--text-muted);cursor:pointer;flex-shrink:0}.dossier-board-compose-attach:hover{background:#f1f3f5;color:var(--primary)}.dossier-board-compose-attach input{display:none}.dossier-board-compose-badge{position:absolute;top:-4px;right:-4px;min-width:.95rem;height:.95rem;padding:0 .2rem;border-radius:999px;background:var(--primary);color:#fff;font-size:.6rem;font-weight:700;display:flex;align-items:center;justify-content:center}.dossier-board-compose-add{width:1.75rem;height:1.75rem;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.dossier-board-draft-files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem}.dossier-board-draft-files li{display:flex;align-items:center;gap:.35rem;font-size:.75rem;background:var(--card);border:1px solid var(--border);border-radius:6px;padding:.2rem .4rem}.dossier-board-draft-files li span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dossier-comments-section{margin-top:0;display:flex;flex-direction:column;padding:0;overflow:hidden;min-height:20rem}.dossier-comments-section.mail-comments-section{max-height:none}.dossier-comments-header h2{margin:0 0 .3rem;font-size:1rem;display:flex;align-items:center;gap:.5rem}.dossier-comments-feed{min-height:6rem;max-height:28rem}.dossier-comments-composer{border-top:1px solid var(--border)}.dossier-comment-form{margin:0}.dossier-comment-mention-chips{list-style:none;margin:0 0 .5rem;padding:0;display:flex;flex-wrap:wrap;gap:.35rem}.dossier-comment-mention-chips .mail-comment-mention{font-size:.78rem;border-radius:999px;padding:.2rem .55rem}.dossier-comment-compose .mail-comment-mention-list button span{flex-direction:column;align-items:flex-start}.dossier-comment-notify-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin-top:.65rem;padding:.5rem .65rem;background:#f8fafc;border:1px solid var(--border);border-radius:10px}.dossier-comment-notify-label{font-size:.75rem;font-weight:700;color:var(--text-muted);display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap}.dossier-comment-notify-options{display:flex;flex-wrap:wrap;gap:.4rem;flex:1}.dossier-notify-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .65rem;border:1px solid var(--border);border-radius:999px;background:var(--card);font-size:.78rem;font-weight:500;color:var(--text-muted);cursor:pointer;transition:all .15s ease}.dossier-notify-pill:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.dossier-notify-pill.active{background:#e8f0fe;border-color:#93c5fd;color:#1a56db;font-weight:600}.dossier-notify-pill:disabled{opacity:.45;cursor:not-allowed}.dossier-notify-pill-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.1rem;height:1.1rem;padding:0 .25rem;border-radius:999px;background:#1a56db;color:#fff;font-size:.65rem;font-weight:700}.dossier-comment-form-actions{margin-top:.55rem}.dossier-comment-notify{border:none;margin:.5rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.75rem 1.25rem}.dossier-comment-notify legend{width:100%;font-size:.78rem;font-weight:600;color:var(--text-muted);margin-bottom:.15rem}.dossier-comment-notify label{display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;cursor:pointer}.dossier-comment-notify-badge{display:inline-flex;align-items:center;gap:.3rem;margin:.35rem 0 0;padding:.2rem .5rem;font-size:.7rem;font-weight:600;color:#b06000;background:#fef7e0;border-radius:999px;width:fit-content}.dossier-stages{display:flex;flex-direction:column;gap:.85rem}.dossier-stage-card{padding:.85rem 1rem;border:1px solid var(--border);border-radius:10px;background:#f8fafc}.dossier-stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}.dossier-stage-head h3{font-size:.95rem;margin-bottom:.25rem}.dossier-stage-actions{display:flex;gap:.35rem}.dossier-tasks-list{list-style:none;margin:.5rem 0;display:flex;flex-direction:column;gap:.35rem}.dossier-tasks-list li{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .55rem;background:var(--card);border-radius:8px;border:1px solid var(--border)}.dossier-tasks-list li.done{opacity:.65}.dossier-tasks-list li.done strong{text-decoration:line-through}.dossier-task-add{display:flex;gap:.5rem;margin-top:.5rem}.dossier-task-add input{flex:1;padding:.45rem .65rem;border:1px solid var(--border);border-radius:8px}.dossier-add-stage{display:flex;gap:.5rem;margin-top:1rem;padding-top:1rem;border-top:1px dashed var(--border)}.dossier-add-stage input{flex:1;padding:.45rem .65rem;border:1px solid var(--border);border-radius:8px}.dossier-comments-list{list-style:none;display:flex;flex-direction:column;gap:.85rem;margin-bottom:1rem}.dossier-comment-head{display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem;font-size:.85rem}.dossier-comment-head time{margin-left:auto;font-size:.75rem;color:var(--text-muted)}.dossier-comment-form{display:flex;flex-direction:column;gap:.5rem}.dossier-comment-form textarea{padding:.65rem .85rem;border:1px solid var(--border);border-radius:8px;resize:vertical}@media(max-width:900px){.dossier-overview-main,.dossier-overview-kpis,.dossier-detail-grid,.dossier-form-grid,.dossier-participants-grid,.dossier-stage-draft,.dossier-task-draft,.dossier-task-draft-main,.dossier-task-estimate-row{grid-template-columns:1fr}.dossier-board-column{flex-basis:min(280px,92vw);max-height:none}}.user-guide-layout{display:grid;grid-template-columns:280px 1fr;gap:1.5rem;align-items:start;min-height:60vh}.user-guide-nav{position:sticky;top:1rem;max-height:calc(100vh - 8rem);overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.75rem 0}.user-guide-nav-group+.user-guide-nav-group{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border)}.user-guide-nav-group-label{padding:.35rem 1rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.user-guide-nav ul{list-style:none;margin:0;padding:0}.user-guide-nav-item{display:flex;align-items:center;gap:.4rem;width:100%;text-align:left;padding:.55rem 1rem;border:none;background:transparent;color:var(--text);font-size:.875rem;cursor:pointer;border-left:3px solid transparent;transition:background .15s,border-color .15s}.user-guide-nav-item:hover{background:var(--surface-hover, rgba(0, 0, 0, .04))}.user-guide-nav-item.active{background:#2563eb14;border-left-color:#2563eb;color:#2563eb;font-weight:500}.user-guide-nav-item.inactive{opacity:.65}.user-guide-main{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem 2rem;min-height:400px}.user-guide-article-header h2{margin:0 0 .5rem;font-size:1.5rem}.user-guide-article-desc{margin:0 0 1.25rem;color:var(--text-muted);font-size:1rem;line-height:1.5}.user-guide-article-body p{margin:0 0 .75rem;line-height:1.65;color:var(--text)}.user-guide-media{margin:1.5rem 0 0;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:#f8fafc}.user-guide-media img,.user-guide-media video{display:block;width:100%;max-height:70vh;object-fit:contain}.user-guide-media-placeholder{margin-top:1.5rem;padding:2.5rem;text-align:center;border:2px dashed var(--border);border-radius:10px;color:var(--text-muted);display:flex;flex-direction:column;align-items:center;gap:.5rem}.user-guide-media-placeholder i{font-size:2rem;opacity:.4}.guide-admin-editor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.guide-admin-slug{display:inline-block;font-size:.75rem;font-family:monospace;color:var(--text-muted);background:var(--bg);padding:.15rem .5rem;border-radius:4px;margin-bottom:.35rem}.guide-admin-editor-header h3{margin:0;font-size:1.25rem}.guide-admin-active{display:flex;align-items:center;gap:.4rem;font-size:.875rem;white-space:nowrap}.guide-admin-form{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:1.5rem}.guide-admin-form .mail-create-field-wide{grid-column:unset}.guide-admin-editor.card{padding:1.25rem 1.5rem;border:1px solid var(--border);box-shadow:none}.guide-admin-media.card{padding:1rem 1.25rem;margin-bottom:1rem;background:#f8fafc;border:1px solid var(--border);box-shadow:none}.guide-admin-media .mail-create-section-title{margin:0 0 .35rem;font-size:.95rem}.html-editor{position:relative;border:1px solid var(--border);border-radius:8px;background:#f8fafc;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}.html-editor:focus-within{border-color:#93c5fd;box-shadow:0 0 0 3px #2563eb1a;background:var(--card)}.html-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem;padding:.4rem .5rem;border-bottom:1px solid var(--border);background:var(--card)}.html-editor-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:6px;background:transparent;color:var(--text-muted);cursor:pointer;font-size:.8rem;transition:background .12s,color .12s}.html-editor-btn:hover{background:#eff6ff;color:#2563eb}.html-editor-sep{width:1px;height:20px;background:var(--border);margin:0 .25rem}.html-editor-body{padding:.85rem 1rem;font-size:.9rem;line-height:1.65;outline:none;background:transparent;overflow-y:auto;max-height:520px}.html-editor-body:empty:before{content:attr(data-placeholder);color:var(--text-muted);pointer-events:none}.html-editor-placeholder{position:absolute;top:48px;left:1rem;color:var(--text-muted);font-size:.9rem;pointer-events:none}.user-guide-prose h2{font-size:1.2rem;margin:1.5rem 0 .75rem;color:var(--text)}.user-guide-prose h2:first-child{margin-top:0}.user-guide-prose h3{font-size:1.05rem;margin:1.25rem 0 .5rem;color:var(--text)}.user-guide-prose h4{font-size:.95rem;margin:1rem 0 .4rem}.user-guide-prose p{margin:0 0 .85rem;line-height:1.7}.user-guide-prose ul,.user-guide-prose ol{margin:0 0 1rem 1.25rem;line-height:1.7}.user-guide-prose li{margin-bottom:.35rem}.user-guide-prose blockquote{margin:1rem 0;padding:.75rem 1rem;border-left:4px solid #2563eb;background:#eff6ff;border-radius:0 8px 8px 0;color:#1e40af}.user-guide-prose blockquote p{margin:0}.user-guide-prose code{font-family:ui-monospace,monospace;font-size:.85em;padding:.15rem .4rem;background:#f1f5f9;border-radius:4px}.user-guide-prose table.guide-fields,.html-editor-body table.guide-fields{width:100%;border-collapse:collapse;margin:1rem 0 1.25rem;font-size:.875rem}.user-guide-prose table.guide-fields th,.user-guide-prose table.guide-fields td,.html-editor-body table.guide-fields th,.html-editor-body table.guide-fields td{border:1px solid var(--border);padding:.55rem .75rem;text-align:left;vertical-align:top}.user-guide-prose table.guide-fields th,.html-editor-body table.guide-fields th{background:#f1f5f9;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.user-guide-prose table.guide-fields tbody tr:nth-child(2n),.html-editor-body table.guide-fields tbody tr:nth-child(2n){background:#f8fafc}.user-guide-prose strong{font-weight:600}.user-guide-prose em{font-style:italic;color:var(--text-muted)}.guide-admin-form textarea{font-weight:400}.guide-admin-media h4{margin:0 0 .35rem;font-size:1rem}.guide-admin-media-hint{margin:0 0 1rem;font-size:.8rem;color:var(--text-muted)}.guide-admin-media-preview{margin-bottom:1rem;border-radius:8px;overflow:hidden;border:1px solid var(--border);max-width:600px}.guide-admin-media-preview img,.guide-admin-media-preview video{display:block;width:100%;max-height:320px;object-fit:contain;background:#f8fafc}.guide-admin-media-actions{display:flex;flex-wrap:wrap;gap:.5rem}.guide-admin-editor-footer{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border)}.guide-admin-badge-hidden{font-size:.65rem;padding:.1rem .35rem;border-radius:4px;background:#fef3c7;color:#92400e;margin-left:auto}.guide-admin-has-media{margin-left:auto;font-size:.7rem;color:#059669;opacity:.8}@media(max-width:900px){.user-guide-layout{grid-template-columns:1fr}.user-guide-nav{position:static;max-height:240px}}
