/* Aurora: luminous glass, blue ink and pearlescent surfaces. */
:root{--ink:#253454;--muted:#687794;--line:#dce4f3;--green:#5264d9;--wash:#f3f5fc;--accent:#b8ccff;--panel:#253c7059}
.wallpaper{background:radial-gradient(ellipse at 78% 10%,#d6b8eb99,transparent 48%),radial-gradient(ellipse at 10% 65%,#56bce37a,transparent 50%),linear-gradient(135deg,#172748 0%,#485b98 40%,#8882b6 66%,#35496c 100%)}
.wallpaper:before{content:'';position:absolute;width:135vw;height:90vw;left:12vw;top:-65vw;border-radius:48%;transform:rotate(-24deg);background:linear-gradient(170deg,#ffffffb3 12%,#cbd8fb66 46%,#8a9fe522 68%);border:1px solid #f6f5ffaa;box-shadow:inset 0 -2px 4px #fff9,0 25px 80px #14266d55}
.wallpaper:after{content:'';position:absolute;width:125vw;height:90vw;left:38vw;top:-47vw;border-radius:45%;transform:rotate(-30deg);background:linear-gradient(155deg,#d6cbf544,#7f99d644 40%,#213e6955 72%);border:1px solid #d9e5ff88;box-shadow:inset 0 -2px 5px #f6e9ffc9,0 20px 70px #18254844;pointer-events:none}.wallpaper .ribbon{display:none}
.menubar{background:linear-gradient(110deg,#14254f66,#6e70a344);border-bottom:1px solid #ffffff36;box-shadow:0 1px 12px #172b4920}.glass,.dock{background:linear-gradient(135deg,#e8f0ff26,#818ac61a 48%,#fff2);border-color:#eef2ff55;box-shadow:inset 0 1px 0 #ffffff66,inset 0 -1px 0 #ffffff15,0 16px 40px #17295433;backdrop-filter:blur(30px) saturate(140%)}.greeting h1 span{color:#d3dfff}.greeting p,.eyebrow,.desktop-footer,.version{color:#e1e9ffcc}.desktop-footer i,.local-status i{background:#a6e6f6;box-shadow:0 0 9px #a6e6f699}.app-button:hover{background:linear-gradient(135deg,#ffffff35,#ffffff0a);box-shadow:inset 0 1px #fff5,0 8px 20px #25367422}.search-panel{background:linear-gradient(140deg,#25395bef,#4b4772ef);border-color:#fff5}
/* No shortcut column inside application windows. Keep functional navigation above content. */
.app-shell{grid-template-columns:minmax(0,1fr)}.app-rail{display:none}.app-main{padding:26px 32px 32px}.crm-mobile-nav{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:6px;margin:0 0 24px;border:1px solid #dce4f3;border-radius:13px;background:linear-gradient(110deg,#eef2fcdd,#faf5ffcc);box-shadow:inset 0 1px #fff;flex-shrink:0}.crm-mobile-nav button{border:1px solid transparent;padding:10px 17px;font-size:11px;white-space:nowrap;border-radius:9px;color:#697793}.crm-mobile-nav button.active{background:linear-gradient(135deg,#627be8,#7460cc);border-color:#b0bafa;color:white;box-shadow:inset 0 1px #ffffff66,0 4px 10px #6762ca30}.crm-mobile-nav button:hover:not(.active){background:#fff9;color:#4355a0}
.modern-window{background:#f5f7fc;border:1px solid #ffffffca;box-shadow:0 30px 90px #13244366,inset 0 1px #fff;border-radius:19px}.modern-window .window-header{background:linear-gradient(115deg,#f9fcfff5,#e8edfcf2 55%,#f4eafbf2);border-bottom:1px solid #d5dff0;box-shadow:inset 0 1px #fff;color:#354565}.window-cloud{color:#7583a2}.modern-window .window-content{background:radial-gradient(ellipse at 95% 0,#eee7ff77,transparent 50%),linear-gradient(120deg,#f9fbff,#f4f7fc)}.app-main h2,.admin-heading h2{color:#283857}.app-description,.dialog-subtitle{color:#6d7c96}.app-breadcrumb,.sync-caption{color:#7d89a6}.section-heading{color:#475d84}.section-heading small{color:#7e8ba3}.section-heading .text-button{color:#6475bd;white-space:nowrap}.section-heading{gap:12px}
.primary{color:white;background:linear-gradient(145deg,#7190f4 0%,#5d70dc 45%,#775ec6 100%);border:1px solid #6374d4;box-shadow:inset 0 1px #ffffff70,inset 0 -1px #394b9330,0 4px 10px #6574c42b;border-radius:9px}.primary:hover{background:linear-gradient(145deg,#809af4,#666ad8 65%,#8061ce);box-shadow:inset 0 1px #fff8,0 6px 16px #5965be40}.secondary{color:#596a8e;background:linear-gradient(#fff,#edf1fb);border:1px solid #d9e2f4;box-shadow:inset 0 1px #fff,0 2px 3px #435c8610;border-radius:8px}.secondary:hover{background:#e6edff}.icon-button{color:#6a7cab;border-color:#dce4f3;background:linear-gradient(#fff,#f0f4fc)}.field,.modern-window .field,.workspace-dialog .field,.app-tools select{color:#405276;border-color:#d9e2f2;background:#ffffffd9}.field:focus,.workspace-dialog .field:focus{outline:2px solid #a5b6fb;outline-offset:1px}.search-field{background:#eaf0fa99;border-color:#dae3f2;color:#7e8fb0}.search-field input{color:#425779}.search-field input::placeholder{color:#7e8da8}
.mini-stat,.project-tile,.task-card,.tool-card,.admin-stats>div,.crm-table-wrap,.crm-due-list,.crm-settings-form,.crm-client-profile{border-color:#dce4f3;background:linear-gradient(145deg,#ffffffed,#f3f6ffcf);box-shadow:inset 0 1px #fff,0 6px 20px #50659608}.mini-stat strong,.project-tile h3,.task-card h3,.file-name,.note-preview strong,.note-editor input,.calendar-bar h3,.agenda-name,.admin-stats strong{color:#435984}.mini-stat small,.mini-stat span,.project-tile p,.project-tile-footer,.task-card p,.task-card-bottom,.note-preview p,.note-preview small,.note-meta,.save-indicator,.tools-end{color:#7a89a4}.file-table th{color:#6f80a1;background:#edf2fa;border-color:#dee6f3}.file-table td{color:#536580;border-color:#e8edf7}.empty-state{color:#7a89a4;border-color:#d1dcef;background:linear-gradient(145deg,#ffffff66,#edf3ff44);box-shadow:inset 0 1px #fff}.empty-state h3{color:#5d7095}.empty-state .empty-symbol{color:#99a9cf}.drop-zone{color:#7284a9;border-color:#bdcdee;background:#ecf3ff99}.file-type,.project-symbol{color:#718ac0;border-color:#d3dff3;background:linear-gradient(#f4f7ff,#e2eafa)}
.note-list,.kanban-column,.view-tabs{background:#edf1fa;border-color:#dce4f3}.note-layout,.month-grid,.month-day{border-color:#dce4f3}.note-preview.selected{border-color:#dce4f3;background:linear-gradient(130deg,#fff,#e7edff)}.note-editor textarea{color:#5b6b88}.kanban-title{color:#687c9f}.month-day .day-number{color:#7183a3}.month-day.today .day-number{background:linear-gradient(145deg,#829aee,#6f60ce)}.month-grid .week-label,.month-day.blank{background:#f0f4fc;color:#7e8ead}.welcome-banner{background:linear-gradient(120deg,#e5edff,#eee6fa);border-color:#d9e1f4}.welcome-banner h3{color:#405a89}.welcome-banner p{color:#7281a0}
.crm-kpis section{border:1px solid #d8e3fa;background:linear-gradient(135deg,#ffffff 0%,#e6efff 65%,#dbe5fc 100%);box-shadow:inset 0 1px 1px #fff,0 7px 22px #4d71ae0e;position:relative;overflow:hidden}.crm-kpis section:after{content:'';position:absolute;top:-75px;right:-40px;width:190px;height:170px;border-radius:50%;background:linear-gradient(135deg,#ffffffc9,#ffffff00);transform:rotate(-25deg);pointer-events:none}.crm-kpis section:nth-child(2){background:linear-gradient(135deg,#fff,#dff4f8 65%,#d5e9f6);border-color:#cee4ee}.crm-kpis section:nth-child(3){background:linear-gradient(135deg,#fff,#f0e7fb 65%,#e6ddfa);border-color:#e1d7f0}.crm-kpis section:nth-child(4){background:linear-gradient(135deg,#fff,#fbeaf1 65%,#f2dfef);border-color:#eedce8}.crm-kpis strong{color:#354d7c;position:relative;z-index:1}.crm-kpis section>span{color:#657ba4}.crm-kpis small{color:#7485a0}.crm-person>span,.crm-client-avatar{background:linear-gradient(145deg,#edf4ff,#cddcfa);color:#647cb0;box-shadow:inset 0 1px #fff}.crm-activity strong,.crm-due-list strong{color:#475d80}.crm-activity i{border-color:#a5b7df}.crm-activity article:not(:last-child):before{background:#dce5f4}.crm-detail,.workspace-dialog{background:linear-gradient(125deg,#fff,#f0f3fc 65%,#f6effb);color:#415576;border-color:#dce3f3;box-shadow:inset 0 1px #fff,0 30px 100px #14274755}.crm-detail::backdrop,.workspace-dialog::backdrop{background:#1a2b514d;backdrop-filter:blur(7px)}.workspace-dialog label{color:#64789c}.crm-detail>header{background:linear-gradient(115deg,#fff8,#e6ebfa77);border-color:#dce4f3}.crm-messages article{background:linear-gradient(130deg,#fff,#eaf0fc);border-color:#dbe4f5}.crm-settings-form label,.crm-reply label{color:#607396}.crm-badge.active,.crm-badge.paid,.crm-badge.closed{background:#e3f4ef;color:#357968}.crm-badge.unpaid,.crm-badge.pending,.crm-badge.waiting{background:#fff0dd;color:#95632d}
.login-card{background:linear-gradient(135deg,#ffffff30,#b8c6ec18);border:1px solid #ffffff5e;box-shadow:inset 0 1px #ffffff88,0 30px 90px #14264844;backdrop-filter:blur(32px)}.login-tabs a[aria-current=page]{background:linear-gradient(135deg,#8aa6ec55,#b0a1e355);box-shadow:inset 0 1px #fff5}.login-card button[type=submit]{background:linear-gradient(135deg,#85a5f0,#8d75cf);color:#fff;box-shadow:inset 0 1px #fff8,0 6px 20px #1d316a22}
@media(max-width:900px){.app-shell{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.app-main{padding:18px 16px}.crm-mobile-nav{margin-bottom:18px;border-radius:10px}.crm-mobile-nav button{padding:9px 12px}.app-title-row{flex-wrap:wrap}.crm-kpis strong{font-size:24px}.app-shell{grid-template-columns:minmax(0,1fr)}}
body[data-theme=night] .wallpaper{filter:brightness(.62) saturate(1.15)}body[data-theme=sand] .wallpaper{filter:hue-rotate(20deg) saturate(.7) brightness(1.16)}body[data-theme=sage] .wallpaper{filter:none}.crm-kpis section>*{position:relative;z-index:1}.theme-sample.sage{background:linear-gradient(135deg,#284976,#9b9bdf)}.theme-sample.night{background:linear-gradient(135deg,#101d3a,#57548b)}.theme-sample.sand{background:linear-gradient(135deg,#799db7,#d2b7df)}
