/* Mercury reference adapted for a dense internal application. Loaded after module styles. */
:root{--primary:#5266eb;--primary-hover:#4054d5;--primary-soft:#edecfb;--surface:#fff;--surface-tint:#fbfbff;--night:#171721;--ink:#28253b;--muted:#656176;--line:#e4e3ec;--canvas:#fbfcfd;--blue:var(--primary);--navy:var(--night);--font-ui:Inter,"Segoe UI",Arial,sans-serif;--font-display:var(--font-ui);--radius:12px;--success:#4659a4;--success-bg:#edf0fc;--danger:#a1354d;--danger-bg:#fff0f3;--info:#4e5794;--info-bg:#f0effb;--ng-green-950:var(--night);--ng-green-900:#20202e;--ng-green-800:var(--primary);--ng-green-700:#4959bd;--ng-green-600:#554e7b;--ng-green-500:#5266eb;--ng-lime-500:#9cb4e8;--ng-lime-100:var(--primary-soft);--ng-cream-50:#fbfbff;--ng-cream-100:#f4f3fb;--ng-cream-200:#e8e6f2;--ng-graphite-900:var(--ink);--ng-graphite-700:#554e7b;--ng-graphite-600:var(--muted);--ng-graphite-300:#cbc9da;--ng-graphite-200:var(--line)}
body{font-family:var(--font-ui);color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.5}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4{font-family:var(--font-ui);color:var(--ink);font-weight:500;letter-spacing:.01em;line-height:1.3}h1,.page-heading h1,.record-detail-surface .modal-heading h1{font-size:28px}h2,.section-title h2,.table-toolbar h2{font-size:20px}h3{font-size:16px}.modal-heading h2{font-size:22px}.eyebrow,.mini-tag{font-size:11px;line-height:1.4;font-weight:500;letter-spacing:.08em;color:var(--ng-graphite-700)}.muted,.footnote{color:var(--muted)}strong,b{font-weight:600}.page-heading{margin-bottom:24px}.page-heading .muted{font-size:14px;line-height:1.5}.panel,dialog,.task-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:none}
:is(.primary,.secondary,.edit-button,.danger,.notification-button){min-height:40px;padding:9px 20px;border-radius:32px;border:1px solid transparent;font-size:14px;line-height:1.35;font-weight:500;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-decoration:none}.primary,.login-box .primary{background:var(--primary);color:white}.primary:hover,.login-box .primary:hover{background:var(--primary-hover)}:is(.secondary,.edit-button,.notification-button){background:#5266eb12;color:var(--ink);border-color:transparent}:is(.secondary,.edit-button,.notification-button):hover{background:#5266eb20}.danger{background:var(--danger-bg);color:var(--danger);border-color:#efd0d8}.danger:hover{background:#f9dce4}.text-button{border-radius:24px;padding:8px 12px;font-size:13px;line-height:1.4;min-height:36px;color:var(--primary);background:transparent}.text-button:hover{background:var(--primary-soft)}.company-delete,.project-remove{color:var(--danger)}button:disabled{opacity:.5;cursor:not-allowed}.close{width:36px;height:36px;border-radius:50%;background:#f0eff6;color:var(--muted)}:is(button,input,textarea,select,summary):focus-visible{outline:2px solid var(--primary);outline-offset:3px}
input:not([type=checkbox]):not([type=radio]),select,textarea{background:var(--surface);color:var(--ink);border:1px solid #cbc9da;border-radius:12px;padding:11px 14px;font-size:14px;line-height:1.45;min-height:44px;box-sizing:border-box}input[type=search]{border-radius:32px}textarea{min-height:90px;resize:vertical}input:disabled,select:disabled,textarea:disabled{background:#f3f2f7;color:var(--muted)}input[type=checkbox],input[type=radio]{accent-color:var(--primary);flex-shrink:0}form label{font-size:13px;font-weight:500;color:#554e7b;margin-bottom:20px}input::placeholder,textarea::placeholder{color:#777282;font-size:13px}.form-grid{gap:0 20px}.modal-heading,.modal-body{padding:24px 28px}.modal-heading{background:var(--surface-tint);border-bottom:1px solid var(--line)}.modal-footer{background:var(--surface-tint);border-top:1px solid var(--line);gap:10px}.record-page-actions.modal-footer{background:transparent;border:0;padding:0}.info{background:var(--info-bg);color:var(--info);border-color:#dedcf2}.error{background:var(--danger-bg);color:var(--danger)}
aside{background:var(--night);color:#ededf3}.brand-mark{background:var(--primary);color:#fff}.brand strong{color:#ededf3}.brand small,.sidebar-bottom{color:#aaa8bb}.nav-group summary{color:#bab7cc;font-size:11px}.nav-group summary:hover{color:#fff}.nav-item{color:#d2cfdf;min-height:40px;border-radius:8px}.nav-item>span{color:#aaa7c0;display:inline-flex;width:20px;align-items:center;justify-content:center}.nav-item.active{background:#5266eb28;box-shadow:inset 3px 0 var(--primary);color:#fff}.nav-item.active>span{color:#b5bfff}.nav-item:hover{background:#ffffff0d}.ui-icon{display:inline-block;vertical-align:middle;flex-shrink:0}.module-icon .ui-icon{width:24px;height:24px}.status-dot{background:#9cb4e8}.avatar{background:var(--primary-soft);color:#554e7b}header{background:var(--surface);border-color:var(--line)}.notification-button.has-unread{background:var(--primary-soft);color:#394cb4;border-color:#d9daf7}.workspace-footer{color:var(--muted)}
.badge,.loan-badge,.request-status{border-radius:999px;padding:4px 10px;font-size:11px;font-weight:500;line-height:1.4;border:1px solid var(--line);background:#f2f1f6;color:#656176}.badge.green,.badge.admin,.loan-badge.paid,.request-completed{background:#edecfb;color:#4654a3;border-color:#dcdcf3}.badge.gray,.loan-badge.upcoming,.request-new{background:#f3f2f7;color:#656176;border-color:#e4e2ed}.loan-badge.due,.request-in_progress{background:#e9edff;color:#394db2;border-color:#d3dbfc}.loan-badge.overdue,.task-important{background:var(--danger-bg);color:var(--danger);border-color:#efd0d8}.task-overdue{color:var(--danger)}.task-lane{background:#f4f3f9;border-color:var(--line)}.task-dot{background:#aaa7ba}.task-dot.in_progress{background:var(--primary)}.task-dot.completed{background:#7c80b7}.task-card:hover{border-color:#9ba5ed}.task-history article{border-color:#9cb4e8}
.table-scroll th{background:var(--surface-tint);color:#554e7b;font-size:12px;font-weight:500;padding:14px 20px}.table-scroll td{font-size:13px;padding:18px 20px;border-color:var(--line)}.table-scroll tbody tr:hover{background:#faf9ff}.company-title,.request-title{color:var(--ink)}.company-account-grid>div,.project-balances>div{background:var(--surface-tint);border-color:var(--line)}.company-account-grid strong,.loan-event-amount{color:var(--ink)}.record-detail-surface>.modal-heading{background:var(--surface-tint)}.shared-agenda{background:#f5f4fb}.loan-day.selected{background:var(--primary-soft);border-color:#c9cef4}.loan-day.is-today .loan-day-number{background:var(--primary);color:#fff}.loan-day-blank{background:#faf9fd}.loan-calendar-week{background:var(--surface-tint)}.loan-day-event.task,.loan-day-event.installment{background:#edf0fc;color:#4e5794}.loan-day-event.meeting,.loan-day-event.bch{background:#edecfb;color:#635087}.loan-day-event.reminder{background:#f2edf7;color:#70557d}.loan-dot.installment{background:#6177bd}.loan-dot.bch{background:#8c79a9}.loan-dot.reminder{background:#9b7da1}.notification-item.unread{border-left-color:var(--primary);background:#f6f5fd}.loan-alert-panel{background:#f8f7fd;border-color:var(--line)}.loan-alert-item.due,.loan-alert-item.overdue{border-color:#dfd9ee;background:#fbf9fe}.loan-alert-item b{color:var(--ink)}.loan-alert-clear{background:#f2f1fa;color:#554e7b}
.finance-sales,.finance-sales-key{fill:var(--primary);background:var(--primary)}.finance-purchases,.finance-purchases-key{fill:#a49ac9;background:#a49ac9}.finance-card-icon.sales,.finance-card-icon.net{background:var(--primary-soft);color:#5266b5}.finance-card-icon.purchases{background:#f0edf8;color:#7a689a}.finance-card strong{color:var(--ink)}.finance-month.is-selected .finance-month-hit{fill:#f3f2fc}.finance-month.is-selected .finance-month-label{fill:#554e7b}.finance-month:hover .finance-sales{fill:#4054d5}.login-story{background:var(--night)}.login-form{background:var(--canvas)}.login-story .eyebrow,.story-note{color:#b3bae5}.story-rule{background:var(--primary)}.login-story h1{color:#ededf3}.login-story p:not(.eyebrow){color:#c3c3cc}.chat-sidebar,.chat-conversation-list{background:var(--surface-tint)}.chat-message.mine{background:var(--primary-soft);color:var(--ink)}#toast{background:var(--night);box-shadow:0 5px 15px #17172112}
@media(max-width:760px){h1,.page-heading h1,.record-detail-surface .modal-heading h1{font-size:24px}h2,.section-title h2{font-size:18px}.modal-heading,.modal-body{padding:20px}:is(.primary,.secondary,.edit-button,.danger,.notification-button){min-height:44px;padding:10px 16px;font-size:13px}.home-calendar-compact .loan-day{min-height:32px}.nav-item{min-height:44px}.text-button{min-height:40px}}
.chat-layout{--chat-green:var(--primary);box-shadow:none;border-color:var(--line)}.chat-layout :is(.chat-top,.chat-composer-wrap){background:var(--surface-tint);border-color:var(--line)}.chat-message.is-own,.chat-message.is-own .chat-bubble{background:var(--primary-soft);color:var(--ink)}.chat-bubble{color:var(--ink);border-color:var(--line)}.chat-send{background:var(--primary);color:white;border-radius:50%}.chat-send:hover{background:var(--primary-hover)}.chat-tabs button.active,.chat-conversation.selected{background:var(--primary-soft);color:#4956ad}.chat-icon-button{color:var(--muted)}.chat-icon-button:hover,#chat-person{color:var(--primary);background:var(--primary-soft);border-color:transparent}.chat-search-box{background:var(--surface-tint);border-color:var(--line)}.chat-composer{border-color:var(--line);box-shadow:none}.chat-composer:focus-within{border-color:var(--primary);box-shadow:none}.chat-composer textarea{background:transparent;border:0;min-height:36px;color:var(--ink)}.announcement-title,.request-title,.company-title{font-weight:500}.announcement-tab.selected,.pinned-badge{border-color:#dcdcf3;background:var(--primary-soft);color:#4956ad}.task-card strong{font-weight:500}.finance-card-value,.stats strong{font-weight:500}
.badge.status-todo{background:#f3f2f7;color:#656176;border-color:#e4e2ed}.badge.status-in_progress{background:#e9edff;color:#394db2;border-color:#d3dbfc}.badge.status-completed{background:#edecfb;color:#4654a3;border-color:#dcdcf3}
dialog::backdrop{background:#17172180}.announcement-pin-option,.loan-plan-row{background:var(--surface-tint)}.profile-button strong{font-weight:500}.notification-item.unread{border-left-color:var(--primary)}
.nav-module-row{display:flex;align-items:center;gap:2px;min-width:0}.nav-module-row .nav-item{flex:1;min-width:0;width:auto;gap:10px}.nav-item>span.nav-module-label{display:block;width:auto;text-align:left;line-height:1.4;color:inherit;font-size:12px;flex:1;overflow-wrap:anywhere}.favorite-toggle{width:30px;height:34px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:6px;border:0;border-radius:8px;background:transparent;color:#89859d;cursor:pointer}.favorite-toggle:hover,.favorite-toggle:focus-visible{background:#5266eb26;color:#d2d7ff}.favorite-toggle.is-favorite{color:#a8b4ff}.favorite-toggle.is-favorite svg{fill:#5266eb40}.nav-favorites{border-bottom:1px solid #ffffff14;padding:0 0 16px;margin-bottom:16px}.nav-favorites-title{display:flex;align-items:center;gap:9px;color:#c4c0d6;font-size:11px;font-weight:500;margin:0 10px 12px}.nav-favorites-title svg{width:15px;height:15px;color:#a8b4ff}.nav-favorites-empty{color:#aaa5bd;font-size:11px;line-height:1.6;padding:0 10px;margin:0}@media(max-width:760px){.nav-favorites{grid-column:1/-1}.favorite-toggle{width:40px;min-height:44px}.nav-module-row .nav-item{width:auto}.nav-module-row .nav-module-label{font-size:12px}}
.favorite-sort-main{display:flex;align-items:center;min-width:0}.favorite-sort-main>.nav-module-row{flex:1;min-width:0}.favorite-drag-handle{flex-shrink:0;width:20px;padding:4px 0;border:0;border-radius:6px;background:transparent;color:#89859d;cursor:grab;font-size:20px;touch-action:auto}.favorite-drag-handle:active{cursor:grabbing}.favorite-drag-handle:hover{color:#d2d7ff}.favorite-sort-item{border-radius:8px;border:1px solid transparent}.favorite-drop-target{border-color:#9cb4e8;background:#5266eb24}.favorite-dragging{opacity:.5}.favorite-moves{display:flex;justify-content:flex-end;gap:4px;padding-right:4px}.favorite-moves button{border:0;background:transparent;color:#b7b3ca;border-radius:6px;min-height:24px;width:28px;cursor:pointer}.favorite-moves button:hover{background:#5266eb26;color:#fff}.favorite-moves button:disabled{opacity:.2;cursor:default}@media(max-width:760px){.favorite-moves button{min-height:44px;width:44px}.favorite-drag-handle{min-height:44px;width:24px}}
.favorite-drag-handle{touch-action:none;user-select:none}
.global-search-trigger{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 14px;border:1px solid var(--line);background:var(--surface-tint);color:var(--muted);border-radius:32px;cursor:pointer;margin-left:auto;font-size:12px}.global-search-trigger kbd{font:10px inherit;color:#777282;background:#f0eef7;padding:3px 5px;border-radius:4px}.global-search-trigger .ui-icon{width:17px;height:17px}.global-search-body input[type=search]{width:100%;font-size:16px}.search-group{margin-top:22px}.search-group h3{font-size:13px;display:flex;gap:8px;align-items:center;color:var(--muted)}.global-search-result{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:var(--surface);color:var(--ink);border:0;border-bottom:1px solid var(--line);padding:14px 8px;cursor:pointer;border-radius:8px}.global-search-result:hover,.global-search-result:focus-visible{background:var(--primary-soft)}.global-search-result>span:nth-child(2){flex:1;min-width:0}.global-search-result strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.global-search-result small{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.search-result-icon{color:var(--primary);padding:10px;background:var(--surface-tint);border-radius:10px}.search-result-arrow{color:var(--muted)}#global-search-results{max-height:55vh;overflow-y:auto}@media(max-width:1100px){.global-search-trigger kbd{display:none}}@media(max-width:760px){.global-search-trigger span{display:none}.global-search-trigger{padding:8px;min-width:38px;flex-shrink:0;margin-left:0}header{gap:6px}.global-search-body{padding:18px}.global-search-result{gap:9px}.search-result-icon{padding:6px}}
.search-project-document{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:12px}.search-project-document .global-search-result{border:0}.search-document-actions{display:flex;gap:8px;padding-left:60px;flex-wrap:wrap}.search-document-actions .secondary{font-size:12px;min-height:36px;padding:7px 14px}.search-file-highlight{outline:2px solid var(--primary);outline-offset:6px;border-radius:8px;background:var(--surface-tint)}@media(max-width:760px){.search-document-actions{padding-left:8px}.search-document-actions .secondary{min-height:44px}}
/* Make navigation groups visibly expandable. */
aside .nav-group{margin:10px 0}aside .nav-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 12px;background:#ffffff08;border:1px solid #ffffff12;border-radius:9px;color:#d2cfdf;font-size:12px;font-weight:500;letter-spacing:0;cursor:pointer;list-style:none;user-select:none}aside .nav-group>summary:hover{background:#5266eb28;border-color:#9cb4e85c;color:#fff}aside .nav-group>summary>span{transform:none}aside .nav-group>summary>.nav-group-name{flex:1;line-height:1.4}aside .nav-group>summary>.nav-group-chevron{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:6px;background:#ffffff0a;color:#bcb7d0;flex-shrink:0}aside .nav-group[open]>summary{background:#5266eb21;border-color:#5266eb45;color:#e3e5ff}aside .nav-group[open]>summary>.nav-group-chevron{background:#5266eb30;color:#b8c3ff}aside .nav-group[open]>summary .nav-group-chevron svg{transform:rotate(90deg)}aside .nav-group-children{margin:8px 0 12px 9px;padding-left:7px;border-left:1px solid #7a78a252}aside .nav-group-children .nav-module-row .nav-item{padding:10px 8px}aside .nav-group-children .favorite-toggle{width:26px}.nav-group>summary:focus-visible{outline:2px solid #9cb4e8;outline-offset:3px}@media(prefers-reduced-motion:no-preference){aside .nav-group-chevron svg{transition:transform .18s ease}}@media(max-width:760px){aside nav{grid-template-columns:1fr}aside .nav-group{width:100%;margin:5px 0}aside .nav-group>summary{min-height:48px;font-size:13px}aside .nav-group-children .favorite-toggle{width:40px}}
aside .nav-group:not([open])>summary>span,aside .nav-group[open]>summary>span{transform:none}aside .nav-group:not([open])>summary .nav-group-chevron svg{transform:rotate(0deg)}
.nav-home-standalone{padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid #ffffff14}.nav-home-standalone .nav-item{min-height:44px}.nav-home-standalone .nav-module-label{font-size:13px;font-weight:500}@media(max-width:760px){.nav-home-standalone{grid-column:1/-1}}
.sidebar-brand-row{display:flex;align-items:center;position:relative;flex-shrink:0}.sidebar-brand-row .brand{flex:1;min-width:0}.sidebar-toggle{display:flex;align-items:center;justify-content:center;position:absolute;right:-8px;top:54px;width:28px;height:28px;padding:4px;background:#2a293c;color:#c6c4db;border:1px solid #ffffff18;border-radius:8px;cursor:pointer;z-index:2}.sidebar-toggle:hover{background:#5266eb55;color:white}@media(min-width:761px){.shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}.sidebar-collapsed aside{width:76px;padding:24px 10px}.sidebar-collapsed .sidebar-brand-row .brand{padding:0 0 40px;justify-content:center;margin:0;border:0}.sidebar-collapsed .brand>div{display:none}.sidebar-collapsed .brand-mark{width:36px;height:36px;flex-shrink:0;font-size:21px}.sidebar-collapsed .sidebar-toggle{right:14px;top:46px}.sidebar-collapsed aside nav{margin-top:8px}.sidebar-collapsed .nav-group{margin:8px 0}.sidebar-collapsed .nav-group>summary{display:none}.sidebar-collapsed .nav-group:not([open])>.nav-group-children{display:block}.sidebar-collapsed .nav-group>.nav-group-children{margin:0;padding:0;border:0}.sidebar-collapsed .nav-module-row .nav-item{padding:12px;min-width:0;width:44px;min-height:44px;justify-content:center;flex:none;margin:2px auto}.sidebar-collapsed .nav-item>.nav-module-label,.sidebar-collapsed .favorite-toggle,.sidebar-collapsed .favorite-drag-handle,.sidebar-collapsed .nav-favorites-title,.sidebar-collapsed .nav-favorites-empty,.sidebar-collapsed .sidebar-bottom{display:none}.sidebar-collapsed .nav-module-row{justify-content:center}.sidebar-collapsed .nav-home-standalone{padding-bottom:8px;margin-bottom:8px}.sidebar-collapsed .nav-favorites{padding-bottom:8px;margin-bottom:8px}.sidebar-collapsed .favorite-sort-item{border:0}.sidebar-collapsed .nav-item>span{width:20px}.sidebar-collapsed aside nav .nav-group{border-top:1px solid #ffffff12;padding-top:6px}.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}}@media(max-width:760px){.sidebar-brand-row{width:100%}.sidebar-brand-row .brand{width:100%}.sidebar-toggle{display:none}}
.mobile-nav-trigger,.mobile-nav-close,.mobile-nav-backdrop{display:none}@media(max-width:760px){.shell>aside{position:fixed;inset:0 auto 0 0;width:min(300px,86vw);height:100dvh;display:block;overflow-y:auto;overscroll-behavior:contain;z-index:121;padding:24px 18px;transform:translateX(-105%);visibility:hidden;box-sizing:border-box}.shell.mobile-nav-open>aside{transform:translateX(0);visibility:visible}.shell .workspace{width:100%;min-width:0}.mobile-nav-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;min-height:42px;padding:7px;border:1px solid var(--line);border-radius:10px;background:var(--surface-tint);color:var(--ink);cursor:pointer}.mobile-nav-close{display:flex;align-items:center;justify-content:center;position:absolute;top:15px;right:12px;width:34px;height:34px;border:1px solid #ffffff22;border-radius:9px;color:#ededf3;background:#ffffff0c;font-size:23px;cursor:pointer;z-index:3}.mobile-nav-backdrop{position:fixed;inset:0;width:100%;height:100dvh;padding:0;border:0;background:#17172180;z-index:120}.mobile-nav-open>.mobile-nav-backdrop{display:block}.mobile-nav-lock{overflow:hidden}.shell aside .sidebar-brand-row{padding-top:16px}.shell aside .brand{margin-bottom:18px;padding-bottom:18px}.shell aside nav{display:block;margin-top:12px}.shell aside .nav-item{width:auto;font-size:13px}.shell aside .sidebar-bottom{display:none}.shell header>div:first-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.shell header{height:64px;gap:5px;padding:0 10px}.shell header .crumb{margin:0 3px}.shell header .profile-button{padding:0}.shell header .avatar{width:28px;height:28px;font-size:11px}.shell header .notification-button{padding:6px;font-size:10px;min-height:38px}.shell header #logout{padding:5px;font-size:10px;min-height:38px}.shell header .global-search-trigger{min-width:32px;padding:6px}.shell .content{width:100%;box-sizing:border-box}.mobile-nav-open .mobile-nav-trigger{color:var(--primary)}}@media(max-width:400px){.shell header>div:first-of-type{display:none}.shell header .global-search-trigger{margin-left:auto}}@media(prefers-reduced-motion:no-preference) and (max-width:760px){.shell>aside{transition:transform .2s ease,visibility .2s}}
@media(max-width:760px){.table-scroll:has(>.mobile-card-list){overflow:visible;padding:0 14px 14px}.mobile-card-list,.table-scroll .mobile-card-list{display:block;width:100%;min-width:0;max-width:100%;border:0;background:transparent}.mobile-card-list>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-card-list>tbody{display:grid;gap:14px;width:100%;min-width:0}.mobile-card-list>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;min-width:0;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface);box-shadow:none}.table-scroll .mobile-card-list>tbody>tr:hover{background:var(--surface)}.table-scroll .mobile-card-list>tbody>tr>td{display:block;border:0;padding:0;min-width:0!important;max-width:100%;width:auto;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:13px}.mobile-card-list td[data-card-label]:before{content:attr(data-card-label);display:block;font-size:11px;font-weight:500;color:var(--muted);margin-bottom:6px}.mobile-card-list>tbody>tr>td:first-child{grid-column:1/-1;padding-bottom:12px;border-bottom:1px solid var(--line)}.mobile-card-list>tbody>tr>td:first-child:before,.mobile-card-list>tbody>tr>td:last-child:before{display:none}.mobile-card-list .company-title{font-size:16px;max-width:100%;white-space:normal;line-height:1.5;overflow-wrap:anywhere}.mobile-card-list td small{display:block;font-size:12px;margin-top:5px;white-space:normal;overflow-wrap:anywhere}.mobile-card-list>tbody>tr>td:last-child{grid-column:1/-1;padding-top:12px;border-top:1px solid var(--line)}.mobile-card-list>tbody>tr>td:last-child>button{width:100%;min-height:44px;justify-content:center;display:flex;background:var(--primary-soft);border-radius:24px;color:var(--primary)}.mobile-card-list .company-tags{display:flex;gap:5px;flex-wrap:wrap}.mobile-card-list .company-account-mini{gap:6px;display:flex;flex-direction:column}.mobile-card-list .company-account-mini span{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.mobile-card-list>tbody>tr>td[colspan]{grid-column:1/-1;border:0;padding:0}.mobile-card-list td[colspan] .empty{padding:20px 8px}.mobile-list-panel,.loan-list-panel{background:var(--surface-tint)}.mobile-list-panel .filters,.loan-list-panel .filters{display:flex;flex-direction:column;width:100%;gap:10px}.mobile-list-panel .filters>input,.mobile-list-panel .filters>select,.loan-list-panel .filters>input,.loan-list-panel .filters>select{width:100%;min-width:0;max-width:100%}.mobile-list-panel .table-toolbar,.loan-list-panel .table-toolbar{padding:18px 14px}.mobile-list-panel .table-footer{padding:12px 16px}.mobile-card-list .badge{display:inline-flex;max-width:100%;white-space:normal}.mobile-card-list>tbody>tr:has(>td[colspan]){grid-template-columns:1fr}}
@media(max-width:760px){.record-page,.record-detail-surface,.project-layout,.project-layout>div,.project-section,.loan-detail-section{min-width:0;max-width:100%;box-sizing:border-box}.table-scroll:has(>.mobile-detail-table){overflow:visible;max-width:100%;padding:0}.table-scroll>.mobile-detail-table{display:block;width:100%;min-width:0;max-width:100%;border:0}.mobile-detail-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-detail-table>tbody{display:grid;gap:14px;min-width:0;width:100%}.mobile-detail-table>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-tint);min-width:0;max-width:100%}.table-scroll .mobile-detail-table>tbody>tr>td{display:block;min-width:0!important;max-width:100%;width:auto;padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.mobile-detail-table td[data-card-label]:before{content:attr(data-card-label);display:block;color:var(--muted);font-weight:500;font-size:11px;margin-bottom:5px}.mobile-detail-table>tbody>tr>td:first-child{border-bottom:1px solid var(--line);padding-bottom:10px}.mobile-detail-table>tbody>tr>td:first-child:before{display:none}.mobile-detail-table td small{display:block;font-size:12px;line-height:1.7;margin-top:4px;white-space:normal;overflow-wrap:anywhere}.mobile-detail-table>tbody>tr>td:last-child:has(button){display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px}.mobile-detail-table>tbody>tr>td:last-child:has(button):before{display:none}.mobile-detail-table td button:not(.company-title){min-height:44px;white-space:normal;line-height:1.4;flex:1 1 120px;max-width:100%;justify-content:center}.mobile-detail-table .company-title{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:100%;font-size:16px}.mobile-detail-table>tbody>tr>td[colspan]{border:0;padding:0}.record-detail-surface .company-account-grid{grid-template-columns:minmax(0,1fr);gap:10px}.record-detail-surface .company-account-grid strong{font-size:20px;white-space:normal;overflow-wrap:anywhere}.record-detail-surface .company-details{min-width:0;max-width:100%}.record-detail-surface .company-details dd{white-space:normal;overflow-wrap:anywhere}.record-detail-surface .section-title,.project-section .section-title{align-items:flex-start;flex-wrap:wrap;gap:12px}.record-detail-surface .section-title h3,.project-section .section-title h2{width:100%}.record-detail-surface .project-item,.project-section .project-item{display:block;min-width:0;max-width:100%;padding:16px;background:var(--surface-tint);border:1px solid var(--line);border-radius:12px;margin:12px 0;box-sizing:border-box}.record-detail-surface .project-item>div,.project-section .project-item>div{min-width:0;max-width:100%}.record-detail-surface .project-item strong,.project-section .project-item strong,.record-detail-surface .project-item small,.project-section .project-item small{white-space:normal;overflow-wrap:anywhere}.record-detail-surface .project-item>div:last-child,.project-section .project-item-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}.record-detail-surface .project-item button,.project-section .project-item button{min-height:44px;max-width:100%;white-space:normal;justify-content:center}.loan-bch-row{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0;max-width:100%}.loan-bch-row>div{min-width:0;max-width:100%}.loan-bch-row strong,.loan-bch-row small{white-space:normal;overflow-wrap:anywhere}.loan-bch-row button{min-height:44px;width:100%;white-space:normal}.record-page-actions.modal-footer{width:100%;justify-content:flex-start;gap:8px}.record-page-actions button,.project-heading-actions button{min-height:44px;white-space:normal;max-width:100%}.project-timeline{overflow-wrap:anywhere}.project-change-details>div,.loan-history-details{min-width:0;overflow-wrap:anywhere}.project-section{padding:16px}.record-detail-surface>.modal-body{padding:18px}.search-file-highlight{outline-offset:2px}}
@media(max-width:760px){.mobile-card-list.stocks-table>tbody>tr>td:nth-child(2){grid-column:1/-1;order:-2;padding-bottom:10px;border-bottom:1px solid var(--line)}.mobile-card-list.stocks-table>tbody>tr>td:nth-child(2):before{display:none}.mobile-card-list.stocks-table>tbody>tr>td:first-child{order:-1;display:flex;gap:8px;align-items:center;border:0;padding:0 0 6px;min-height:40px}.mobile-card-list.stocks-table>tbody>tr>td:first-child:after{content:'İşlem hesabı için seç';font-size:12px;color:var(--muted)}.mobile-card-list.stocks-table input[type=checkbox]{width:20px;height:20px;margin:0}.mobile-card-list.analysis-list>tbody>tr>td:nth-child(2){grid-column:1/-1}.mobile-card-list .analysis-excerpt{display:block;white-space:normal;overflow:visible;-webkit-line-clamp:unset;max-width:100%;overflow-wrap:anywhere}.mobile-list-panel .table-toolbar>input[type=search]{width:100%;min-width:0;max-width:100%}.mobile-list-panel .table-toolbar>div{min-width:0;max-width:100%}.mobile-list-panel #calculate-stocks{width:100%;white-space:normal;margin:12px 0}.mobile-card-list strong{white-space:normal;overflow-wrap:anywhere}dialog .company-account-grid{grid-template-columns:minmax(0,1fr);gap:10px}dialog .company-account-grid strong{font-size:20px;white-space:normal;overflow-wrap:anywhere}dialog .modal-heading h2,dialog .company-notes,dialog .stock-history{white-space:normal;overflow-wrap:anywhere}dialog .modal-footer{display:flex;flex-wrap:wrap;gap:8px}dialog .modal-footer>button{flex:1 1 120px;min-height:44px;white-space:normal;line-height:1.4}dialog .modal-body{min-width:0}dialog form label,dialog form input,dialog form select,dialog form textarea{min-width:0;max-width:100%;box-sizing:border-box}.production-input-row{grid-template-columns:minmax(0,1fr);padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-tint)}.production-input-row label:first-child,.production-input-row .production-input-balance{grid-column:1}.production-input-row label{margin-bottom:4px}.production-input-row button{min-height:44px;margin:0}.production-form-section .section-title{flex-wrap:wrap;gap:10px}.production-form-section .section-title h3{width:100%}.production-form-section #add-production-input{width:100%;white-space:normal}#analysis-files .document-row-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}#analysis-files .document-row-actions button{flex:1 1 120px;min-height:44px}#analysis-files td:first-child{min-width:0!important;max-width:100%}.analysis-history,.analysis-history li,.stock-history,.fx-preview{overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}.analysis-more button{width:100%;white-space:normal;min-height:44px}}
@media(max-width:760px){.announcement-board{overflow:visible}.announcement-toolbar{flex-direction:column;align-items:stretch;gap:14px;padding:16px;min-width:0}.announcement-toolbar input[type=search]{width:100%;max-width:100%;min-width:0}.announcement-tabs{display:flex;flex-wrap:wrap;gap:8px}.announcement-tab{flex:1;min-height:44px;padding:10px 12px;white-space:normal;border-radius:24px}.announcement-card,.announcement-card.is-pinned{margin:0 12px 14px;padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--surface)}.announcement-card.is-pinned{border-left:3px solid var(--primary);background:var(--surface-tint)}.announcement-card h2{font-size:18px}.announcement-card h3{font-size:16px}.announcement-title,.announcement-detail-title,.announcement-excerpt,.announcement-body,.announcement-meta{max-width:100%;overflow-wrap:anywhere;white-space:normal}.announcement-body{white-space:pre-wrap;line-height:1.8;font-size:14px}.announcement-labels{flex-wrap:wrap}.announcement-footer{flex-direction:column;align-items:stretch;gap:10px}.announcement-read{min-height:44px;text-align:left}.announcement-actions{display:flex;flex-wrap:wrap;gap:6px;width:100%}.announcement-actions .text-button{min-height:44px;flex:1 1 100px;background:var(--surface-tint);white-space:normal;padding:10px}.mobile-card-list .document-identity{display:flex;gap:10px;min-width:0;max-width:100%;align-items:flex-start}.mobile-card-list .document-identity>div{min-width:0;max-width:100%}.mobile-card-list .document-title,.mobile-card-list .request-title{font-size:16px;max-width:100%;width:auto;white-space:normal;overflow-wrap:anywhere}.mobile-card-list .document-icon{flex-shrink:0}.mobile-card-list .document-row-actions{display:flex;gap:8px;flex-wrap:wrap;width:100%}.mobile-card-list .document-row-actions>button{min-height:44px;flex:1 1 100px;white-space:normal;max-width:100%}.mobile-card-list td:last-child .document-delete,.mobile-card-list .document-row-actions .document-delete{color:var(--danger)}.request-summary{gap:8px;margin-bottom:18px}.request-summary-item{padding:14px 10px;min-width:0}.request-summary-item span{font-size:11px;white-space:normal}.request-summary-item strong{font-size:24px}.request-summary-item{border-radius:12px}.document-current{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:10px}.document-current strong{overflow-wrap:anywhere;white-space:normal;min-width:0;max-width:100%}.document-current small{white-space:normal}.document-details,.request-details{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin:20px 0;min-width:0;max-width:100%;font-size:13px}.document-details dd,.request-details dd{margin:0 0 12px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.document-details dt,.request-details dt{color:var(--muted);font-size:11px}.document-description,.request-body,.request-history,.request-history li,.request-history p,.request-history small,.document-existing{max-width:100%;white-space:normal;overflow-wrap:anywhere}.request-body,.document-description{white-space:pre-wrap;line-height:1.8;font-size:14px}.request-steps{flex-direction:column;gap:10px}.request-steps li{flex:none;width:100%;min-width:0;font-size:13px}.request-steps li:not(:last-child):after{display:none}.request-status-form .primary{width:100%;min-height:44px;white-space:normal}.request-completed-note{white-space:normal;overflow-wrap:anywhere}.announcement-pin-option{min-width:0;max-width:100%;box-sizing:border-box}.announcement-pin-option input{flex-shrink:0}.document-current .document-icon{flex-shrink:0}#request-form textarea,#document-form textarea,#announcement-form textarea{width:100%;min-width:0}.request-detail-footer,.company-detail-footer{flex-wrap:wrap}}
.calendar-mobile-count{display:none}@media(max-width:760px){.task-board{grid-template-columns:minmax(0,1fr);gap:16px}.task-lane{padding:14px;min-height:100px;min-width:0}.task-lane h2{font-size:15px;flex-wrap:wrap}.task-card{padding:16px;max-width:100%;box-sizing:border-box}.task-card strong{font-size:16px}.task-card p{font-size:14px;line-height:1.7}.task-card-bottom{font-size:12px;line-height:1.6;gap:10px}.task-toolbar{padding:14px;gap:10px}.task-toolbar>input,.task-toolbar>select{width:100%!important;min-width:0!important;max-width:100%}.task-description,.task-history{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.task-history article{padding:10px 12px;margin:12px 0}.task-history small{line-height:1.7}.task-detail-meta{flex-wrap:wrap}.shared-calendar{padding:12px;min-width:0;max-width:100%;box-sizing:border-box}.shared-calendar .loan-calendar-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:0}.shared-calendar .loan-calendar-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;width:100%;min-width:0}.shared-calendar .loan-calendar-controls input{width:100%;min-width:0;max-width:100%;min-height:44px;padding:8px}.shared-calendar .loan-calendar-controls button{min-height:44px;min-width:0;padding:8px;white-space:normal}.shared-calendar [data-calendar-add],.shared-calendar [data-calendar-today],.shared-calendar [data-calendar-open]{grid-column:1/-1}.shared-calendar-filters{gap:10px;margin-top:16px;min-width:0}.shared-calendar-filters>label{width:100%;display:block;min-width:0}.shared-calendar-filters select{width:100%;min-height:44px;margin-top:6px;max-width:100%}.shared-calendar .loan-calendar-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:14px}.shared-calendar .loan-calendar-days,.shared-calendar .loan-calendar-week{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;width:100%}.shared-calendar .loan-day{min-width:0;min-height:56px;padding:4px;overflow:hidden}.shared-calendar .loan-day-blank{min-height:56px}.shared-calendar .loan-day-event,.shared-calendar .loan-day>small{display:none}.calendar-mobile-count{display:block;font-size:9px;line-height:1.4;color:var(--primary);white-space:normal;margin-top:4px}.shared-calendar .loan-day-number{font-size:12px}.shared-calendar .loan-calendar-week>span{font-size:10px;padding:8px 0}.shared-agenda{padding:16px;max-width:100%;min-width:0}.shared-agenda .loan-agenda-item{min-width:0;overflow-wrap:anywhere}.shared-agenda h3{font-size:16px}.shared-agenda button{min-height:44px;width:100%;justify-content:center;white-space:normal}.shared-agenda .loan-event-amount{font-size:20px;overflow-wrap:anywhere}.event-people{padding:12px;min-width:0}.event-people label{min-height:44px;overflow-wrap:anywhere}.home-calendar-compact .shared-calendar .loan-day,.home-calendar-compact .shared-calendar .loan-day-blank{height:36px;min-height:36px}.home-calendar-compact .calendar-mobile-count{display:none}.home-calendar-compact .shared-agenda{max-height:none}.chat-page{height:calc(var(--app-viewport-height,100dvh) - 64px);min-height:0;box-sizing:border-box;display:flex;flex-direction:column;padding:16px 10px 10px!important}.workspace:has(.chat-page)>.workspace-footer{display:none}.chat-page-heading{flex-shrink:0;margin-bottom:12px}.chat-page-heading h1{font-size:24px}.chat-layout{flex:1;min-height:0;height:auto;max-height:none;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;box-shadow:none}.chat-sidebar,.chat-main{min-width:0;max-width:100%;min-height:0}.chat-sidebar{overflow:hidden}.chat-tabs{flex-wrap:wrap;gap:6px;padding:10px 12px}.chat-tabs button{min-height:40px;font-size:12px;padding:8px 12px}.chat-sidebar-heading{padding:16px 12px}.chat-search-box{margin-left:12px;margin-right:12px;min-width:0}.chat-search-box input{font-size:16px;min-width:0}.chat-top{padding:10px 8px;gap:6px;min-width:0}.chat-back,.chat-top-actions>.chat-icon-button,.chat-top-actions summary{width:40px;height:44px;min-height:44px;padding:9px;flex-shrink:0}.chat-top-identity{flex:1;min-width:0;gap:6px}.chat-top-identity>div{min-width:0}.chat-top h2{font-size:14px;overflow-wrap:anywhere;white-space:normal;line-height:1.4}.chat-top p{font-size:10px;max-width:100%;overflow-wrap:anywhere;white-space:normal}.chat-top-identity>.chat-avatar{width:28px;height:28px;flex-shrink:0}.chat-top-actions{flex-shrink:0;gap:0}.chat-history{min-height:0;padding:8px 10px 14px;overflow-x:hidden}.chat-bubble{min-width:0;max-width:90%;padding:11px 12px}.chat-bubble p{font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message-meta{flex-wrap:wrap;gap:5px;max-width:100%}.chat-composer-wrap{padding:8px;flex-shrink:0;min-width:0}.chat-composer{padding:5px;gap:5px;min-width:0}.chat-composer textarea{font-size:16px;min-height:44px;max-height:120px;padding:10px 2px;line-height:1.5}.chat-send,.chat-composer>.chat-icon-button{width:44px;height:44px;min-height:44px;flex-shrink:0}.chat-composer-footer{font-size:10px;flex-wrap:wrap;line-height:1.4}.chat-conversation{min-height:64px}.chat-conversation>div{min-width:0}.chat-message-search{min-width:0}.chat-message-search .chat-search-box{margin:0;min-width:0}.chat-emoji-picker{max-width:calc(100% - 20px);box-sizing:border-box}.chat-empty{padding:20px;min-width:0}.chat-empty h2,.chat-empty p{overflow-wrap:anywhere}.chat-new{max-width:90%;white-space:normal}.chat-info-heading,.chat-person-row{min-width:0;max-width:100%}}
.permission-option{display:inline-flex;align-items:center;justify-content:center;margin:0;cursor:pointer}.permission-label-text{display:none}@media(max-width:760px){.users-table .person{min-width:0;max-width:100%;gap:10px;align-items:flex-start}.users-table .person>div{min-width:0;max-width:100%}.users-table .person strong,.users-table .person small{white-space:normal;overflow-wrap:anywhere}.users-table .person .avatar{flex-shrink:0}.table-scroll:has(>.permission-table){overflow:visible}.permission-table{display:block;min-width:0;width:100%;max-width:100%;border:0}.permission-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.permission-table>tbody{display:grid;gap:14px;min-width:0;width:100%}.permission-table>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface-tint);min-width:0}.permission-table>tbody>tr>td{display:block;min-width:0;width:auto;border:0;padding:0;text-align:left;white-space:normal}.permission-table>tbody>tr>td:first-child{padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:2px;font-size:15px}.permission-table .permission-option{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:44px;padding:10px 12px;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);box-sizing:border-box;font-size:14px;font-weight:400;color:var(--ink)}.permission-label-text{display:block;overflow-wrap:anywhere}.permission-table input[type=checkbox]{width:20px;height:20px;flex-shrink:0;margin:0}.permission-option:has(input:checked){background:var(--primary-soft);border-color:#cfd3f5}.permission-option:has(input:disabled){cursor:default;opacity:.65}.permission-heading{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}.permission-heading>div{min-width:0;width:100%}.permission-heading #all-rights{min-height:44px;width:100%;background:var(--primary-soft)}.dashboard-permissions{padding:14px;min-width:0;max-width:100%;box-sizing:border-box}.dashboard-permission-options{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.dashboard-permission-options label{display:flex;min-height:44px;gap:12px;padding:10px;box-sizing:border-box;margin:0;min-width:0}.dashboard-permission-options input{width:20px;height:20px;flex-shrink:0}.dashboard-permission-options span{overflow-wrap:anywhere}.audit-panel{padding:14px;background:var(--surface)}.audit-table>tbody>tr>td:first-child{font-size:15px;font-weight:500;overflow-wrap:anywhere}.audit-table td{overflow-wrap:anywhere}#user-form .modal-body,#user-form .wide,#user-form .form-grid{min-width:0;max-width:100%;box-sizing:border-box}#user-form .info{overflow-wrap:anywhere}.audit-table>tbody>tr>td:last-child{font-variant-numeric:tabular-nums}}
.finance-mobile-chart{display:none}@media(max-width:760px){#home-finance,.home-calendar-compact,#home-loan-alerts,.home-tasks{min-width:0;max-width:100%;box-sizing:border-box}#home-finance .finance-chart-wrap{display:none}.finance-mobile-chart{display:block;padding:12px 14px 18px;min-width:0}.finance-mobile-hint{font-size:11px;color:var(--muted);margin:0 0 8px}.finance-mobile-month{display:grid;grid-template-columns:58px minmax(0,1fr) 18px;align-items:center;gap:8px;min-height:44px;width:100%;padding:7px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--ink);text-align:left;font-size:12px;cursor:pointer}.finance-mobile-month.is-selected{background:var(--primary-soft);border-color:#d5d9f5}.finance-mobile-bars{display:flex;flex-direction:column;gap:5px;min-width:0;width:100%;background:linear-gradient(to right,transparent 49.5%,#e7e5ef 50%,transparent 50.5%);min-height:19px;justify-content:center}.finance-mobile-bars i{display:block;height:7px;max-width:100%;border-radius:4px}.mobile-sales{background:var(--primary)}.mobile-purchases{background:#a49ac9}.finance-mobile-zero{color:var(--muted);font-size:11px}.finance-mobile-selected{display:flex;flex-direction:column;gap:9px;margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-tint);min-width:0;font-size:13px}.finance-mobile-selected>span{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.finance-mobile-selected b{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.finance-header{padding:18px 16px 12px;flex-direction:column;align-items:stretch;gap:14px}.finance-header h2{font-size:20px}.finance-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:10px}.finance-controls label{min-width:0;max-width:100%}.finance-controls select{width:100%;min-width:0;max-width:100%;min-height:44px;font-size:14px}.finance-legend{padding:10px 16px;gap:16px;flex-wrap:wrap}.finance-legend>small{display:none}.finance-footnote{padding:12px 16px;font-size:11px;overflow-wrap:anywhere}.finance-method summary,.finance-method p{padding-left:16px;padding-right:16px}.finance-method summary{min-height:44px;box-sizing:border-box;padding-top:10px;font-size:11px}.finance-cards,.finance-cards[data-count="2"],.finance-cards[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.finance-cards[data-count="1"]{grid-template-columns:minmax(0,1fr)}#home-finance .finance-card{padding:14px;min-width:0;box-sizing:border-box}.finance-card strong{font-size:clamp(17px,4.8vw,22px);line-height:1.4;white-space:normal;overflow-wrap:anywhere;max-width:100%;display:block}.finance-card-label{gap:5px;font-size:11px;line-height:1.5;flex-wrap:wrap}.finance-card small{white-space:normal;overflow-wrap:anywhere;line-height:1.6;font-size:11px}.finance-card-icon{width:22px;height:22px;font-size:14px;flex-shrink:0}.finance-summary-controls{padding:16px;min-width:0}.home-greeting{gap:8px;margin:20px 0}.home-greeting h1{font-size:22px}.home-calendar-compact .shared-calendar{padding:12px}.home-calendar-compact .shared-agenda{max-height:none;overflow:visible}.home-calendar-compact .loan-calendar-controls input{width:100%;min-width:0}.home-calendar-compact .shared-calendar .loan-day{height:36px;min-height:36px}.home-task-row{padding:14px 0;min-width:0;max-width:100%;min-height:44px;gap:8px;line-height:1.6}.home-task-row strong{font-size:14px;white-space:normal;overflow-wrap:anywhere;min-width:0}.home-tasks .section-title{gap:8px;flex-wrap:wrap;align-items:flex-start}.home-tasks .section-title h2{font-size:18px}.home-tasks .section-title .text-button{min-height:44px}.loan-alert-panel{padding:16px;max-width:100%;min-width:0;box-sizing:border-box}.loan-alert-panel .section-title{flex-wrap:wrap;gap:10px;align-items:flex-start}.loan-alert-panel .section-title h2{font-size:18px}.loan-alert-panel .section-title>button{width:100%;min-height:44px;white-space:normal}.loan-alert-item{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;min-width:0;max-width:100%;padding:14px 0;text-align:left;box-sizing:border-box}.loan-alert-item>span{min-width:0;max-width:100%}.loan-alert-item>span:last-child{text-align:left;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.loan-alert-item strong,.loan-alert-item small,.loan-alert-item b{white-space:normal;overflow-wrap:anywhere;max-width:100%;line-height:1.6}.loan-alert-item strong{font-size:14px}.loan-alert-item small{font-size:12px}.loan-alert-item b{font-size:12px}.notification-list{padding:16px}.notification-item{padding:14px;min-width:0;max-width:100%;box-sizing:border-box}.notification-item h3{font-size:16px}.notification-item p{white-space:normal;overflow-wrap:anywhere;line-height:1.6}.notification-item button{min-height:44px;max-width:100%;white-space:normal;margin-top:8px}.notification-item>.secondary{width:100%}#home-finance~.home-greeting+#home-calendar{width:100%}}
.finance-mobile-bars svg{display:block;width:100%;height:19px}.finance-mobile-bars .mobile-sales{fill:var(--primary)}.finance-mobile-bars .mobile-purchases{fill:#a49ac9}
/* Audit fix: keep the project ledger wide enough on laptop screens. */
@media(min-width:761px) and (max-width:1700px){.project-layout{grid-template-columns:minmax(0,1fr)}.project-timeline{max-width:none}}
/* Quiet sidebar scrollbar, with the native scrolling behavior preserved. */
#sidebar-navigation{scrollbar-width:thin;scrollbar-color:#65627c #171721;scrollbar-gutter:stable}#sidebar-navigation::-webkit-scrollbar{width:7px}#sidebar-navigation::-webkit-scrollbar-track{background:#171721}#sidebar-navigation::-webkit-scrollbar-thumb{background:#474458;border:2px solid #171721;border-radius:999px}#sidebar-navigation:hover::-webkit-scrollbar-thumb{background:#77728f}#sidebar-navigation::-webkit-scrollbar-thumb:hover{background:#9a94b5}#sidebar-navigation::-webkit-scrollbar-button{display:none;width:0;height:0}#sidebar-navigation::-webkit-scrollbar-corner{background:#171721}#sidebar-navigation:hover{scrollbar-color:#817b9a #171721}@media(forced-colors:active){#sidebar-navigation{scrollbar-color:auto}}
/* Shared scrollbar tokens for pages, dialogs, tables, calendars and chat. */
:root{--scroll-track:#f6f5fa;--scroll-thumb:#c2bed2;--scroll-hover:#9992b0}html{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track);scrollbar-gutter:stable}body *{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}html::-webkit-scrollbar,body *::-webkit-scrollbar{width:8px;height:8px}html::-webkit-scrollbar-track,body *::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:999px}html::-webkit-scrollbar-thumb,body *::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid var(--scroll-track);border-radius:999px}html::-webkit-scrollbar-thumb:hover,body *::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}html::-webkit-scrollbar-button,body *::-webkit-scrollbar-button{display:none;width:0;height:0}html::-webkit-scrollbar-corner,body *::-webkit-scrollbar-corner{background:var(--scroll-track)}#sidebar-navigation{--scroll-track:#171721;--scroll-thumb:#65627c;--scroll-hover:#9a94b5;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}#sidebar-navigation:hover{scrollbar-color:#817b9a var(--scroll-track)}#sidebar-navigation *{scrollbar-color:var(--scroll-thumb) var(--scroll-track)}dialog,.chat-layout,.shared-agenda{--scroll-track:#f6f5fa;--scroll-thumb:#c2bed2;--scroll-hover:#9992b0}@media(forced-colors:active){html,body *,#sidebar-navigation,#sidebar-navigation *{scrollbar-color:auto;scrollbar-width:auto}}
.chat-history,#chat-list,.chat-layout .chat-composer textarea,.shared-agenda,.modal-body{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}.chat-history::-webkit-scrollbar,.chat-layout ::-webkit-scrollbar{width:8px;height:8px}.chat-history::-webkit-scrollbar-track,.chat-layout ::-webkit-scrollbar-track{background:var(--scroll-track)}.chat-history::-webkit-scrollbar-thumb,.chat-layout ::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid var(--scroll-track);border-radius:999px}.chat-history::-webkit-scrollbar-thumb:hover,.chat-layout ::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}@media(forced-colors:active){.chat-history,#chat-list,.chat-layout .chat-composer textarea,.shared-agenda,.modal-body{scrollbar-color:auto;scrollbar-width:auto}}
/* Auto-hide scrollbars without changing gutter width or scroll behavior. */
html,body *{scrollbar-color:transparent transparent!important}html.scrollbar-scrolling,html.scrollbar-hover,body .scrollbar-scrolling,body .scrollbar-hover{scrollbar-color:var(--scroll-thumb) transparent!important}html::-webkit-scrollbar-track,body *::-webkit-scrollbar-track,html::-webkit-scrollbar-corner,body *::-webkit-scrollbar-corner{background:transparent!important}html::-webkit-scrollbar-thumb,body *::-webkit-scrollbar-thumb{background:transparent!important;border-color:transparent!important;border-radius:999px}html.scrollbar-scrolling::-webkit-scrollbar-thumb,html.scrollbar-hover::-webkit-scrollbar-thumb,body .scrollbar-scrolling::-webkit-scrollbar-thumb,body .scrollbar-hover::-webkit-scrollbar-thumb{background:var(--scroll-thumb)!important;border-color:transparent!important;background-clip:padding-box}html.scrollbar-hover::-webkit-scrollbar-thumb:hover,body .scrollbar-hover::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)!important}@media(forced-colors:active){html,body *,html.scrollbar-scrolling,html.scrollbar-hover,body .scrollbar-scrolling,body .scrollbar-hover{scrollbar-color:auto!important}html::-webkit-scrollbar-thumb,body *::-webkit-scrollbar-thumb{background:ButtonText!important}}
/* Animate one inherited color token so native scrollbars fade consistently. */
@property --scrollbar-fade-color{syntax:'<color>';inherits:true;initial-value:transparent}
html,body *{--scrollbar-fade-color:transparent;transition:--scrollbar-fade-color 240ms ease;scrollbar-color:var(--scrollbar-fade-color) transparent!important}html.scrollbar-scrolling,html.scrollbar-hover,body .scrollbar-scrolling,body .scrollbar-hover{--scrollbar-fade-color:var(--scroll-thumb);scrollbar-color:var(--scrollbar-fade-color) transparent!important}html::-webkit-scrollbar-thumb,body *::-webkit-scrollbar-thumb,html.scrollbar-scrolling::-webkit-scrollbar-thumb,html.scrollbar-hover::-webkit-scrollbar-thumb,body .scrollbar-scrolling::-webkit-scrollbar-thumb,body .scrollbar-hover::-webkit-scrollbar-thumb{background:var(--scrollbar-fade-color)!important;border-color:transparent!important}html.scrollbar-hover::-webkit-scrollbar-thumb:hover,body .scrollbar-hover::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-fade-color)!important}@media(prefers-reduced-motion:reduce){html,body *{transition:none!important}}@media(forced-colors:active){html,body *,html.scrollbar-scrolling,html.scrollbar-hover,body .scrollbar-scrolling,body .scrollbar-hover{scrollbar-color:auto!important}html::-webkit-scrollbar-thumb,body *::-webkit-scrollbar-thumb{background:ButtonText!important}}
/* Keep the desktop navigation control in the header, beside the breadcrumb. */
.workspace>header>.sidebar-toggle{position:static;display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:8px;margin-right:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface-tint);color:var(--muted);cursor:pointer;flex-shrink:0}.workspace>header>.sidebar-toggle:hover{background:var(--primary-soft);color:var(--primary)}.workspace>header>.sidebar-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:3px}@media(max-width:760px){.workspace>header>.sidebar-toggle{display:none}}
/* Persistent app controls while the document scrolls. */
.workspace>header{position:sticky;top:0;z-index:80;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 2px 10px #17172106}.workspace{overflow:visible;min-width:0}html{scroll-padding-top:80px}.content [id]{scroll-margin-top:80px}@media(max-width:760px){.workspace>header{position:sticky;top:0;z-index:80;height:64px}.content [id]{scroll-margin-top:76px}html{scroll-padding-top:76px}}
/* Coordinate the rail and content widths; no page rebuild during toggling. */
@media(prefers-reduced-motion:no-preference) and (min-width:761px){.shell{transition:grid-template-columns 260ms cubic-bezier(.22,.68,.25,1)}.shell>aside{transition:width 260ms cubic-bezier(.22,.68,.25,1),padding 260ms cubic-bezier(.22,.68,.25,1),--scrollbar-fade-color 240ms ease;overflow-x:hidden}.workspace>header>.sidebar-toggle svg{transition:transform 260ms ease}.sidebar-brand-row{min-height:76px}}
@media(prefers-reduced-motion:no-preference) and (max-width:760px){.shell>aside{transition:transform 260ms cubic-bezier(.22,.68,.25,1),visibility 260ms,--scrollbar-fade-color 240ms ease}.mobile-nav-backdrop{display:block;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 260ms ease,visibility 260ms}.mobile-nav-open>.mobile-nav-backdrop{opacity:1;visibility:visible;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.shell,.shell>aside,.sidebar-toggle svg,.mobile-nav-backdrop{transition:none!important}}
/* Shared native-dialog entry and exit motion, including the top-layer backdrop. */
@media(prefers-reduced-motion:no-preference){dialog{opacity:0;transform:translateY(12px) scale(.985);transform-origin:center;transition:opacity 200ms ease,transform 200ms cubic-bezier(.22,.68,.25,1),display 200ms allow-discrete,overlay 200ms allow-discrete,--scrollbar-fade-color 240ms ease}dialog[open]{opacity:1;transform:translateY(0) scale(1)}dialog::backdrop{opacity:0;transition:opacity 200ms ease,display 200ms allow-discrete,overlay 200ms allow-discrete}dialog[open]::backdrop{opacity:1}@starting-style{dialog[open]{opacity:0;transform:translateY(12px) scale(.985)}dialog[open]::backdrop{opacity:0}}}@media(prefers-reduced-motion:reduce){dialog,dialog::backdrop{transition:none!important;transform:none}}
/* Notification feed drawer */
dialog.notification-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:430px;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--surface);box-sizing:border-box;overflow:hidden}dialog.notification-drawer[open]{display:flex;flex-direction:column}.notification-drawer-heading{padding:28px 24px 22px;flex-shrink:0}.notification-drawer-heading h2{display:flex;gap:10px;align-items:center;font-size:23px}.notification-drawer-heading .muted{font-size:12px}.notification-drawer-toolbar{padding:16px 24px;border-bottom:1px solid var(--line);flex-shrink:0}.notification-tabs{display:flex;gap:6px;padding:4px;background:var(--surface-tint);border:1px solid var(--line);border-radius:28px}.notification-tabs button{flex:1;border:0;border-radius:24px;padding:10px 14px;min-height:40px;background:transparent;color:var(--muted);font-size:13px;cursor:pointer}.notification-tabs button.selected{background:var(--primary-soft);color:var(--primary)}.notification-drawer-toolbar>.text-button{display:block;margin:8px 0 0 auto;font-size:12px}.notification-drawer .notification-list{flex:1;min-height:0;overflow-y:auto;padding:20px 24px}.notification-day-group>h3{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:6px 0 16px}.notification-feed-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.notification-feed-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;background:var(--surface-tint);color:var(--muted)}.notification-feed-item.unread .notification-feed-icon{background:var(--primary-soft);color:var(--primary)}.notification-feed-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;margin-bottom:6px}.notification-feed-meta i{width:7px;height:7px;border-radius:50%;background:var(--primary)}.notification-feed-title{display:block;padding:0;border:0;background:transparent;color:var(--ink);font-size:14px;font-weight:500;text-align:left;line-height:1.6;overflow-wrap:anywhere;cursor:pointer}.notification-feed-title:hover{color:var(--primary)}.notification-feed-item p{font-size:12px;color:var(--muted);margin:7px 0}.notification-feed-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.notification-feed-actions .text-button{font-size:11px;padding:6px 8px;min-height:36px}.notification-drawer-footer{padding:16px 24px;border-top:1px solid var(--line);font-size:10px;line-height:1.8;color:var(--muted);background:var(--surface-tint);flex-shrink:0}.notification-empty{text-align:center;padding:60px 12px}.notification-empty>.ui-icon{width:40px;height:40px;color:#a8add4}.notification-empty h3{font-size:18px;margin:18px 0 8px}.notification-empty p{font-size:13px;line-height:1.7;color:var(--muted)}.notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:12px;background:var(--primary);color:white;font-size:10px}.notification-button>.ui-icon{width:17px;height:17px}.home-daily-grid{display:grid;gap:24px;min-width:0}.home-daily-grid #home-calendar .shared-calendar{margin-bottom:0}.home-daily-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px}.home-daily-side:empty{display:none}.home-daily-side .home-tasks{margin:0;height:auto}.home-daily-side .loan-alert-panel{margin:0}.home-daily-side .loan-alert-panel .section-title{flex-wrap:wrap;gap:12px}.home-daily-side .loan-alert-item{flex-wrap:wrap;gap:12px}.home-greeting{margin-top:8px}.home-greeting h1{font-weight:500}.home-tasks .section-title h2,.home-daily-side .loan-alert-panel h2{font-size:18px}.finance-card-label{font-weight:500}.finance-card-icon{border-radius:50%}.home-daily-grid:has(+.home-announcement-list){margin-bottom:24px}.home-daily-grid+.panel{margin-top:24px}@media(prefers-reduced-motion:no-preference){dialog.notification-drawer{transform:translateX(28px);transition:opacity 220ms ease,transform 220ms ease,display 220ms allow-discrete,overlay 220ms allow-discrete}dialog.notification-drawer[open]{transform:translateX(0)}@starting-style{dialog.notification-drawer[open]{opacity:0;transform:translateX(28px)}}}@media(max-width:1000px){.home-daily-side{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){dialog.notification-drawer{width:min(430px,100vw);max-width:100vw}.notification-drawer-heading{padding:22px 18px 18px}.notification-drawer-toolbar{padding:14px 18px}.notification-drawer .notification-list{padding:16px 18px}.notification-feed-actions .text-button{min-height:44px;font-size:12px}.notification-drawer-footer{padding:14px 18px}.notification-button>span{display:none}.notification-button{min-width:36px}.home-daily-grid,.home-daily-side{gap:18px}.home-daily-grid .home-tasks{padding:16px}.notification-feed-title{font-size:15px}}
.home-daily-side:not(:has(#home-loan-alerts)),.home-daily-side:not(:has(#home-tasks)){grid-template-columns:minmax(0,1fr)}
/* Aquiry-inspired workspace: light navigation, orchid accents, quiet surfaces. */
:root{--primary:#9462b3;--primary-hover:#7c4a9a;--primary-soft:#f2eaf8;--surface-tint:#fcfafd;--canvas:#f3f3f6;--ink:#35383e;--muted:#7c818c;--line:#ececf1;--blue:var(--primary);--success:#328f80;--success-bg:#e9f6f2;--info:#6b75ae;--info-bg:#eef0fa;--ng-green-800:var(--primary);--ng-green-700:#80529b;--ng-green-500:var(--primary);--ng-lime-100:var(--primary-soft);--scroll-thumb:#c9bbd2;--scroll-hover:#a58ab6}
.shell>aside{background:#fff;color:var(--ink);border-right:1px solid var(--line)}
.sidebar-brand-row .brand{border-color:var(--line);padding-bottom:24px;margin-bottom:16px}.sidebar-brand-row .brand strong{color:#35343d;font-family:var(--font-ui);font-weight:700;font-size:23px;letter-spacing:-.8px}.sidebar-brand-row .brand small{color:#9b94a3;font-size:8px;letter-spacing:1.1px}.brand-mark{background:var(--primary-soft);color:var(--primary);border-radius:10px}.brand-mark span{color:var(--primary)}
.shell aside .nav-item{color:#7b808b;border-radius:6px;font-weight:400;min-height:44px}.shell aside .nav-item>span{color:#9297a1}.shell aside .nav-item:hover{background:#faf7fc;color:var(--primary)}.shell aside .nav-item.active{background:#f7f2fa;color:#8754a4;box-shadow:inset 3px 0 #ac80c2}.shell aside .nav-item.active>span{color:var(--primary)}.shell aside .nav-module-label{font-size:13px}
.shell aside .nav-group>summary{background:transparent;border-color:transparent;color:#7f8490;padding:10px 8px;font-size:12px;min-height:44px}.shell aside .nav-group>summary:hover{background:#faf7fc;color:var(--primary);border-color:transparent}.shell aside .nav-group[open]>summary{background:#faf7fc;color:#8b5aa7;border-color:transparent}.shell aside .nav-group>summary>.nav-group-chevron,.shell aside .nav-group[open]>summary>.nav-group-chevron{background:transparent;color:#9f94aa}.shell aside .nav-group-children{border-left:1px solid #ece8f0;margin-left:18px;padding-left:9px;position:relative}.shell aside .nav-group-children .nav-module-row{position:relative}.shell aside .nav-group-children .nav-module-row:before{content:'';position:absolute;left:-13px;width:6px;height:6px;border:1px solid #e4dce9;border-radius:50%;background:white;pointer-events:none}
.shell .nav-home-standalone,.shell .nav-favorites{border-color:var(--line)}.shell .nav-favorites-title{color:#a39aaa;text-transform:uppercase;letter-spacing:1px;font-size:10px}.shell .nav-favorites-title svg{color:#b495c6}.shell .nav-favorites-empty{color:#9396a0}.shell .favorite-toggle,.shell .favorite-drag-handle{color:#b6afbd}.shell .favorite-toggle:hover,.shell .favorite-drag-handle:hover{color:var(--primary);background:var(--primary-soft)}.shell .favorite-toggle.is-favorite{color:#a67fbb}.shell .favorite-toggle.is-favorite svg{fill:#ac80c222}.shell .favorite-drop-target{border-color:#c2a3d3;background:var(--primary-soft)}.shell .sidebar-bottom{color:#979aa5;border-color:var(--line)}.shell .status-dot{background:#62b3a4}
#sidebar-navigation{--scroll-track:#fff;--scroll-thumb:#d6cadd;--scroll-hover:#b398c1}
.workspace>header{box-shadow:0 2px 12px #36314b03;border-bottom:1px solid #efedf2;gap:16px}.workspace>header>div:first-of-type{color:#737782;font-size:12px}.workspace>header>.sidebar-toggle,.mobile-nav-trigger{background:transparent;border-color:transparent;color:#8e929c;border-radius:6px}.workspace>header>.sidebar-toggle:hover{background:var(--primary-soft)}.global-search-trigger{border:0;background:#f7f7f9;border-radius:5px;min-width:200px;justify-content:flex-start;color:#9b9da6}.global-search-trigger kbd{margin-left:auto;background:transparent;color:#b0a8b7}.notification-button{background:transparent;color:#8c8e9a;border-radius:6px;padding:8px 10px}.notification-button.has-unread{color:var(--primary);background:#faf6fc;border-color:transparent}.notification-button>span:not(.notification-count){display:none}.notification-button .notification-count{background:var(--primary)}.profile-button{border-left:1px solid var(--line);padding-left:18px}.profile-button .avatar{border-radius:8px;background:#f3edf8;color:#9764b1}.profile-button strong{color:#626672}.profile-button small{color:#a4a0aa}header #logout{font-size:11px;color:#9a8aa4;padding:8px}.workspace-footer{color:#a1a0ab}
.content:has(.home-greeting){padding-top:24px}.home-greeting{padding:22px 24px;background:linear-gradient(110deg,#fff 55%,#f4edf9);border:1px solid #eee8f2;border-radius:8px;gap:16px;margin:0 0 24px}.home-greeting h1{font-size:23px;font-weight:600;letter-spacing:-.4px;margin-bottom:0}.home-greeting .eyebrow{color:#a887bb;font-size:10px}.home-greeting>.muted{font-size:12px;color:#9b8ba6;text-transform:capitalize}
#home-finance{margin-bottom:24px}#home-finance .panel,.home-daily-grid .panel,.home-daily-grid .loan-alert-panel,.home-announcement-list .panel{border-color:#eeedf2;border-radius:8px;box-shadow:0 3px 14px #28223803}#home-finance .finance-header{padding:22px 24px 12px}#home-finance h2{font-size:19px;font-weight:600}#home-finance .finance-header .eyebrow{color:#a58ab6}#home-finance .finance-controls select{background:#faf9fc;border-color:#eeebf2;border-radius:5px}.finance-gridline{stroke:#efedf3}.finance-axis,.finance-axis-unit,.finance-month-label{fill:#9a98a4}.finance-sales,.finance-sales-key{fill:#ac80c2;background:#ac80c2}.finance-purchases,.finance-purchases-key{fill:#74c2b3;background:#74c2b3}.finance-month:hover .finance-sales{fill:#9363ad}.finance-month.is-selected .finance-month-hit{fill:#faf5fc}.finance-month.is-selected .finance-month-label{fill:#8b5ba5}.finance-legend{color:#93929e}.finance-footnote,.finance-method summary,.finance-method p{color:#a09aa7}.finance-card-label{color:#8b8997}.finance-card-icon.sales,.finance-card-icon.net{background:#f3eaf9;color:#ac80c2}.finance-card-icon.purchases{background:#eaf7f3;color:#5dac9d}.finance-card-icon.neutral{background:#f1eff9;color:#9c8ac0}.finance-card strong{color:#42434d;font-weight:600}.finance-card small{color:#a3a0ac}
.home-calendar-compact .shared-calendar{padding:24px}.home-daily-grid .section-title h2,.home-daily-grid .loan-calendar-toolbar h2{font-size:17px;font-weight:600}.home-daily-grid .shared-agenda{background:#faf8fc;border:1px solid #f0ebf4;border-radius:7px}.home-daily-grid .loan-day.selected{background:#f4eaf9;border-color:#d9c3e6}.home-daily-grid .loan-day.is-today .loan-day-number{background:#ac80c2}.home-daily-grid .loan-day-blank{background:#fcfbfd}.home-daily-grid .loan-day-event.installment,.home-daily-grid .loan-day-event.task{background:#eaf5f2;color:#438f81}.home-daily-grid .loan-dot.installment,.home-daily-grid .loan-dot.task{background:#74b6a7}.home-daily-grid .home-task-row{border-color:#f0edf3}.home-daily-grid .home-task-row:hover{background:#fcf9fd}.home-daily-grid .loan-alert-panel{background:#fff}.home-daily-grid .loan-alert-clear{background:#edf7f3;color:#4f9989}.home-daily-grid .loan-alert-item{border-color:#efebf3}.home-daily-grid .loan-alert-item.due{background:#fffbf2;border-color:#f0e3c8}.home-daily-grid .loan-alert-item.overdue{background:#fff6f6;border-color:#f4dfdf}
.content:has(.home-greeting) :is(.primary,.secondary){border-radius:5px}.content:has(.home-greeting) .primary{background:#a67cbe}.content:has(.home-greeting) .primary:hover{background:var(--primary-hover)}.content:has(.home-greeting) .secondary{background:#f6f1fa;color:#9462ad}.content:has(.home-greeting) .badge.green{background:var(--success-bg);color:var(--success);border-color:#d8eee6}.content:has(.home-greeting) .badge.status-completed{background:var(--success-bg);color:var(--success);border-color:#d8eee6}
@media(min-width:761px){.shell{grid-template-columns:260px minmax(0,1fr)}.shell>aside{width:260px;padding:24px 16px}.sidebar-brand-row{min-height:80px}.shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}.shell.sidebar-collapsed>aside{width:76px;padding:24px 10px}.sidebar-collapsed aside nav .nav-group{border-color:var(--line)}.shell.sidebar-collapsed .nav-group-children{border:0;margin:0;padding:0}.shell.sidebar-collapsed .nav-group-children .nav-module-row:before{display:none}}
@media(max-width:1100px){.workspace>header{gap:10px}.global-search-trigger{min-width:140px}.workspace>header>div:first-of-type .muted{display:none}}
@media(max-width:760px){.workspace>header{gap:6px;padding:0 14px}.global-search-trigger{min-width:40px;min-height:44px;justify-content:center;padding:10px}.profile-button{padding-left:10px}.workspace>header>div:first-of-type{display:none}.workspace>header #logout{padding:7px;font-size:11px}.notification-button{min-height:44px}.home-greeting{padding:18px;align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:18px}.home-greeting h1{font-size:21px}.home-calendar-compact .shared-calendar{padding:14px}.content:has(.home-greeting){padding:18px 14px 30px}#home-finance .finance-header{padding:18px 16px 12px}.home-daily-grid,.home-daily-side{gap:18px}.shell>aside{width:min(300px,86vw)}.shell .nav-group>summary{min-height:48px}.shell .nav-item{min-height:44px}}
/* Keep the mobile close control legible on the light navigation surface. */
.shell .mobile-nav-close{color:#81728c;background:#f6f1fa;border-color:#eee6f3}.shell .mobile-nav-close:hover{color:var(--primary-hover);background:#eee2f5}
/* Shared Aquiry-inspired components across every module. Layout and permission hooks stay intact. */
:root{--ng-green-600:#80529b;--ng-green-900:#302438;--ng-lime-500:#ac80c2;--ng-lime-400:#b994cd;--ng-cream-50:#fcfafd;--ng-cream-100:#f7f3fa;--ng-cream-200:#ece4f2;--ng-graphite-700:#65616c;--ng-graphite-600:var(--muted);--ng-graphite-300:#dcd7e2;--ng-graphite-200:var(--line);--success:#328f80;--success-bg:#e9f6f2;--danger:#b65365;--danger-bg:#fff0f3;--warning:#987323;--warning-bg:#fff7e5;--radius:8px}
h1,.page-heading h1,.record-detail-surface .modal-heading h1{font-size:26px;font-weight:600;letter-spacing:-.5px}h2,.section-title h2,.table-toolbar h2{font-weight:600;letter-spacing:-.2px}h3{font-weight:600}.page-heading .eyebrow,.modal-heading .eyebrow{color:#9776aa}.page-heading .muted{color:var(--muted)}
.panel,.task-card,.module-card,.record-detail-surface{border:1px solid var(--line);border-radius:8px;box-shadow:0 3px 14px #28223803;background:white}.panel .section-title{border-color:var(--line)}.module-icon{background:var(--primary-soft);color:var(--primary);border-radius:8px}.module-card:hover{border-color:#c7abd7;box-shadow:0 4px 16px #80529b08}.stats>div{background:#fff;border:1px solid var(--line);border-radius:8px}.stats strong,.loan-summary strong{color:var(--ink);font-weight:600}.stats span,.stats small{color:var(--muted)}
:is(.primary,.secondary,.edit-button,.danger,.notification-button){border-radius:5px;font-weight:500}.primary,.login-box .primary{background:var(--primary);color:white}.primary:hover,.login-box .primary:hover{background:var(--primary-hover)}.secondary,.edit-button{background:#f5eff9;color:#80529b;border:1px solid #eee5f4}.secondary:hover,.edit-button:hover{background:#ece0f4;border-color:#ddcbe8}.danger{background:var(--danger-bg);border-color:#f4dce3;color:var(--danger)}.danger:hover{background:#fbe1e8}.text-button{border-radius:5px;color:#80529b}.text-button:hover{background:var(--primary-soft)}.text-button:is(.company-delete,.project-remove,.delete-announcement),.company-delete,.project-remove{color:var(--danger)}.close{background:#f6f1fa;color:#8f7c9d;border-radius:6px}.close:hover{background:#eee2f5;color:var(--primary-hover)}
input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid #e2dfe8;border-radius:5px;background:white;color:var(--ink);box-shadow:none}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:#b391c7;outline:2px solid #a67cbe18;outline-offset:0}input::placeholder,textarea::placeholder{color:#96909f}form label{color:#6c6574;font-weight:500}input:disabled,select:disabled,textarea:disabled{background:#f6f4f8;color:#98929f}input[type=checkbox],input[type=radio]{accent-color:var(--primary)}.filters input,.filters select{background:#fcfbfd}.form-grid{column-gap:20px}
.table-scroll{border-color:var(--line)}.table-scroll th{background:#faf9fc;color:#82788d;font-size:12px;font-weight:500;border-color:var(--line)}.table-scroll td{border-color:#f0edf4;color:#66616e}.table-scroll tbody tr:hover{background:#fcf9fe}.table-toolbar,.table-footer{border-color:var(--line)}.table-toolbar{background:#fff}.table-footer{color:var(--muted);background:#fdfcfe}.person strong,.company-title,.request-title,.announcement-title{color:var(--ink);font-weight:600}.company-title:hover,.request-title:hover,.announcement-title:hover{color:var(--primary)}.mobile-card-list tbody tr,.mobile-detail-table tbody tr{border-color:var(--line);box-shadow:none}.mobile-card-list td:before,.mobile-detail-table td:before{color:#93869e}
.badge,.loan-badge,.request-status{border-radius:5px;border:1px solid transparent;font-weight:500}.badge.admin,.pinned-badge{color:#8d60a6;background:#f3eafa;border-color:#eaddf2}.badge.green,.badge.status-completed,.loan-badge.paid,.request-completed{color:var(--success);background:var(--success-bg);border-color:#d8eee6}.badge.gray,.badge.status-todo,.loan-badge.upcoming,.request-new{background:#f3f2f6;color:#85808e;border-color:#eae7ef}.badge.status-in_progress,.request-in_progress{background:#eef0fa;color:#737ab2;border-color:#e0e3f4}.loan-badge.due,.task-important{background:var(--warning-bg);color:var(--warning);border-color:#f1e3bb}.loan-badge.overdue{background:var(--danger-bg);color:var(--danger);border-color:#f3dce2}.task-overdue{color:var(--danger)}.company-tag{background:#f4edf9;color:#8c60a6;border-color:#e9dcf1;border-radius:5px}.info{background:#f5f0fa;color:#826593;border-color:#e9dff1}.error{background:var(--danger-bg);color:var(--danger)}
dialog{border:1px solid #e8e1ee;border-radius:9px;background:white;box-shadow:0 20px 70px #30243824}dialog::backdrop{background:#28213069}.modal-heading,.record-detail-surface>.modal-heading{background:#fcfafd;border-color:var(--line)}.modal-heading h2{font-weight:600;font-size:22px}.modal-footer{background:#fcfafd;border-color:var(--line)}.record-page-actions.modal-footer{background:transparent}.record-detail-surface{overflow:clip}.company-account-grid>div,.project-balances>div{background:#faf7fc;border:1px solid #eee5f4;border-radius:7px}.company-account-grid strong,.project-balances strong{color:#6f4d83}.company-opening-info,.fx-preview,.project-change-details>div,.loan-history-details{background:#faf7fc;color:#7f708a;border-color:#eee5f4;border-radius:6px}.project-timeline li:before{background:#ad83c2}.project-change-details summary,.loan-paste summary{color:#9066a6}.project-section,.loan-detail-section,.company-account,.stock-history,.analysis-history li{border-color:var(--line)}.loan-paste,.loan-plan-row,.announcement-pin-option{background:#faf7fc;border-color:#eee5f4;border-radius:6px}
.announcement-tab{border-radius:5px}.announcement-tab.selected{background:var(--primary-soft);color:#8d60a6;border-color:#eaddf2}.announcement-card.is-pinned{background:#fcf9fe;border-left-color:#b38ac8}.announcement-actions .text-button:hover{background:var(--primary-soft)}.announcement-excerpt{color:#77717e}.task-lane{background:#f0edf5;border-color:#e7e1ee;border-radius:8px}.task-card{border-radius:7px}.task-card:hover{border-color:#c5a7d6}.task-dot{background:#bcb4c5}.task-dot.in_progress{background:#ad83c2}.task-dot.completed{background:#74b6a7}.task-history article{border-color:#d0b7df}.permission-option,.dashboard-permission-options label{border-color:#ebe4f1;background:#fcfafd;border-radius:6px}.dashboard-permissions{border-color:var(--line);border-radius:8px}.permission-table th{background:#faf7fc}.event-people{border-color:var(--line);border-radius:6px}
.shared-calendar{border-radius:8px}.shared-agenda{background:#faf7fc;border:1px solid #eee7f3;border-radius:7px}.loan-calendar-week{background:#fcfafd}.loan-calendar-week span,.loan-day-number{color:#93859d}.loan-day,.loan-day-blank{border-color:#f0edf4}.loan-day:hover{background:#fcf8fe}.loan-day.selected{background:#f5ecfa;box-shadow:inset 0 0 0 1px #ddc7e9}.loan-day.is-today .loan-day-number{background:#ac80c2}.loan-day-blank{background:#fcfbfd}.loan-day-event{border-left-color:#b18bc7}.loan-day-event.task,.loan-day-event.installment{background:#edf7f3;color:#488d7d;border-left-color:#7ab9a7}.loan-day-event.bch,.loan-day-event.meeting{background:#f2eaf8;color:#9569af;border-left-color:#b18bc7}.loan-day-event.reminder{background:#fff6e5;color:#ab8840;border-left-color:#d7b66e}.loan-dot.task,.loan-dot.installment{background:#74b6a7}.loan-dot.meeting,.loan-dot.bch{background:#ad83c2}.loan-dot.reminder{background:#d7b66e}.loan-alert-panel{background:#fff;border-color:var(--line)}.loan-alert-panel .eyebrow{color:#a281b5}.loan-alert-item strong{color:var(--ink)}.loan-alert-item small{color:var(--muted)}.loan-alert-item b{color:#a58340}.loan-alert-item.overdue b{color:var(--danger)}.loan-alert-clear{background:var(--success-bg);color:var(--success)}.loan-agenda-empty{color:var(--muted)}
.chat-layout{--chat-green:var(--primary);border-radius:8px;border-color:var(--line)}.chat-sidebar,.chat-self{background:#fcfafd}.chat-main{background:#f7f4fa}.chat-top,.chat-composer-wrap{background:#fff;border-color:var(--line)}.chat-history,.chat-empty{background-image:radial-gradient(#b49ac617 .8px,transparent .8px)}.chat-conversation:hover{background:#f8f3fb}.chat-conversation.selected{background:#f2eafa;border-color:#e9dcf1}.chat-conversation.selected:before{background:#ad83c2}.chat-conversation-name,.chat-self strong{color:var(--ink)}.chat-preview,.has-unread .chat-preview,.chat-top p,.chat-composer-footer,.chat-sender,.chat-message-meta,.chat-list-section h3{color:#93829e}.chat-tabs button:hover,.chat-icon-button:hover,.chat-message-menu button:hover,.chat-conversation-menu button:hover,.chat-add-channel:hover{background:var(--primary-soft);color:var(--primary)}.chat-tabs button.active{background:var(--primary-soft);color:#9462ad}.chat-avatar,.chat-self>.chat-avatar,.chat-avatar.is-channel,.selected .chat-avatar.is-channel{background:#f1e8f8;color:#a176b8;border-color:#e9dcf1}.chat-avatar.tone-1{background:#fff2e5;color:#b38c5f}.chat-avatar.tone-2{background:#e9f5f1;color:#5b9d8b}.chat-avatar.tone-3{background:#f5eafa;color:#a376b5}.chat-avatar.tone-4{background:#eef0fa;color:#8991ba}.chat-day>span{background:#eee8f3;color:#9c8aa7;border-color:#e6ddec}.chat-bubble,.is-own>.chat-bubble{border-color:#e9e0f0}.chat-bubble p{color:#62566b}.chat-message.is-own{background:transparent}.is-own>.chat-bubble{background:#efe4f7}.chat-message-menu summary{background:#efe4f7;color:#9272a3}.chat-message-menu button,.chat-conversation-menu>div>button{color:#806d8e}.chat-search-box{background:#f8f5fa;border-color:#ece4f2}.chat-search-box:focus-within{border-color:#b391c7}.chat-receipt.is-read{color:#69a795}.chat-load-older,.chat-new{background:#fcf9fe;color:#9b7aab;border-color:#e8dbef}.chat-empty-icon{background:#f1e8f8;color:#b18bc7}.chat-heading-dot,.chat-connection-dot.connected{background:#74b6a7}.chat-connection-dot.connected{box-shadow:0 0 0 3px #74b6a715}.chat-send{background:var(--primary);border-radius:7px}.chat-send:hover{background:var(--primary-hover)}.chat-composer{border-color:#e5dbeB;border-radius:7px}.chat-composer:focus-within{border-color:#b391c7}.chat-emoji-picker button:hover{background:var(--primary-soft)}
.notification-tabs{border-radius:6px}.notification-tabs button{border-radius:4px}.notification-feed-icon{border-radius:8px}.notification-drawer-heading{background:#fcfafd}.notification-empty>.ui-icon{color:#ba9bcb}.profile-card .avatar{background:var(--primary-soft);color:var(--primary)}
@media(max-width:760px){h1,.page-heading h1,.record-detail-surface .modal-heading h1{font-size:23px}.modal-heading h2{font-size:20px}.mobile-card-list tbody tr,.mobile-detail-table tbody tr{background:#fff;border-color:#eae3f0;border-radius:7px}.mobile-card-list td,.mobile-detail-table td{border-color:#f1edf5}.permission-option{min-height:44px}.mobile-card-list :is(.primary,.secondary,.edit-button,.danger),.modal-footer :is(.primary,.secondary,.danger){min-height:44px}}
/* Visual QA: readable text on pastel surfaces; remove remaining legacy messenger colors. */
:root{--primary:#8752a5;--primary-hover:#70418c;--muted:#686471;--success:#237463;--warning:#82601e;--ng-green-600:#74498b;--ng-green-700:#74498b}
.shell aside .nav-item,.shell aside .nav-item>.nav-module-label{color:#686471}.shell aside .nav-item.active,.shell aside .nav-item.active>.nav-module-label{color:#79478f}.shell aside .nav-group>summary,.shell aside .nav-group>summary>.nav-group-name{color:#706777}.shell aside .nav-group[open]>summary,.shell aside .nav-group[open]>summary>.nav-group-name{color:#79478f}.shell .nav-favorites-title,.shell .nav-favorites-empty,.shell .sidebar-bottom,.sidebar-brand-row .brand small{color:#756b7d}.shell .favorite-drag-handle{color:#7e6f88}.brand-mark,.brand-mark span{color:#79478f}.global-search-trigger,.global-search-trigger kbd,.workspace>header #logout,.profile-button small,.profile-button .avatar,.crumb{color:#716479}.workspace-footer{color:#756b7d}
.page-heading .eyebrow,.modal-heading .eyebrow,.home-greeting .eyebrow,#home-finance .finance-header .eyebrow,.loan-alert-panel .eyebrow,.home-daily-grid .loan-alert-panel .eyebrow{color:#7e5a90}.table-scroll th{color:#716479}.badge.gray,.badge.status-todo,.loan-badge.upcoming,.request-new{color:#706978}.badge.admin,.pinned-badge,.company-tag,.announcement-tab.selected{color:#794b91}.badge.status-in_progress,.request-in_progress{color:#58649a}.badge.green,.badge.status-completed,.loan-badge.paid,.request-completed{color:var(--success)}
.finance-card-label,.finance-card small,.finance-legend,.finance-legend small,.finance-footnote,.finance-method summary,.finance-method p,.home-greeting>.muted{color:#716479}.finance-card-icon.sales,.finance-card-icon.net,.finance-card-icon.neutral{color:#805297}.finance-card-icon.purchases{color:#287763}.finance-axis,.finance-axis-unit,.finance-month-label{fill:#716479}.finance-month.is-selected .finance-month-label{fill:#794b91}.finance-mobile-month{color:#716479}.finance-mobile-empty{color:#716479}.finance-mobile-hint{color:#716479}.finance-mobile-selected{color:#716479}.content:has(.home-greeting) .primary{background:var(--primary)}.content:has(.home-greeting) .secondary{color:#794b91}
.loan-calendar-week span,.loan-day-number{color:#716479}.loan-day.is-today .loan-day-number,.home-daily-grid .loan-day.is-today .loan-day-number{background:var(--primary);color:white}.loan-day-more{color:#716479}.loan-day-event.task,.loan-day-event.installment,.home-daily-grid .loan-day-event.task,.home-daily-grid .loan-day-event.installment{color:#286f5e}.loan-day-event.bch,.loan-day-event.meeting{color:#794b91}.loan-day-event.reminder{color:#82601e}.loan-alert-item b,.home-daily-grid .loan-alert-item b{color:#82601e}.loan-alert-item.overdue b{color:var(--danger)}.loan-event-amount{color:var(--ink)}.home-daily-grid .loan-alert-clear{color:var(--success)}
input::placeholder,textarea::placeholder{color:#797080;opacity:1}.mobile-card-list td:before,.mobile-detail-table td:before{color:#716479}.company-opening-info,.fx-preview,.project-change-details>div,.loan-history-details{color:#716479}.project-change-details summary,.loan-paste summary{color:#794b91}.notification-feed-meta,.notification-feed-item p,.notification-drawer-footer{color:#716479}.notification-feed-meta{font-size:11px}.notification-drawer-footer{font-size:11px}
.chat-tabs button,.chat-list-section h3,.chat-list-section h3>span,.chat-conversation time,.chat-preview,.has-unread .chat-preview,.chat-top p,.chat-composer-footer,.chat-sender,.chat-message-meta,.chat-self #chat-connection-label,.chat-join-label,.chat-archived-label{color:#716479}.chat-day>span{color:#716479}.chat-top h2>span:not(.chat-header-badge),.chat-header-badge{color:#716479}.chat-header-badge{background:#f1eaf6}.chat-avatar,.chat-self>.chat-avatar,.chat-avatar.is-channel,.selected .chat-avatar.is-channel,.chat-avatar.tone-3{color:#794b91}.chat-avatar.tone-1{color:#8a622e}.chat-avatar.tone-2{color:#286f5e}.chat-avatar.tone-4{color:#58649a}.chat-tabs button.active{color:#794b91}.chat-composer textarea::placeholder{color:#797080}.chat-composer>.chat-icon-button{color:#796986}.chat-composer>.chat-icon-button:hover{color:#794b91}.chat-add-channel{border-color:var(--line);color:#716479}.chat-self,.chat-tabs,.chat-top,.chat-composer-wrap{border-color:var(--line)}.chat-list-empty,.chat-list-empty strong,.chat-list-empty p,.chat-history-empty,.chat-history-empty h3,.chat-history-empty p,.chat-empty,.chat-empty h2,.chat-empty p,.chat-search-result{color:#716479}.chat-history-empty>svg,.chat-empty-icon{color:#9b73b1}.chat-bubble p em,.chat-receipt{color:#716479}.chat-receipt.is-read{color:#287763}.chat-load-older,.chat-new{color:#794b91}.chat-message-menu button.chat-delete-action{color:var(--danger)}.chat-bubble mark{background:#f7e5b5;color:#665124}.chat-bubble{box-shadow:0 2px 3px #30243803}.chat-composer,.chat-message-menu>div,.chat-conversation-menu>div,.chat-emoji-picker{box-shadow:0 4px 18px #3024380c}.chat-send{color:white}.chat-send:disabled{opacity:.55}
/* Distinguish controls from surrounding panels without introducing dark borders. */
input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#d4cbdc}input[type=checkbox],input[type=radio]{outline-color:var(--primary)}
@media(max-width:760px){.mobile-card-list td:before,.mobile-detail-table td:before{font-size:12px}.notification-drawer-footer{font-size:11px}}
:root{--danger:#9f3d53;--night:#302438;--navy:#302438}.login-story{background:#302438}.login-story .brand strong{color:#fff}.login-story .brand small{color:#d4c4dc}.login-story .eyebrow,.story-note,.login-story footer{color:#d4c4dc}.login-story p:not(.eyebrow){color:#e1d8e6}.login-form{background:var(--canvas)}.finance-no-data{color:#716479;border-color:var(--line)}
/* Comfortable reading scale, shared by desktop and mobile. */
body{font-size:15px;line-height:1.6}.muted,.footnote{font-size:13px;line-height:1.65}.eyebrow,.mini-tag{font-size:12px;letter-spacing:.07em}h1,.page-heading h1,.record-detail-surface .modal-heading h1{font-size:28px}h2,.section-title h2,.table-toolbar h2{font-size:21px}h3{font-size:17px}.page-heading .muted{font-size:15px}.modal-heading h2{font-size:24px}.modal-heading .muted{font-size:14px}
:is(.primary,.secondary,.edit-button,.danger,.notification-button){font-size:15px;line-height:1.4}.text-button{font-size:14px}.table-scroll th{font-size:13px}.table-scroll td{font-size:14px;line-height:1.65}.table-scroll td small,.person small,.company-account-mini,.table-footer{font-size:13px}.person strong,.company-account-mini strong{font-size:14px}.table-toolbar .muted{font-size:13px}.filters input,.filters select{font-size:14px}.badge,.loan-badge,.request-status,.company-tag{font-size:12px;line-height:1.5}
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:15px;line-height:1.5}input::placeholder,textarea::placeholder{font-size:14px}form label{font-size:14px;line-height:1.6}.permission-heading p,.permission-heading button,.permission-table th,.modal-body .permission-table th{font-size:13px}.dashboard-permission-options label,.dashboard-permissions>p,.dashboard-permissions>small{font-size:13px}.permission-table td{font-size:14px}.error,.info{font-size:14px}.modal-footer{flex-wrap:wrap}
.shell aside .nav-item>.nav-module-label,.shell .nav-home-standalone .nav-module-label{font-size:14px}.shell aside .nav-group>summary{font-size:13px}.shell .nav-favorites-title{font-size:11px}.shell .nav-favorites-empty,.shell .sidebar-bottom{font-size:12px}.workspace>header>div:first-of-type{font-size:13px}.global-search-trigger{font-size:13px}.global-search-trigger kbd{font-size:11px}.profile-button strong{font-size:14px}.profile-button small{font-size:12px}.workspace>header #logout{font-size:13px}.workspace-footer{font-size:12px}
.company-title,.request-title{font-size:15px}.company-details,.stock-history,.analysis-history,.record-body{font-size:14px;line-height:1.75}.company-account-grid small,.project-balances small{font-size:13px}.company-notes,.project-item p,.project-change-details,.loan-history-details{font-size:14px}.project-item strong,.project-timeline li>strong{font-size:15px}.project-item small,.project-timeline li>small{font-size:13px}.project-item-actions .text-button{font-size:13px}.company-opening-info,.company-opening-info small,.fx-preview{font-size:13px}.analysis-upload-item small,.stock-history small,.loan-bch-row small,.loan-bch-row>div>strong{font-size:13px}.loan-plan-row label,.loan-plan-row input,.loan-paste summary,.loan-paste textarea{font-size:14px}
.announcement-card h2{font-size:22px}.announcement-card h3{font-size:18px}.announcement-meta{font-size:13px}.announcement-excerpt,.announcement-body{font-size:15px}.announcement-actions .text-button,.announcement-read{font-size:14px}.announcement-pin-option small{font-size:13px}.task-lane h2{font-size:17px}.task-card strong{font-size:16px}.task-card p,.task-description,.task-history p{font-size:14px}.task-card-bottom,.task-card-top small,.task-history small{font-size:13px}.task-empty{font-size:14px}
#home-finance h2{font-size:21px}.finance-header .eyebrow{font-size:11px}.finance-header p.muted,.finance-controls label,.finance-legend,.finance-legend small{font-size:13px}.finance-controls select{font-size:14px}.finance-footnote,.finance-method summary,.finance-method p{font-size:12px}.finance-card-label,.finance-card small{font-size:13px}.finance-axis,.finance-axis-unit,.finance-month-label{font-size:12px}.finance-tooltip,.finance-tooltip strong,.finance-tooltip b{font-size:12px}.home-greeting h1{font-size:25px}.home-greeting .eyebrow,.home-greeting>.muted{font-size:13px}.home-daily-grid .section-title h2,.home-daily-grid .loan-calendar-toolbar h2{font-size:19px}.home-task-row strong{font-size:15px}.home-task-row{font-size:14px}.loan-alert-panel .eyebrow{font-size:11px}.loan-alert-item strong{font-size:14px}.loan-alert-item small,.loan-alert-item b,.loan-alert-panel>.footnote{font-size:12px}
.loan-calendar-toolbar .eyebrow{font-size:11px}.loan-calendar-controls input,.loan-calendar-controls button{font-size:13px}.loan-calendar-legend,.shared-calendar-filters{font-size:12px}.loan-calendar-week span,.loan-day-number{font-size:12px}.loan-day-event,.loan-day-more{font-size:10px}.loan-day-panel>.eyebrow,.loan-day-panel>.muted,.loan-agenda-item .muted{font-size:13px}.loan-agenda-item h3{font-size:16px}.loan-agenda-empty{font-size:14px}
.chat-page-heading .eyebrow,.chat-workspace-caption{font-size:13px}.chat-sidebar-heading>div>span{font-size:13px}.chat-tabs button{font-size:13px}.chat-search-box input{font-size:14px}.chat-list-section h3,.chat-list-section h3>span{font-size:12px}.chat-conversation-name{font-size:15px}.chat-preview{font-size:13px}.chat-conversation time{font-size:11px}.chat-top h2{font-size:17px}.chat-top p,.chat-header-badge{font-size:12px}.chat-day>span{font-size:12px}.chat-bubble p{font-size:15px;line-height:1.75}.chat-sender,.chat-message-meta,.chat-message-meta time,.chat-message-meta small{font-size:12px}.chat-composer textarea{font-size:15px}.chat-composer-footer,.chat-self #chat-connection-label{font-size:11px}.chat-self strong{font-size:13px}.chat-add-channel,.chat-load-older,.chat-new,.chat-message-menu button,.chat-conversation-menu>div>button{font-size:13px}.chat-empty p,.chat-history-empty p,.chat-list-empty p{font-size:13px}
.notification-feed-title{font-size:16px}.notification-feed-meta,.notification-feed-item p,.notification-feed-actions .text-button,.notification-drawer-footer{font-size:13px}.notification-tabs button{font-size:14px}.notification-day-group>h3{font-size:12px}.notification-drawer-toolbar>.text-button{font-size:13px}.global-search-result strong{font-size:15px}.global-search-result small{font-size:13px}.search-document-actions .secondary{font-size:13px}
@media(max-width:760px){body{font-size:15px}h1,.page-heading h1,.record-detail-surface .modal-heading h1{font-size:25px}.modal-heading h2{font-size:22px}h2,.section-title h2{font-size:20px}.home-greeting h1{font-size:23px}.home-daily-grid .section-title h2,.home-daily-grid .loan-calendar-toolbar h2{font-size:19px}.mobile-card-list td,.mobile-detail-table td{font-size:14px;line-height:1.7}.mobile-card-list td:before,.mobile-detail-table td:before{font-size:13px}.mobile-card-list td small,.mobile-detail-table td small{font-size:13px}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}:is(.primary,.secondary,.edit-button,.danger){font-size:14px}.text-button{font-size:14px}.finance-card-label,.finance-card small{font-size:12px}.finance-footnote,.finance-method summary,.finance-method p{font-size:12px}.finance-mobile-row{font-size:13px}.finance-mobile-selected{font-size:14px}.home-task-row strong{font-size:15px}.loan-alert-item strong{font-size:15px}.loan-alert-item small,.loan-alert-item b{font-size:13px}.announcement-card h2{font-size:20px}.announcement-body{font-size:15px}.chat-composer textarea{font-size:16px}.chat-tabs button{font-size:12px}.chat-bubble p{font-size:15px}.chat-message-meta,.chat-message-meta time,.chat-message-meta small{font-size:11px}.chat-preview{font-size:13px}.notification-feed-actions .text-button,.notification-drawer-footer{font-size:13px}.notification-feed-title{font-size:16px}.shell aside .nav-group>summary{font-size:14px}.shell aside .nav-item>.nav-module-label{font-size:14px}.workspace>header #logout{font-size:12px}.global-search-trigger{min-width:40px}.loan-calendar-legend{gap:10px;flex-wrap:wrap}}
/* Typography layout QA: allow meaningful labels to grow rather than clip. */
.page-heading>div,.section-title>div,.table-toolbar>div,.modal-heading>div{min-width:0}.page-heading h1,.modal-heading h1,.modal-heading h2,.section-title h2,.table-toolbar h2{overflow-wrap:anywhere}.page-heading,.section-title{row-gap:12px}.filters{min-width:0}.filters input,.filters select{max-width:100%;min-width:0}.modal-footer>button,.page-heading>button,.project-heading-actions>button,.record-page-actions>button{height:auto;white-space:normal;overflow-wrap:anywhere;text-align:center;flex-shrink:0}.project-heading-actions,.record-page-actions{flex-wrap:wrap;gap:10px}.announcement-tabs,.notification-feed-actions,.chat-tabs{flex-wrap:wrap}.announcement-tab,.notification-tabs button{white-space:normal;line-height:1.5}.notification-feed-actions .text-button{white-space:normal;text-align:left;height:auto}.company-account-grid strong,.project-balances strong{white-space:normal;overflow-wrap:anywhere}.analysis-excerpt{white-space:normal;text-overflow:clip;overflow:visible;line-height:1.65}.chat-conversation-name,.chat-top h2,.chat-top p,.chat-self strong{white-space:normal;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}.chat-top p{max-width:none}.chat-conversation{align-items:flex-start}.chat-conversation-meta{align-self:flex-start;padding-top:3px}.chat-preview{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.5;max-height:none}.chat-self{min-height:68px}.chat-top-identity>div{min-width:0}.chat-composer-footer{flex-wrap:wrap;line-height:1.5}.chat-top-actions{flex-shrink:0}.chat-person-row>div{min-width:0}.chat-person-row strong,.chat-person-row small{white-space:normal;overflow-wrap:anywhere}.chat-person-row strong{font-size:14px;color:var(--ink)}.chat-person-row small,.chat-person-row strong>span{font-size:13px;color:var(--muted)}
@media(min-width:761px){.shared-calendar:not(.home-calendar-compact .shared-calendar) .loan-day-event{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5;flex-shrink:0}.shared-calendar:not(.home-calendar-compact .shared-calendar) .loan-day{height:auto;min-height:100px}}
@media(min-width:761px) and (max-width:1200px){.shared-calendar .loan-calendar-layout,.home-calendar-compact .shared-calendar .loan-calendar-layout{grid-template-columns:minmax(0,1fr)}.shared-calendar .loan-calendar-toolbar{flex-wrap:wrap;gap:14px}.shared-calendar .loan-calendar-controls{flex-wrap:wrap}.table-toolbar{flex-wrap:wrap;gap:16px}.table-toolbar .filters{flex:1;min-width:240px;align-items:stretch}.table-toolbar .filters input,.table-toolbar .filters select{width:100%}.workspace>header .profile-button>span:not(.avatar){display:none}.workspace>header .global-search-trigger{min-width:130px}.workspace>header>div:first-of-type{min-width:0}}
@media(max-width:760px){.page-heading>button,.record-page-actions>button{max-width:100%}.loan-calendar-controls{gap:7px}.loan-calendar-controls button{white-space:normal}.shared-calendar-filters label{flex-wrap:wrap;max-width:100%}.shared-calendar-filters select{max-width:100%}.finance-card-label{align-items:flex-start}.finance-card-icon{flex-shrink:0}.task-card-top,.task-detail-meta{flex-wrap:wrap;gap:8px}.task-card-bottom>span{overflow-wrap:anywhere}.chat-top{align-items:flex-start}.chat-top-actions{flex-wrap:wrap;max-width:66px}.chat-top-identity{align-items:flex-start}.chat-top h2{font-size:16px}.chat-top p{font-size:12px}.chat-conversation-name{font-size:15px}.notification-tabs button{min-height:44px}.modal-footer>button{max-width:100%}.section-title{flex-wrap:wrap}.section-title>h2{min-width:0;overflow-wrap:anywhere}}
@media(max-width:760px){.chat-top-actions{flex-wrap:nowrap;max-width:none;align-items:center}.chat-top-actions>.chat-icon-button,.chat-top-actions summary{width:32px;height:36px}.chat-top-identity{gap:7px}.chat-top{gap:5px}}
/* Long-name QA: keep desktop tables within their panels as content grows. */
.company-title,.document-title,.project-item strong,.record-detail-surface h1{overflow-wrap:anywhere;word-break:normal}.document-identity,.document-identity>div{min-width:0;max-width:100%}.document-row-actions{flex-wrap:wrap;gap:8px}.document-row-actions>button{white-space:normal;overflow-wrap:anywhere;height:auto}.document-current>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.project-item-actions>button{max-width:100%;white-space:normal;overflow-wrap:anywhere;height:auto}.global-search-result>span:nth-child(2){overflow-wrap:anywhere}.search-document-actions>button{max-width:100%;white-space:normal;height:auto}
@media(min-width:761px){.projects-table,.documents-table,.project-section table{table-layout:fixed;width:100%;min-width:0}.projects-table :is(th,td),.documents-table :is(th,td),.project-section :is(th,td){min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}.projects-table th:first-child{width:35%}.projects-table th:last-child{width:19%}.documents-table th:first-child{width:42%}.documents-table th:nth-child(2){width:12%}.documents-table th:nth-child(3){width:23%}.documents-table th:last-child,.documents-table td:last-child{width:23%}.project-section th:first-child{width:40%}.project-section td:first-child{min-width:0;max-width:none}.projects-table button,.documents-table button,.project-section table button{max-width:100%;white-space:normal;height:auto;overflow-wrap:anywhere}.projects-table :is(th,td),.documents-table :is(th,td){padding-left:16px;padding-right:16px}}
@media(min-width:761px){.projects-table th:first-child{width:32%}.projects-table th:nth-child(2){width:10%}.projects-table th:nth-child(3){width:23%}.projects-table th:nth-child(4){width:17%}.projects-table th:last-child{width:18%}.projects-table .company-account-mini span{flex-wrap:wrap;gap:4px 12px}.projects-table .company-account-mini span>span,.projects-table .company-account-mini strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}.projects-table .company-account-mini>span{white-space:nowrap}.projects-table .company-account-mini{row-gap:10px}}
@media(min-width:761px){.projects-table th:first-child{width:29%}.projects-table th:nth-child(2){width:14%}.projects-table th:nth-child(3){width:24%}.projects-table th:nth-child(4){width:16%}.projects-table th:last-child{width:17%}.projects-table th:nth-child(2),.projects-table .badge{white-space:nowrap;overflow-wrap:normal}.projects-table td:nth-child(2){padding-left:10px;padding-right:10px}}
/* Long product/batch names: wrap content without widening the operations workspace. */
#production-list td:first-child strong,.analysis-list .company-title,.stocks-table .company-title{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}.analysis-list td,.analysis-list th,#production-list td,#production-list th,.stocks-table td,.stocks-table th{white-space:normal;overflow-wrap:anywhere}.production-input-row,.production-input-row label,#production-form label{min-width:0;max-width:100%}.production-input-row select,#production-form select{width:100%;min-width:0;max-width:100%}.production-input-balance,#production-output-unit{overflow-wrap:anywhere;white-space:normal;line-height:1.7;font-size:14px}.analysis-list .company-title{font-size:15px}.analysis-list .analysis-excerpt{overflow-wrap:anywhere}.analysis-history{overflow-wrap:anywhere}
@media(min-width:761px){.stocks-table,#production-list,.analysis-list{width:100%;table-layout:fixed;min-width:0}.stocks-table :is(th,td),#production-list :is(th,td),.analysis-list :is(th,td){min-width:0;max-width:none;padding-left:12px;padding-right:12px}.stocks-table th:first-child{width:6%}.stocks-table th:nth-child(2){width:26%}.stocks-table th:nth-child(3){width:12%}.stocks-table th:nth-child(4){width:12%}.stocks-table th:nth-child(5){width:13%}.stocks-table th:nth-child(6){width:17%}.stocks-table th:last-child{width:14%}#production-list th:first-child{width:30%}#production-list th:nth-child(2){width:14%}#production-list th:nth-child(3){width:14%}#production-list th:nth-child(4){width:16%}#production-list th:nth-child(5){width:14%}#production-list th:last-child{width:12%}.analysis-list th:first-child{width:25%}.analysis-list th:nth-child(2){width:32%}.analysis-list th:nth-child(3){width:10%}.analysis-list th:nth-child(4){width:17%}.analysis-list th:last-child{width:16%}.stocks-table button,#production-list button,.analysis-list button{white-space:normal;overflow-wrap:anywhere;height:auto;max-width:100%}.stocks-table .badge,#production-list .badge{white-space:normal}.modal-body .table-scroll table{width:100%;min-width:0;table-layout:fixed}.modal-body .table-scroll :is(th,td){min-width:0;white-space:normal;overflow-wrap:anywhere}.modal-body .table-scroll th:first-child{width:65%}}
@media(min-width:761px) and (max-width:1150px){.table-scroll:has(>.stocks-table),.table-scroll:has(>#production-list),.table-scroll:has(>.analysis-list){overflow:visible;padding:0 16px 16px}:is(.stocks-table,#production-list,.analysis-list){display:block;width:100%;table-layout:auto}:is(.stocks-table,#production-list,.analysis-list)>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:is(.stocks-table,#production-list,.analysis-list)>tbody{display:grid;gap:16px}:is(.stocks-table,#production-list,.analysis-list)>tbody>tr{display:block;border:1px solid var(--line);border-radius:7px;padding:16px;background:white}:is(.stocks-table,#production-list,.analysis-list)>tbody>tr>td{display:block;width:100%;min-width:0;max-width:none;padding:9px 0;border:0;white-space:normal;overflow-wrap:anywhere}:is(.stocks-table,#production-list,.analysis-list)>tbody>tr>td[data-label]:before{content:attr(data-label);display:block;color:var(--muted);font-size:13px;margin-bottom:5px}:is(.stocks-table,#production-list,.analysis-list)>tbody>tr>td+td{border-top:1px solid var(--line)}.stocks-table .company-title,#production-list strong,.analysis-list .company-title{max-width:100%}}
/* Unified header controls inspired by the reference toolbar. */
.workspace>header{gap:18px}.workspace>header .header-breadcrumb{display:none}.workspace>header .global-search-trigger{margin-left:0;margin-right:auto;flex:1;max-width:410px;min-width:180px;height:48px;border-radius:8px;background:#f6f6f9;padding:10px 18px;gap:14px;font-size:16px}.global-search-trigger .ui-icon{width:23px;height:23px}.global-search-trigger kbd{font-size:11px}.header-dropdown{position:relative;flex-shrink:0}.header-dropdown>summary{list-style:none;cursor:pointer;user-select:none}.header-dropdown>summary::-webkit-details-marker{display:none}.header-icon,.workspace>header .notification-button{display:flex;align-items:center;justify-content:center;position:relative;width:42px;height:44px;min-width:42px;padding:8px;border:0;border-radius:8px;background:transparent;color:#7c8290}.header-icon .ui-icon,.notification-button>.ui-icon{width:24px;height:24px}.header-icon:hover,.header-dropdown[open]>.header-icon,.workspace>header .notification-button:hover{background:var(--primary-soft);color:var(--primary)}.notification-button .notification-count{position:absolute;top:0;right:0;min-width:17px;height:17px;font-size:10px;padding:0 4px}.header-dropdown>summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.profile-dropdown{border-left:1px solid var(--line);padding-left:20px;margin-left:2px}.workspace>header .profile-button{border:0;padding:0;display:flex;align-items:center;gap:12px;min-height:48px;max-width:270px}.profile-button .avatar{height:44px;width:44px;border-radius:8px;font-size:15px;flex-shrink:0}.header-profile-name{min-width:0}.profile-button .header-profile-name strong{font-size:16px;color:#707886;line-height:1.4;display:block;max-width:185px;overflow-wrap:anywhere}.profile-chevron{flex-shrink:0;color:#484453}.header-popover{position:absolute;right:0;top:calc(100% + 14px);width:270px;max-width:calc(100vw - 28px);padding:12px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 36px #3024381c;z-index:100}.header-popover h3{font-size:16px;margin:6px 10px 4px}.header-popover>p{font-size:13px;color:var(--muted);margin:4px 10px 14px}.header-popover>small{display:block;margin:12px 10px 5px;font-size:11px;color:var(--muted);letter-spacing:.06em}.header-popover button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px;border:0;border-radius:6px;background:white;color:var(--ink);font-size:14px;text-align:left;line-height:1.5}.header-popover button span{min-width:0;overflow-wrap:anywhere}.header-popover button .ui-icon{color:#9478a3;flex-shrink:0}.header-popover button:hover,.header-popover button:focus-visible{background:var(--primary-soft);color:var(--primary)}.header-menu-divider{height:1px;background:var(--line);margin:8px 0}.header-profile-info{padding:8px 10px 12px;border-bottom:1px solid var(--line);margin-bottom:8px;overflow-wrap:anywhere}.header-profile-info strong{display:block;font-size:15px}.header-profile-info small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.workspace>header #logout{color:var(--danger);padding:10px;font-size:14px}.header-popover #logout .ui-icon{color:var(--danger)}.quick-access{width:370px}.quick-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:min(65dvh,520px);overflow-y:auto}.quick-access-grid button{flex-direction:column;justify-content:flex-start;text-align:center;gap:9px;padding:14px 6px;font-size:12px;min-height:86px}.quick-access-grid button .ui-icon{width:24px;height:24px}.header-dropdown:not([open])>.header-popover{display:none}
@media(min-width:761px) and (max-width:1100px){.workspace>header{gap:10px}.workspace>header .profile-button>.header-profile-name{display:none}.profile-dropdown{padding-left:12px}.workspace>header .global-search-trigger{min-width:160px}}
@media(max-width:760px){.workspace>header{gap:4px;padding:0 12px;justify-content:flex-end}.workspace>header .mobile-nav-trigger{margin-right:auto;width:40px;min-width:40px}.workspace>header .global-search-trigger{flex:0 0 40px;min-width:40px;width:40px;max-width:40px;height:44px;padding:8px;margin:0;background:transparent;justify-content:center}.global-search-trigger kbd{display:none}.header-icon,.workspace>header .notification-button{min-width:38px;width:38px;height:44px;padding:7px}.header-icon .ui-icon,.notification-button>.ui-icon{width:22px;height:22px}.profile-dropdown{padding-left:8px;margin-left:4px}.workspace>header .profile-button{min-height:44px;gap:0}.workspace>header .profile-button>.header-profile-name,.profile-chevron{display:none}.profile-button .avatar{width:36px;height:36px;font-size:13px}.header-popover,.quick-access{position:fixed;top:70px;right:12px;width:min(370px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 86px);overflow-y:auto}.header-popover .desktop-preference{display:none}.quick-access-grid{max-height:calc(100dvh - 190px)}.quick-access-grid button{font-size:13px}.header-dropdown>summary{touch-action:manipulation}}
/* Header QA: custom SVGs need explicit dimensions inside dropdown rows. */
.header-popover button>.ui-icon{width:20px;height:20px;flex:0 0 20px}.header-popover{max-height:calc(100dvh - 90px);overflow-y:auto}.header-popover button{height:auto;white-space:normal;overflow-wrap:anywhere}.header-popover button>span{flex:1}.header-popover .quick-access-grid button>span{flex:none}
/* Native details retain keyboard behavior while panels animate in both directions. */
@media(prefers-reduced-motion:no-preference){
.header-dropdown .header-popover{opacity:0;transform:translateY(-6px);transition:opacity 150ms ease,transform 150ms ease,display 150ms allow-discrete;will-change:auto}
.header-dropdown[open]>.header-popover{opacity:1;transform:translateY(0)}
.header-dropdown::details-content{content-visibility:hidden;transition:content-visibility 150ms allow-discrete}
.header-dropdown[open]::details-content{content-visibility:visible}
.header-dropdown>.header-icon{transition:background-color 150ms ease,color 150ms ease}
.profile-chevron{transition:transform 150ms ease}.profile-dropdown[open] .profile-chevron{transform:rotate(180deg)}
@starting-style{.header-dropdown[open]>.header-popover{opacity:0;transform:translateY(-6px)}}
}
@media(prefers-reduced-motion:reduce){.header-dropdown .header-popover,.header-dropdown::details-content,.header-dropdown>.header-icon,.profile-chevron{transition:none!important;transform:none}}
/* Switching menus retires the previous panel immediately, without overlapping exits. */
.header-dropdown:not([open])>.header-popover{pointer-events:none}.header-dropdown.header-menu-superseded>.header-popover,.header-dropdown.header-menu-superseded::details-content{transition:none!important}
/* Two-color palette: purple for navigation and primary actions; petrol for supporting information. */
:root{--accent:#246e73;--accent-hover:#19585e;--accent-soft:#eaf5f4;--accent-line:#cce3e1;--info:var(--accent);--info-bg:var(--accent-soft)}
.secondary,.edit-button{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.secondary:hover,.edit-button:hover{background:#dceeed;border-color:#b6d6d3;color:var(--accent-hover)}.content:has(.home-greeting) .secondary{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.text-button{color:var(--accent)}.text-button:hover{background:var(--accent-soft)}.text-button:is(.company-delete,.project-remove,.delete-announcement),.company-delete,.project-remove,.document-delete{color:var(--danger)}
.module-icon,.document-file-icon,.notification-feed-icon,.search-result-icon{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.company-tag{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.company-tag button{color:var(--accent)}.info,.fx-preview,.company-opening-info{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.company-opening-info strong{color:var(--accent-hover)}.company-account-grid>div,.project-balances>div{background:#f2f9f8;border-color:#daebe8}.company-account-grid strong,.project-balances strong{color:var(--accent-hover)}.company-account-grid small,.project-balances small{color:#526e70}
.finance-purchases,.finance-purchases-key{fill:#448f94;background:#448f94}.finance-mobile-bars .mobile-purchases{fill:#448f94}.finance-card-icon.purchases,.finance-card-icon.neutral{background:var(--accent-soft);color:var(--accent)}.finance-card-icon.sales,.finance-card-icon.net{background:var(--primary-soft);color:var(--primary)}.finance-card-icon.neutral{color:var(--accent)}.finance-legend>span:nth-child(2){color:var(--accent)}.finance-mobile-selected{background:#f2f9f8;border-color:var(--accent-line)}
.shared-agenda,.home-daily-grid .shared-agenda{background:#f2f8f7;border-color:#dcebe8}.loan-day-event.task,.loan-day-event.installment,.home-daily-grid .loan-day-event.task,.home-daily-grid .loan-day-event.installment{background:var(--accent-soft);color:var(--accent);border-left-color:#5b9d9e}.loan-dot.task,.loan-dot.installment{background:#448f94}.loan-event-amount{color:var(--accent-hover)}.task-dot.completed{background:#448f94}.task-lane:has(.task-dot.completed){background:#edf5f3;border-color:#dcebe8}.task-history article{border-color:#9dc8c4}.project-timeline li:before{background:#448f94}.project-change-details>div,.loan-history-details{background:#f2f8f7;border-color:#dcebe8;color:#526e70}
.badge.status-in_progress,.request-in_progress{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.analysis-history li{border-color:#dcebe8}.announcement-read{color:var(--accent)}.announcement-card.is-pinned{border-left-color:#9b73b1}.notification-feed-item.unread .notification-feed-icon{background:var(--accent-soft);color:var(--accent)}.notification-feed-meta i{background:var(--accent)}.notification-tabs button.selected{background:var(--accent-soft);color:var(--accent)}.notification-feed-title:hover{color:var(--accent)}
.header-popover button>.ui-icon{color:var(--accent)}.header-icon:hover,.header-dropdown[open]>.header-icon{background:var(--accent-soft);color:var(--accent)}.header-popover button:hover,.header-popover button:focus-visible{background:var(--accent-soft);color:var(--accent)}.header-popover #logout,.header-popover #logout>.ui-icon{color:var(--danger)}.quick-access-grid button>.ui-icon{color:var(--accent)}.profile-dropdown .avatar{background:var(--primary-soft);color:var(--primary)}
.chat-avatar.tone-2{background:var(--accent-soft);color:var(--accent)}.chat-icon-button:hover,#chat-person{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.chat-send{background:var(--accent)}.chat-send:hover{background:var(--accent-hover)}.chat-sender{color:var(--accent)}.chat-connection-dot.connected,.chat-heading-dot{background:#448f94}.chat-receipt.is-read{color:var(--accent)}.chat-load-older,.chat-new{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.chat-person-arrow{color:var(--accent)}
/* Preserve primary purple focus and selected navigation, including mobile. */
:is(button,input,textarea,select,summary):focus-visible{outline-color:var(--primary)}.shell aside .nav-item.active,.shell aside .nav-item.active>.nav-module-label{color:#79478f}.global-search-result:hover,.global-search-result:focus-visible{background:var(--accent-soft)}
.profile-button .header-profile-name strong{color:#626b79}.shell .mobile-nav-close{color:#705c7c}
/* Palette QA: popovers, empty states and hover/focus must use the same semantic colors. */
.close{background:var(--primary-soft);color:#70537f}.close:hover{background:#e9dcef;color:#593b6c}.finance-tooltip{background:var(--surface);border-color:var(--accent-line);color:var(--accent);box-shadow:0 6px 24px #246e7314}.finance-tooltip strong{color:var(--accent-hover)}.finance-tooltip b{color:var(--ink)}.finance-no-data{background:#fffffff5;border-color:var(--line);color:var(--muted)}.finance-month:hover .finance-sales,.finance-month:focus-visible .finance-sales{fill:var(--primary-hover)}.finance-month:hover .finance-month-hit,.finance-month:focus-visible .finance-month-hit{fill:var(--primary-soft)}.finance-card>strong.finance-negative{color:var(--accent)}.finance-summary-controls .eyebrow{color:var(--muted)}
.chat-info-description{color:var(--muted);font-size:14px}.chat-info-heading p{color:var(--muted);font-size:13px}.chat-empty-icon{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}.chat-people button:hover{background:var(--accent-soft)}.chat-person-row strong>span{color:var(--muted)}.chat-message-menu>div,.chat-conversation-menu>div,.chat-emoji-picker{border-color:var(--line)}.chat-bubble p em{color:var(--muted)}.chat-search-result{color:var(--muted)}.document-file-icon{color:var(--accent)}.document-current{background:var(--accent-soft);border-color:var(--accent-line)}.loan-paste{background:#f2f8f7}.loan-paste summary{color:var(--accent)}.request-steps .reached{color:var(--accent)}.request-steps .reached>span{background:var(--accent);color:white}.request-status-form{background:#f2f8f7;border-color:var(--accent-line)}
/* Consistent interactive states: primary purple, secondary petrol, explicit disabled surfaces. */
.primary:hover:not(:disabled){background:var(--primary-hover);color:#fff}.primary:active:not(:disabled){background:#60347b;color:#fff}.secondary:hover:not(:disabled),.edit-button:hover:not(:disabled){background:#dceeed;color:var(--accent-hover);border-color:#abcfcB}.secondary:active:not(:disabled),.edit-button:active:not(:disabled){background:#cce4e1;color:#164f54;border-color:#91beba}.text-button:hover:not(:disabled){background:var(--accent-soft);color:var(--accent-hover)}.text-button:active:not(:disabled){background:#dceeed;color:#164f54}.danger:hover:not(:disabled){background:#f7dce3;color:#893146;border-color:#e7beca}.danger:active:not(:disabled){background:#efc9d3;color:#76263a}
button.primary:disabled,button.secondary:disabled,button.edit-button:disabled,button.danger:disabled,button.text-button:disabled,button.chat-send:disabled{opacity:1;background:#eeedf1;color:#6c6574;border-color:#d9d5df;box-shadow:none;cursor:not-allowed}.text-button:disabled{border:1px solid #d9d5df}.primary:disabled:hover,.secondary:disabled:hover,.edit-button:disabled:hover,.danger:disabled:hover,.text-button:disabled:hover{background:#eeedf1;color:#6c6574;border-color:#d9d5df}
button:disabled{cursor:not-allowed}.header-popover button:disabled,.quick-access-grid button:disabled{opacity:1;background:#eeedf1;color:#6c6574}.header-popover button:disabled .ui-icon{color:#6c6574}.chat-icon-button:disabled,.favorite-toggle:disabled{opacity:1;color:#766f7e;background:#eeedf1}.chat-tabs button.active,.chat-tabs button[aria-selected=true]{background:var(--primary-soft);color:#794b91}.chat-tabs button:hover:not(.active){background:var(--accent-soft);color:var(--accent)}.announcement-tab.selected,.announcement-tab[aria-selected=true]{background:var(--primary-soft);color:#794b91;border-color:#d8c2e3}.announcement-tab:hover:not(.selected){background:var(--accent-soft);color:var(--accent)}.announcement-tab:active{background:#e4d4ee}.notification-tabs button.selected,.notification-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-line)}.notification-tabs button:hover:not(.selected){background:#f4f8f8;color:var(--accent-hover)}.request-summary-item:hover{border-color:#97c2bd;background:#f5faf9}.request-summary-item.selected{background:var(--primary-soft);border-color:#bd9bce;box-shadow:inset 3px 0 var(--primary)}.request-summary-item:active{background:#e7d9ef}.task-card:active{background:#f8f3fb;border-color:#bd9bce}.company-title:hover,.document-title:hover,.request-title:hover{color:var(--accent-hover)}
/* Keyboard focus is visible without changing the button's semantic palette. */
:is(button,summary):focus-visible{outline:2px solid var(--primary);outline-offset:3px}.secondary:focus-visible,.edit-button:focus-visible,.text-button:focus-visible{outline-color:var(--accent)}.danger:focus-visible{outline-color:var(--danger)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){:is(.primary,.secondary,.edit-button,.danger,.text-button,.announcement-tab,.notification-tabs button,.chat-tabs button){transition:background-color 120ms ease,color 120ms ease,border-color 120ms ease,--scrollbar-fade-color 240ms ease}}
:is(.content,dialog,.chat-layout) button:is(.primary,.secondary,.edit-button,.danger,.text-button,.chat-send):disabled,:is(.content,dialog,.chat-layout) button:is(.primary,.secondary,.edit-button,.danger,.text-button,.chat-send):disabled:hover{opacity:1;background:#eeedf1;color:#6c6574;border-color:#d9d5df;box-shadow:none;cursor:not-allowed}
.text-button:is(.company-delete,.project-remove,.delete-announcement,.document-delete):hover:not(:disabled){background:var(--danger-bg);color:var(--danger)}
/* Forms: clear focus, readable disabled fields and local validation feedback. */
:root{--field-border:#b6afc0;--field-focus:#8752a5;--field-error:#9f3d53;--field-disabled-bg:#eeedf1;--field-disabled-ink:#625b6b}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:var(--field-border)}
input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:var(--field-focus);outline:2px solid #8752a52b;outline-offset:1px;box-shadow:0 0 0 1px var(--field-focus)}
form label:focus-within{color:#70418c}input[type=checkbox]:focus-visible,input[type=radio]:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
input[aria-invalid=true]:not([type=checkbox]):not([type=radio]),select[aria-invalid=true],textarea[aria-invalid=true]{border:1px solid var(--field-error);background:#fff8fa;box-shadow:inset 3px 0 var(--field-error)}
input[aria-invalid=true]:focus,select[aria-invalid=true]:focus,textarea[aria-invalid=true]:focus{outline:2px solid #9f3d532b;outline-offset:1px;box-shadow:inset 3px 0 var(--field-error),0 0 0 1px var(--field-error)}
input[type=checkbox][aria-invalid=true],input[type=radio][aria-invalid=true]{outline:2px solid var(--field-error);outline-offset:2px}
.field-feedback{display:block!important;margin:7px 0 0!important;color:var(--field-error)!important;font-size:13px!important;font-weight:500;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
:is(.content,dialog,.login-form) input:disabled,:is(.content,dialog,.login-form) select:disabled,:is(.content,dialog,.login-form) textarea:disabled{opacity:1;background:var(--field-disabled-bg);color:var(--field-disabled-ink);border-color:#c9c3d0;cursor:not-allowed;-webkit-text-fill-color:var(--field-disabled-ink)}
input[readonly],textarea[readonly]{background:#f0f7f6;color:var(--accent-hover);border-color:#bdd8d4;cursor:text}
.permission-option:has(input:disabled){opacity:1;background:var(--field-disabled-bg);color:var(--field-disabled-ink)}.permission-option:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}.permission-option:has(input:checked){background:var(--accent-soft);border-color:var(--accent-line)}
@media(prefers-reduced-motion:no-preference){input,select,textarea{transition:border-color 120ms ease,background-color 120ms ease,box-shadow 120ms ease,--scrollbar-fade-color 240ms ease}}
@media(max-width:760px){.field-feedback{font-size:14px!important}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}}
/* Leave room around validated fields under sticky headers and mobile keyboards. */
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true],.field-feedback{scroll-margin-block:90px 24px}.modal-body label:has([aria-invalid=true]){scroll-margin-block:20px}.modal-body:has([aria-invalid=true]){padding-bottom:max(28px,env(safe-area-inset-bottom))}
/* Save feedback stays visible above mobile overlays and is readable at both sizes. */
#toast{z-index:200;font-size:15px;line-height:1.6;max-width:min(460px,calc(100vw - 32px));padding:16px 22px;border:1px solid #665571;box-shadow:0 8px 28px #30243824}form[aria-busy=true] button[type=submit]{cursor:wait}@media(max-width:760px){#toast{bottom:max(18px,env(safe-area-inset-bottom));font-size:15px;max-width:none}}
#analysis-upload-file-picker[hidden]{display:none!important}
/* Keep the upload form mounted beneath its small confirmation dialog. */
dialog.queue-clear-confirm{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 32px)}.queue-clear-confirm .modal-heading h2{font-size:21px;overflow-wrap:anywhere}.queue-clear-confirm .modal-body{font-size:15px;line-height:1.7}.queue-clear-confirm .modal-body>p:first-child{margin-top:0}.queue-clear-confirm .info{margin-bottom:0}.queue-clear-confirm .modal-footer{flex-wrap:wrap;gap:10px}.queue-clear-confirm .modal-footer button{min-height:44px}@media(max-width:760px){.queue-clear-confirm .modal-heading,.queue-clear-confirm .modal-body{padding:20px}.queue-clear-confirm .modal-heading h2{font-size:20px}.queue-clear-confirm .modal-footer button{flex:1 1 120px}}

/* Mobile record links remain easy to tap even when the title fits on one line. */
@media(max-width:760px){
 #content :is(button.company-title,button.announcement-title,button.document-title,button.request-title){min-height:44px;display:inline-flex;align-items:center;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.5}
 .chat-message-menu button,.chat-conversation-menu>div>button,dialog .close{min-height:44px;min-width:44px}
}

/* Original NG mark and readable slogan, scaled for each navigation size. */
.brand,.sidebar-brand-row .brand{flex-direction:column;align-items:center;gap:14px;text-align:center;min-width:0}
.brand>.brand-logo{display:block;flex:0 0 auto;width:148px;max-width:100%;height:auto;object-fit:contain;background:#fff;border-radius:6px}
.brand>.brand-slogan,.sidebar-brand-row .brand>.brand-slogan,.login-story .brand>.brand-slogan{display:block;margin:0;max-width:100%;font-size:11px;font-weight:500;line-height:1.65;letter-spacing:.65px;white-space:normal;text-wrap:balance}
.sidebar-brand-row .brand>.brand-slogan{color:#655d6e}
.login-story .brand{align-self:flex-start;width:max-content;max-width:100%}
.login-story .brand>.brand-logo{width:156px;padding:10px;border-radius:10px;box-sizing:content-box}
@media(min-width:761px){.sidebar-collapsed .brand>.brand-logo{width:44px;padding:0;border-radius:3px}.sidebar-collapsed .brand>.brand-slogan{display:none}}
@media(max-width:760px){.sidebar-brand-row .brand>.brand-logo{width:132px}.login-story .brand>.brand-logo{width:132px;padding:8px}}
@media(prefers-reduced-motion:no-preference){.brand>.brand-logo{transition:width 260ms cubic-bezier(.22,.68,.25,1)}}
