/* Emil Kowalski: deliberate hierarchy, quick feedback, restrained motion. */
.app-shell{--crm-ease:cubic-bezier(.23,1,.32,1);--crm-rail:244px}
.app-shell .workspace{margin-left:var(--crm-rail);background:#f5f7f9}
.app-shell .sidebar{width:var(--crm-rail);padding:38px 14px 16px;background:#fbfcfd;color:var(--ink);border-right:1px solid #e0e6eb;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sidebar .brand{color:var(--ink);gap:10px;padding:0 8px 24px;font-size:16px;letter-spacing:-.4px}.sidebar .brand-logo{width:44px;height:44px;min-width:44px;padding:2px;border:1px solid #e0e6eb;border-radius:9px}.sidebar .brand small{font-size:8px;letter-spacing:1.2px;color:#63737f;margin-top:4px}
.sidebar .nav-label{font-size:11px;line-height:1.4;letter-spacing:.2px;text-transform:none;font-weight:600;margin:20px 11px 8px;color:#687985}.sidebar .brand+.nav-label{margin-top:0}.sidebar nav{gap:3px}
.sidebar nav a,.sidebar .nav-utility{min-height:40px;padding:9px 11px;gap:11px;color:#475c69;border:1px solid transparent;border-radius:7px;font-size:13px;line-height:1.4;transition:background-color 140ms var(--crm-ease),border-color 140ms var(--crm-ease),color 140ms var(--crm-ease)}
.sidebar .nav-link-label{min-width:0;line-height:1.4}.sidebar nav a>.nav-link-label,.sidebar .nav-utility>.nav-link-label{width:auto;display:block;flex:1;font-size:inherit;color:inherit}.sidebar .nav-icon{color:#748995;width:19px;height:19px;flex:0 0 19px}
.sidebar nav a[aria-current="page"]{background:#e9f2ef;border-color:#d8e7e0;color:#145d49;font-weight:650}.sidebar a[aria-current="page"] .nav-icon{color:#17665f}.sidebar .nav-utility{margin-top:10px;font-size:12px}
.sidebar-bottom{padding:17px 7px 0;margin-top:auto;border-top:1px solid #e0e6eb;gap:9px}.sidebar-bottom strong{color:var(--ink);font-size:12px}.sidebar-bottom a{color:#63737f;font-size:11px}.sidebar .avatar{background:#e9efed;color:#325c53;width:32px;height:32px;font-size:12px}.sidebar .logout{color:#63737f;padding:4px;min-height:36px;width:36px}
.nav-collapse{display:flex;align-items:center;justify-content:center;position:absolute;right:10px;top:6px;width:30px;height:26px;padding:0;color:#63737f;background:transparent;border:1px solid transparent;border-radius:5px;cursor:pointer}.nav-collapse svg{width:16px;height:16px}
.nav-settings{margin-top:16px;margin-bottom:8px}.nav-settings>summary{display:flex;align-items:center;gap:11px;min-height:40px;padding:9px 11px;font-size:13px;font-weight:500;border-radius:7px;color:#475c69;list-style:none}.nav-settings>summary::-webkit-details-marker{display:none}.nav-settings>summary .nav-link-label{flex:1}.nav-settings[open]>summary{margin-bottom:4px}.nav-settings .nav-chevron{font-size:16px}.nav-settings[open] .nav-chevron{transform:rotate(180deg)}.nav-settings nav{padding-left:9px;border-left:1px solid #dfe6ea;margin-left:19px}.nav-settings nav a{font-size:12px;gap:8px}.nav-settings nav .nav-icon{width:17px;height:17px;flex-basis:17px}
.app-shell .topbar{background:#fff;border-bottom:1px solid #e0e6eb;min-height:66px;padding:12px 32px;gap:18px}.workspace-location{display:flex;align-items:center;gap:12px;min-width:0;font-size:13px;line-height:1.4}.workspace-location>a{color:#63737f;white-space:nowrap}.workspace-location>span[aria-hidden]{color:#b6c2ca}[data-workspace-context]{color:#243e4c;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40ch}.workspace-tools{display:flex;align-items:center;gap:18px;flex-shrink:0}.workspace-tools .environment{color:#6a7d89;font-size:11px;white-space:nowrap}
.workspace-create{position:relative;z-index:12}.workspace-create>summary{display:flex;align-items:center;justify-content:center;gap:8px;background:#17665f;border:1px solid #17665f;border-radius:7px;color:white;font-size:13px;font-weight:600;min-height:40px;padding:8px 12px;list-style:none;user-select:none;transition:background-color 140ms var(--crm-ease),transform 120ms var(--crm-ease)}.workspace-create>summary::-webkit-details-marker{display:none}.workspace-create[open]>summary{margin-bottom:0}.workspace-create>summary>span{font-size:20px;font-weight:400;line-height:1}.workspace-create>summary svg{width:16px;height:16px}
.workspace-create-menu{position:absolute;right:0;top:calc(100% + 8px);width:256px;background:#fff;padding:6px;border:1px solid #dce4e9;border-radius:10px;box-shadow:0 8px 28px #1933421a;transform-origin:top right}.workspace-create-menu>p{font-size:11px;font-weight:600;color:#6b7c87;margin:8px 10px 5px}.workspace-create-menu>a{display:flex;align-items:center;gap:12px;padding:11px 10px;min-height:44px;color:#243e4c;border-radius:6px;font-size:13px}.workspace-create-menu .nav-icon{width:20px;height:20px;flex:0 0 20px;stroke-width:1.65}.workspace-create-menu .nav-icon-surface{fill:currentColor;stroke:none;opacity:.08}
.app-shell main{padding:30px 32px;max-width:1680px}.app-shell .page-heading{align-items:flex-start;margin-bottom:26px;gap:24px}.app-shell .page-heading h1{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin-bottom:9px}.app-shell .page-heading .eyebrow{font-size:10px;letter-spacing:1px;margin-bottom:8px}.app-shell .page-heading .lead{font-size:14px;line-height:1.65;max-width:74ch}
.app-shell .panel{padding:24px;border-color:#e0e6eb;border-radius:10px;box-shadow:0 1px 2px #19334204}.app-shell .panel>.filterbar{padding-bottom:20px;border-bottom:1px solid #edf0f3;gap:10px}.app-shell .filterbar input,.app-shell .filterbar select{font-size:14px;min-height:42px}.app-shell .filterbar>a{align-self:center;white-space:nowrap;font-size:12px}
.app-shell .customer-grid{gap:16px}.app-shell .customer-card{padding:21px;border-color:#e0e6eb;background:#fff;border-radius:9px}.app-shell .customer-card h2{font-size:17px;margin-bottom:10px}.app-shell .customer-card small{overflow-wrap:anywhere}.app-shell .customer-card .actions{padding-top:17px;border-top:1px solid #edf0f3;gap:10px 16px;margin-top:18px}.app-shell .customer-card .customer-delete{margin-left:auto}.app-shell .customer-initial{width:36px;height:36px;border-radius:50%;font-weight:600}.app-shell .customer-kind{font-size:11px;border:1px solid #dce9e1}
.app-shell .table-wrap th{font-size:11px;letter-spacing:.4px;padding-block:13px}.app-shell .table-wrap td{padding-block:17px;font-variant-numeric:tabular-nums}
.app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-shell select,.app-shell textarea{border-color:#cbd6dd;transition:border-color 140ms var(--crm-ease),box-shadow 140ms var(--crm-ease)}.app-shell input:not([type=checkbox]):not([type=radio]):focus,.app-shell select:focus,.app-shell textarea:focus{border-color:#267469;box-shadow:0 0 0 3px #26746914}
.app-shell :is(.button,button:not(.fc-button):not(.logout):not(.nav-collapse):not(.planner-icon-button):not(.planner-event)){transition:background-color 140ms var(--crm-ease),border-color 140ms var(--crm-ease),transform 120ms var(--crm-ease)}.app-shell.using-pointer :is(.button,button):not(:disabled):active,.using-pointer .workspace-create>summary:active{transform:scale(.98)}.app-shell :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #267469;outline-offset:3px}.app-shell .message{font-size:14px;line-height:1.6;border:1px solid #d8e7e0;background:#edf6f1;border-radius:8px}.app-shell footer{font-size:12px;padding-inline:32px;color:#6b7c87}
@media(hover:hover) and (pointer:fine){.sidebar nav a:hover,.sidebar .nav-utility:hover,.nav-settings>summary:hover{background:#edf1f4;color:#243e4c;text-decoration:none}.sidebar a:hover .nav-icon{color:#3d6876}.sidebar .nav-collapse:hover{background:#edf1f4;color:#243e4c}.workspace-create>summary:hover{background:#104e49}.workspace-create-menu>a:hover{background:#eef5f2;text-decoration:none}}
@media(min-width:721px){.app-shell.nav-compact{--crm-rail:76px}.app-shell.nav-compact .sidebar{padding:40px 12px 16px}.nav-compact .sidebar .brand{justify-content:center;padding:0 0 16px}.nav-compact .sidebar .brand-logo{width:38px;height:38px;min-width:38px}.nav-compact .sidebar .brand>span,.nav-compact .sidebar .nav-label,.nav-compact .sidebar .nav-link-label,.nav-compact .sidebar-bottom>div,.nav-compact .sidebar-bottom>.avatar{display:none}.nav-compact .sidebar nav{margin-bottom:14px;gap:4px}.nav-compact .sidebar nav a,.nav-compact .sidebar .nav-utility{justify-content:center;padding:10px;min-height:43px}.nav-compact .sidebar-bottom{justify-content:center;padding-top:12px}.nav-compact .sidebar-bottom form{margin:0}.nav-compact .nav-collapse svg{transform:rotate(180deg)}.nav-compact .nav-settings{margin-top:0}.nav-compact .nav-settings>summary{justify-content:center;padding:10px}.nav-compact .nav-settings .nav-chevron{display:none}.nav-compact .nav-settings nav{padding:0;margin-left:0;border:0}}
@media(max-width:1050px){.workspace-tools .environment{display:none}}
@media(max-width:720px){.app-shell .workspace{margin-left:0}.app-shell .sidebar{width:min(290px,86vw);padding:72px 17px 20px}.nav-collapse{display:none}.sidebar nav a,.sidebar .nav-utility,.nav-settings>summary{min-height:44px}.sidebar .nav-label{margin-top:20px}.app-shell .topbar{min-height:68px;padding:12px 16px 12px 104px;gap:8px}.workspace-location{font-size:13px}.workspace-location>a,.workspace-location>span[aria-hidden]{display:none}.workspace-tools{gap:0}.workspace-create>summary{min-height:42px;padding:8px 11px;font-size:12px}.workspace-create-menu{width:min(270px,calc(100vw - 32px))}.mobile-menu-toggle{display:flex;align-items:center;gap:7px;min-height:42px;top:13px;left:16px;padding:9px 10px;z-index:15;color:#243e4c;border:1px solid #d5dfe5;background:#fff;border-radius:7px;font-size:12px}.mobile-menu-toggle svg{width:16px;height:16px}.app-shell main{padding:24px 16px}.app-shell .page-heading{flex-wrap:wrap;gap:16px}.app-shell .page-heading h1{font-size:27px}.app-shell .page-heading .lead{font-size:14px}.app-shell .panel{padding:18px 16px}.app-shell .filterbar{flex-wrap:wrap}.app-shell .filterbar input{flex:1 1 100%}.app-shell .filterbar select{flex:1 1 150px}.app-shell .filterbar button{min-height:44px}.app-shell .customer-grid{grid-template-columns:1fr}.app-shell .customer-card{padding:20px}.app-shell .customer-card .actions>a{display:inline-flex;align-items:center;min-height:44px}.app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.app-shell select,.app-shell textarea{font-size:16px}.app-shell footer{padding-inline:16px}}
@media(hover:none){.sidebar nav a:hover:not([aria-current="page"]),.sidebar .nav-utility:hover{background:transparent;color:#475c69}.sidebar a:hover .nav-icon{color:#748995}}
@media(prefers-reduced-motion:reduce){.app-shell *, .app-shell *::before,.app-shell *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.app-shell :is(.button,button):not(:disabled):active,.workspace-create>summary:active{transform:none!important}}

/* CRM9: stronger legibility and consistent icon proportions, without decorative tiles. */
.app-shell .mobile-menu-toggle:hover,.app-shell .mobile-menu-toggle:active{background:#edf3f2;color:#243e4c;border-color:#cbd9d6}.sidebar .logout:hover{background:#edf3f2;color:#243e4c}
.sidebar nav a{font-size:14px;min-height:42px;letter-spacing:-.12px}.sidebar .nav-icon{width:21px;height:21px;flex:0 0 21px;stroke-width:1.85;color:#526b77}.sidebar .nav-label{font-size:11px;color:#5c707c;letter-spacing:.2px}.sidebar nav a[aria-current="page"]{background:#e5efeb;border-color:#d0e1d8;color:#174f42}.sidebar nav a[aria-current="page"] .nav-icon{color:#174f42}.sidebar .brand-logo{border:0;padding:0;background:transparent;border-radius:0}.sidebar-bottom{margin-top:22px}.sidebar .logout .nav-icon{width:19px;height:19px;color:#526b77}.nav-settings>summary .nav-icon{width:20px;height:20px}.nav-settings .nav-chevron{display:flex;align-items:center}.nav-settings .nav-chevron .nav-icon{width:14px;height:14px;flex-basis:14px}.nav-settings nav a{font-size:13px}.workspace-create>summary>.nav-icon:first-child{width:18px;height:18px;flex-basis:18px}.workspace-create>summary>.nav-icon:last-child{width:14px;height:14px;flex-basis:14px}.workspace-create-menu .nav-icon{color:#496471;stroke-width:1.85}.workspace-create-menu>a{gap:13px;font-size:14px}.mobile-menu-toggle>.nav-icon{width:18px;height:18px;flex-basis:18px}.app-shell .page-heading .button>.nav-icon{width:18px;height:18px;flex-basis:18px}#record-editor>header button>.nav-icon{width:16px;height:16px;flex-basis:16px}
@media(min-width:721px){.nav-compact .sidebar-bottom{margin-top:auto}}
@media(max-width:720px){.sidebar nav a{min-height:46px;font-size:14px}.sidebar .nav-label{margin-top:22px}.workspace-create-menu>a{min-height:46px}.sidebar .nav-icon{width:21px;height:21px}.sidebar .nav-settings nav a{min-height:44px}}
@media(max-width:720px){.workspace-create{z-index:5}}
.sidebar .brand-logo{width:56px;height:56px;min-width:56px}
@media(min-width:721px){.nav-compact .sidebar .brand-logo{width:44px;height:44px;min-width:44px}}
/* Customer list: one record per row, with contact details and actions. */
.app-shell .customer-grid{grid-template-columns:minmax(0,1fr);gap:0}
.app-shell .customer-card{display:grid;grid-template-columns:40px minmax(160px,1.2fr) minmax(160px,1fr) minmax(190px,auto);column-gap:20px;row-gap:5px;align-items:start;padding:22px 8px;border:0;border-bottom:1px solid #e0e6eb;border-radius:0}
.app-shell .customer-card:last-child{border-bottom:0}
.app-shell .customer-card>.customer-initial{grid-column:1;grid-row:1/4;align-self:center}
.app-shell .customer-card>h2{grid-column:2;grid-row:1;margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.app-shell .customer-card>.customer-kind{grid-column:2;grid-row:2;justify-self:start}
.app-shell .customer-card>p{grid-column:3;grid-row:1/3;margin:0;min-height:0;font-size:13px;line-height:1.6}
.app-shell .customer-card>small{grid-column:3;grid-row:3;line-height:1.6}
.app-shell .customer-card>.actions{grid-column:4;grid-row:1/4;align-self:center;justify-content:flex-end;max-width:250px;margin:0;padding:0;border:0;gap:8px 16px;font-size:12px}
.app-shell .customer-card .customer-delete{margin-left:0}
@media(max-width:1150px){.app-shell .customer-card{grid-template-columns:36px minmax(0,1fr) minmax(160px,auto);gap:5px 16px}.app-shell .customer-card>p{grid-column:2;grid-row:3}.app-shell .customer-card>small{grid-column:2;grid-row:4}.app-shell .customer-card>.actions{grid-column:3;grid-row:1/5;max-width:180px}.app-shell .customer-card>.customer-initial{grid-row:1/5}}
@media(max-width:600px){.app-shell .customer-card{grid-template-columns:36px minmax(0,1fr);padding:22px 0}.app-shell .customer-card>.actions{grid-column:2;grid-row:5;justify-content:flex-start;max-width:none;margin-top:8px;gap:4px 16px}.app-shell .customer-card>.customer-initial{grid-row:1/3;align-self:start}.app-shell .customer-card>h2{font-size:16px}.app-shell .customer-card>.customer-kind{font-size:11px}.app-shell .customer-card>p{margin-top:4px}}
