@font-face{font-family:NR;src:local('Noto Sans KR')}*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{margin:0;background:#eef2f6;color:#233248;font-family:NR,'Malgun Gothic',sans-serif;font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:#356ae6;text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #99b7ff;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.5}svg{width:20px;height:20px;flex:none;vertical-align:middle}h1{font-size:28px;line-height:40px;margin:0;font-weight:700;letter-spacing:-.7px}h2{font-size:18px;line-height:28px;margin:0 0 16px;font-weight:700}h3{font-size:14px;line-height:24px;margin:0 0 8px}p{margin:0 0 12px}small,.small{font-size:12px;line-height:20px}.muted{color:#64748b}.brand{color:white;font-size:19px;font-weight:700;display:flex;gap:10px;align-items:center;text-decoration:none!important;letter-spacing:-.5px}.brand img{width:30px;height:30px}.app-header{background:#172b4d;color:white;min-height:64px;padding:10px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.header-left,.header-right{display:flex;align-items:center;gap:16px}.header-right select{min-height:36px;max-width:190px;background:#23395c;color:white;border-color:#476082;font-size:12px}.app-nav{display:flex;padding:6px 24px;gap:4px;background:white;border-bottom:1px solid #e1e7ef;justify-content:center}.app-nav a{flex:1;max-width:130px;min-height:52px;display:flex;justify-content:center;align-items:center;gap:7px;color:#64748b;font-weight:700;border-radius:6px;white-space:nowrap}.app-nav svg{display:none}.app-nav a.active,.app-nav a:hover{background:#eaf0ff;color:#356ae6;text-decoration:none}.app-nav a.active svg,.app-nav a:hover svg{display:block}.demo-bar{background:#f7f9fc;border-bottom:1px solid #e1e7ef;padding:7px 32px;color:#64748b;font-size:12px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.demo-bar span:before{content:'';display:inline-block;width:6px;height:6px;background:#356ae6;border-radius:50%;margin-right:7px}.content{max-width:1504px;margin:auto;padding:32px}.page-title{margin-bottom:24px}.page-title p{color:#64748b;margin:6px 0 0}.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:#64748b;margin-bottom:16px}.crumbs button{font-size:12px}.grid{display:grid;gap:20px;align-items:start}.grid.two{grid-template-columns:1fr 1fr}.grid.home-grid{grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr)}.grid.form-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.stack{display:grid;gap:20px;min-width:0}.panel{background:white;border:1px solid transparent;border-radius:10px;padding:24px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.panel-head h2,.panel-head h3{margin:0}.panel-head a{font-size:12px}.toolbar,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar{margin-bottom:20px}.actions{margin-top:20px}.toolbar>.search{flex:1;max-width:500px}.spacer{flex:1}.btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d5dee9;border-radius:6px;background:white;color:#233248;padding:10px 16px;font-weight:700;text-decoration:none;line-height:22px}.btn:hover{background:#f1f5fa;text-decoration:none}.btn.primary{background:#356ae6;border-color:#356ae6;color:white}.btn.primary:hover{background:#2858c9}.btn.danger{color:#a24444;border-color:#e4caca}.btn.ghost{background:transparent;border-color:transparent}.btn.icon{width:44px;min-width:44px;padding:10px}.header-left .btn{color:white}.link{border:0;background:transparent;color:#356ae6;padding:0;cursor:pointer;text-align:left;line-height:24px}.menu-trigger{display:none}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{display:block;background:white;padding:18px 22px;border-radius:9px;color:#233248;text-decoration:none!important;border:1px solid transparent}.stat:hover{border-color:#cbd8f5}.stat>span{font-size:12px;color:#64748b}.stat strong{display:block;font-size:28px;line-height:40px;color:#356ae6;margin-top:7px}.stat small{display:block}.list{list-style:none;margin:0;padding:0}.list>li{padding:16px 0;border-bottom:1px solid #e1e7ef}.list>li:last-child{border-bottom:0;padding-bottom:0}.list>li:first-child{padding-top:0}.item-title{font-weight:700;display:block;color:#233248}.item-meta{font-size:12px;line-height:20px;color:#64748b;margin-top:4px}.row{display:flex;gap:12px;align-items:center;min-width:0}.row.wrap{flex-wrap:wrap}.row .grow{flex:1;min-width:0}.avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#eaf0ff;color:#356ae6;font-weight:700;flex:none}.badge{display:inline-flex;align-items:center;font-size:12px;line-height:20px;padding:2px 8px;border-radius:4px;background:#f1f5fa;color:#64748b;white-space:nowrap}.badge.blue{background:#eaf0ff;color:#356ae6}.badge.green{background:#edf6f1;color:#246b57}.badge.red{background:#f9efef;color:#a24444}.badge.amber{background:#faf4e8;color:#89621c}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:14px 12px;border-bottom:1px solid #e1e7ef;vertical-align:middle;text-align:left;line-height:24px}.table th{font-size:12px;background:#f1f5fa;color:#64748b;font-weight:700;white-space:nowrap}.table td{font-size:14px}.table tr:last-child td{border-bottom:0}.table tbody tr.clickable:hover{background:#f7f9ff}.table .btn{white-space:nowrap}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.tab{min-height:44px;padding:10px 16px;border:0;border-radius:6px;background:white;color:#64748b}.tab.active{background:#eaf0ff;color:#356ae6;font-weight:700}.search{position:relative}.search svg{position:absolute;left:13px;top:14px;color:#94a3b8}.search input{padding-left:40px}.field{display:grid;gap:7px;min-width:0}.field label,.field-label{font-weight:700;font-size:14px;line-height:24px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}.full{grid-column:1/-1}input,select,textarea{width:100%;min-width:0;min-height:46px;border:1px solid #d5dee9;background:white;color:#233248;border-radius:6px;padding:10px 12px;line-height:24px}textarea{resize:vertical;min-height:120px}input[type=checkbox]{width:18px;min-height:18px;accent-color:#356ae6;padding:0}input:disabled{background:#f1f5fa}.checks{display:flex;gap:12px 20px;flex-wrap:wrap}.checks label{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:400}.notice{padding:12px 16px;border-left:3px solid #356ae6;background:#f1f5fa;line-height:24px;margin-bottom:20px}.notice.warning{border-color:#89621c}.notice.error{border-color:#a24444;color:#a24444}.notice.success{border-color:#246b57}.notice p:last-child{margin:0}.empty{padding:40px 16px;text-align:center;color:#64748b;line-height:24px}.empty>svg{width:32px;height:32px;color:#94a3b8;margin-bottom:12px}.empty strong{display:block;color:#233248;margin-bottom:6px}.empty .btn{margin-top:16px}.module-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:24px;align-items:start}.side{background:white;border:1px solid #e1e7ef;border-radius:9px;padding:20px 16px}.side h2{font-size:18px}.side-nav{display:grid;gap:0}.side-nav a{display:flex;align-items:center;min-height:44px;padding:10px 8px;color:#64748b;border-bottom:1px solid #e1e7ef;font-size:13px}.side-nav a:last-child{border-bottom:0}.side-nav a.active{background:#eaf0ff;color:#356ae6;font-weight:700}.side-nav a:hover{text-decoration:none;color:#356ae6}.project-context{background:#f1f5fa;padding:12px;border-radius:6px;margin:12px 0 16px;overflow-wrap:anywhere}.project-context strong{display:block;margin-bottom:4px}.project-mobile-select{display:none}.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.calendar-head strong{font-size:16px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #e1e7ef;border-top:1px solid #e1e7ef}.calendar-grid .dow{background:#f7f9fc;color:#64748b;font-size:12px;text-align:center;line-height:34px;border-right:1px solid #e1e7ef;border-bottom:1px solid #e1e7ef}.cal-day{min-width:0;min-height:82px;border:0;border-right:1px solid #e1e7ef;border-bottom:1px solid #e1e7ef;background:white;padding:8px;text-align:left;color:#233248;position:relative}.cal-day:hover{background:#f1f5fa}.cal-day.selected{background:#eaf0ff;color:#356ae6}.cal-day.today .day-num{background:#356ae6;color:white;border-radius:50%;display:inline-grid;place-items:center;width:24px;height:24px}.cal-day.outside{color:#b4becb}.cal-day .dot{display:block;width:5px;height:5px;background:#356ae6;border-radius:50%;margin:5px auto}.cal-day small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;margin-top:4px}.compact-calendar .cal-day{min-height:44px;text-align:center;padding:7px 2px}.compact-calendar .cal-day small{display:none}.selected-events{margin-top:20px}.folder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.folder-card{background:white;border:1px solid #d5dee9;border-radius:9px;padding:20px;min-width:0;display:flex;flex-direction:column;gap:10px}.folder-card:hover{border-color:#9bb5eb}.folder-card .folder-open{border:0;padding:0;text-align:left;background:transparent;color:inherit;cursor:pointer;display:grid;gap:8px;flex:1}.folder-icon{color:#356ae6}.folder-icon svg{width:28px;height:28px}.folder-title{font-weight:700;overflow-wrap:anywhere}.file-type{background:#f1f5fa;border-radius:6px;min-height:70px;display:grid;place-items:center;color:#356ae6;font-size:20px;font-weight:700}.folder-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.file-actions{display:flex;gap:8px;flex-wrap:wrap}.file-actions .btn{font-size:12px;padding:7px 10px;min-height:38px}.preview-tree{list-style:none;padding:0;margin:0}.preview-tree li{padding:10px 0;border-bottom:1px solid #e1e7ef;overflow-wrap:anywhere}.preview-tree li:last-child{border-bottom:0}.preview-tree svg{width:16px;height:16px;color:#356ae6;margin-right:8px}.mail-list-row{display:grid;grid-template-columns:42px 150px minmax(0,1fr) 100px;gap:12px;align-items:center;padding:15px 8px;border-bottom:1px solid #e1e7ef}.mail-list-row:last-child{border-bottom:0}.mail-list-row.unread{font-weight:700;background:#f7f9ff}.mail-list-row .subject{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#233248}.mail-list-row .btn{border:0;background:transparent}.mail-list-row small{color:#64748b;text-align:right}.mail-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;padding:24px 0}.mail-metadata{font-size:12px;color:#64748b;display:grid;gap:4px}.composer{position:fixed;right:24px;bottom:16px;width:560px;max-width:calc(100vw - 48px);background:white;border:1px solid #c5d1e3;border-radius:10px;box-shadow:0 8px 40px #172b4d24;z-index:50;overflow:hidden;max-height:calc(100dvh - 32px);display:flex;flex-direction:column}.composer-head{background:#172b4d;color:white;padding:4px 12px 4px 20px;display:flex;align-items:center;justify-content:space-between;min-height:48px}.composer-head .btn{color:white}.composer-body{padding:20px;overflow-y:auto}.composer .field{margin-bottom:12px}.composer textarea{min-height:140px}.composer.expanded{width:900px;right:50%;transform:translateX(50%)}dialog{border:0;border-radius:12px;width:640px;max-width:calc(100vw - 32px);padding:0;color:#233248;box-shadow:0 10px 60px #172b4d33}dialog::backdrop{background:#172b4d55}#dialog-content{padding:24px;max-height:85dvh;overflow:auto}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-head h2{margin:0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#172b4d;color:white;border-radius:7px;padding:12px 20px;box-shadow:0 5px 20px #172b4d20;z-index:100;max-width:calc(100vw - 32px);width:max-content;display:none}#toast.visible{display:block}.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#eef2f6}.login-card{width:440px;max-width:100%;background:white;border-radius:12px;padding:36px;border:1px solid #e1e7ef}.login-card img{width:44px;margin-bottom:24px}.login-card h1{font-size:24px}.login-card .btn{width:100%;margin-top:16px}.login-card .field{margin-top:16px}.login-note{font-size:12px;color:#64748b;line-height:22px;margin-top:20px}.mobile-launcher,.welcome-mobile{display:none}.progress-steps{list-style:none;padding:0;margin:20px 0}.progress-steps li{display:flex;align-items:center;gap:12px;min-height:64px;border-bottom:1px solid #e1e7ef}.progress-steps li:last-child{border:0}.step-num{width:32px;height:32px;background:#eaf0ff;color:#356ae6;border-radius:50%;display:grid;place-items:center}.summary{display:grid;grid-template-columns:130px 1fr;margin:0}.summary dt,.summary dd{margin:0;padding:12px 0;border-bottom:1px solid #e1e7ef;line-height:24px;overflow-wrap:anywhere;align-content:center}.summary dd{padding-left:12px}.summary dt{font-size:12px;color:#64748b}.summary dt:last-of-type,.summary dd:last-of-type{border:0}.audit{font-family:inherit;font-size:12px;color:#64748b}.status-success{color:#246b57}.footer{font-size:12px;color:#64748b;padding:28px 0 0}.receipt-preview{max-width:100%;max-height:280px;object-fit:contain;border:1px solid #e1e7ef;border-radius:6px}.attachment{background:#f1f5fa;padding:12px 16px;border-radius:6px;display:flex;align-items:center;gap:12px;margin-top:16px}.menu-page{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.menu-page a{display:flex;gap:12px;align-items:center;min-height:64px;background:white;padding:16px;border-radius:8px;color:#233248}.menu-page svg{color:#356ae6}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}
@media(max-width:1365px){.app-nav{display:none}.menu-trigger{display:inline-flex}.content{padding:24px}.app-header{padding:10px 24px}.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-launcher{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin:20px 0 24px}.mobile-launcher a{display:grid;justify-items:center;gap:8px;color:#233248;font-size:12px;min-height:92px}.mobile-launcher .launch-icon{width:56px;height:56px;display:grid;place-items:center;background:#eaf0ff;color:#356ae6;border-radius:12px}.mobile-launcher svg{width:24px;height:24px}.welcome-mobile{display:flex;margin-bottom:16px}.header-left{gap:8px}.brand{font-size:18px}.demo-bar{padding:7px 24px}}
@media(max-width:1099px){.module-layout{grid-template-columns:1fr}.module-layout>.side{display:none}.project-mobile-select{display:block;margin-bottom:20px}.grid.home-grid,.grid.form-grid{grid-template-columns:1fr}.mobile-launcher{grid-template-columns:repeat(4,minmax(0,1fr))}.mail-list-row{grid-template-columns:36px 130px minmax(0,1fr) 85px}.stats{gap:12px}.app-header .brand img{display:none}}
@media(max-width:767px){.content{padding:20px 16px}.app-header{padding:8px 12px;gap:8px}.header-left,.header-right{gap:6px}.brand{font-size:14px;white-space:nowrap}.header-right select{max-width:95px;padding:5px;font-size:11px}.header-right .logout{display:none}.demo-bar{padding:7px 16px;font-size:11px}.demo-bar .desktop-note{display:none}.panel{padding:16px}.page-title{margin-bottom:20px}.page-title h1{font-size:26px;line-height:38px}.grid.two,.fields{grid-template-columns:1fr}.full{grid-column:auto}.stats,.stats.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{padding:14px 16px}.toolbar{gap:8px}.toolbar>.search{max-width:none;flex-basis:100%}.toolbar>.spacer{display:none}.btn{padding:10px 12px}.folder-grid{grid-template-columns:1fr}.folder-card{padding:16px}.calendar-grid .cal-day{min-height:58px;padding:5px;text-align:center}.cal-day small{display:none}.compact-calendar .cal-day{min-height:44px}.calendar-head strong{font-size:14px}.mail-list-row{grid-template-columns:32px minmax(0,1fr) 80px;gap:8px;position:relative;align-items:start}.mail-list-row .sender{grid-column:2;grid-row:1;font-size:12px}.mail-list-row .subject{grid-column:2/4;grid-row:2;white-space:normal}.mail-list-row .star{grid-column:1;grid-row:1/3}.mail-list-row small{grid-column:3;grid-row:1;font-size:11px}.composer,.composer.expanded{right:0;top:0;bottom:0;width:100%;max-width:none;border-radius:0;max-height:100dvh;transform:none;z-index:70}.composer-body{flex:1}.composer textarea{min-height:200px}.composer-head{flex:none}.summary{grid-template-columns:100px 1fr}.menu-page{grid-template-columns:1fr 1fr}.menu-page a{font-size:13px}.table.responsive,.table.responsive tbody{display:block}.table.responsive thead{display:none}.table.responsive tr{display:block;padding:12px 0;border-bottom:1px solid #e1e7ef}.table.responsive tr:first-child{padding-top:0}.table.responsive tr:last-child{border:0;padding-bottom:0}.table.responsive td{display:block;border:0;padding:3px 0;overflow-wrap:anywhere;line-height:24px}.table.responsive td::before{content:attr(data-label) ' · ';color:#64748b;font-size:12px;font-weight:400}.table.responsive td[data-label="업무"]::before,.table.responsive td[data-label="프로젝트"]::before,.table.responsive td[data-label="제목"]::before{content:none}.table.responsive td[data-label="업무"],.table.responsive td[data-label="프로젝트"],.table.responsive td[data-label="제목"]{font-weight:700}.table.responsive td:empty{display:none}.tabs{gap:6px}.tab{font-size:12px;padding:9px 12px}.panel-head{align-items:start}.login-card{padding:24px}.steps li{font-size:12px}input,select,textarea{font-size:16px}.field .checks label{font-size:14px}#dialog-content{padding:20px 16px}.actions{gap:8px}.footer{padding-top:20px}.toolbar select{max-width:100%}}
.btn{white-space:nowrap}.header-right{flex-shrink:0}.app-header .btn,.app-header .btn:hover{background:transparent;border-color:transparent;color:white}.app-header .logout{min-width:72px}.app-header .header-right select{width:auto}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Header sign-out action */
.app-header .btn.logout{min-height:36px;min-width:112px;padding:7px 12px;border:1px solid #617796;border-radius:6px;background:#2b4265;color:#fff;font-size:12px;line-height:20px;transition:background .15s,border-color .15s}.app-header .btn.logout:hover{background:#3a547b;border-color:#94a7c3}.app-header .btn.logout:active{background:#23395c}.app-header .btn.logout svg{width:16px;height:16px}

.approval-flow{gap:16px}.approval-arrow{display:inline-flex;transform:rotate(180deg);color:#64748b}.approval-message{margin:0}.approval-footer{display:flex;align-items:center;margin-top:24px;padding-top:20px;border-top:1px solid #e1e7ef}

/* Calendar day categories are shared by home and schedule views. */
.calendar-grid .dow.saturday{color:#3566ad}.calendar-grid .dow.sunday{color:#b34343}
.cal-day.saturday{background:#f5f8ff}.cal-day.saturday .day-num{color:#3566ad}
.cal-day.sunday,.cal-day.public-holiday{background:#fff5f5}.cal-day.sunday .day-num,.cal-day.public-holiday .day-num{color:#b34343}
.cal-day.company-holiday{background:#fff5e8}.cal-day.company-holiday .day-num{color:#93601c}
.cal-day.public-holiday.company-holiday{background:linear-gradient(135deg,#fff5f5 50%,#fff5e8 50%)}.cal-day.public-holiday.company-holiday .day-num{color:#b34343}
.cal-day.selected{box-shadow:inset 0 0 0 2px #356ae6}.cal-day.today .day-num{color:#fff}
.cal-day:hover{box-shadow:inset 0 0 0 1px #8ea7ce}.cal-day.selected:hover{box-shadow:inset 0 0 0 2px #356ae6}
.cal-day .holiday-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;margin-top:3px;color:#a13f3f}.cal-day.company-holiday .holiday-label{color:#8a591b}
.cal-day .dot{margin:4px auto}.calendar-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px;color:#64748b;margin-top:12px}.calendar-legend span{display:inline-flex;gap:5px;align-items:center}.calendar-legend span:before{content:'';width:8px;height:8px;border-radius:2px;background:#3566ad}.calendar-legend .legend-public:before{background:#b34343}.calendar-legend .legend-company:before{background:#bc8437}
@media(max-width:767px){.cal-day .holiday-label{font-size:10px;line-height:14px}.calendar-legend{gap:6px 10px}}

.mail-list-row .draft-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;color:#64748b}.mail-list-row .subject.btn{display:block;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;text-align:left;line-height:24px;font-weight:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draft-row .sender{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:767px){.mail-list-row .draft-icon{grid-column:1;grid-row:1/3;width:32px}.mail-list-row .subject.btn{white-space:normal;overflow-wrap:anywhere}}

.payment-record-actions{margin-top:10px}

.mail-list-row.draft-row{grid-template-columns:44px 160px minmax(0,1fr) 120px 72px}.draft-actions{display:flex;justify-content:flex-end}.draft-actions .btn{padding:6px 12px;min-height:36px;font-size:12px}@media(max-width:767px){.mail-list-row.draft-row{grid-template-columns:32px minmax(0,1fr) 80px}.draft-row .draft-actions{grid-column:2/4;grid-row:3;margin-top:4px}.draft-row .draft-icon{grid-row:1/4}}

/* Mail management uses the same toolbar and selectable rows across mailboxes. */
.mail-actionbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.mail-actionbar>.small{min-width:62px}.mail-actionbar .btn{min-height:38px;padding:7px 12px;font-size:12px}.mail-menu{position:relative;font-size:12px}.mail-menu>summary{cursor:pointer;list-style:none;padding:8px 12px;background:#fff;border:1px solid #d5dee9;border-radius:6px;font-weight:700;min-height:38px}.mail-menu>summary:after{content:' ▾'}.mail-menu-items{position:absolute;top:calc(100% + 6px);left:0;z-index:30;background:#fff;border:1px solid #d5dee9;border-radius:8px;padding:6px;box-shadow:0 8px 24px #172b4d1a;min-width:178px;display:grid;gap:2px}.mail-menu-items .btn{justify-content:flex-start;border-color:transparent;text-align:left}.mail-list-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #e1e7ef;margin-bottom:2px}.mail-list-header label{display:flex;align-items:center;gap:10px;font-size:12px;color:#64748b}.mail-list-header input,.mail-check{width:18px;height:18px;min-height:0;padding:0;accent-color:#356ae6;flex:none}.mail-list-row.mail-selectable{grid-template-columns:24px 36px 150px minmax(0,1fr) 110px;gap:10px;align-items:center}.mail-list-row.mail-selectable.draft-row{grid-template-columns:24px 36px 150px minmax(0,1fr) 110px 64px}.mail-selectable.is-selected{background:#f0f5ff}.mail-selectable .sender{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-selectable .star,.mail-selectable .draft-icon{width:36px;min-width:36px;padding:0;min-height:36px}.mail-selectable .subject{min-width:0}.mail-actionbar .btn:disabled{opacity:.45}
@media(max-width:767px){.mail-actionbar{gap:8px}.mail-list-row.mail-selectable,.mail-list-row.mail-selectable.draft-row{grid-template-columns:24px 28px minmax(0,1fr) 80px;gap:6px;align-items:start;padding:14px 0}.mail-selectable .mail-check{grid-column:1;grid-row:1/4;margin-top:6px}.mail-selectable .star,.mail-selectable .draft-icon{grid-column:2;grid-row:1/4;width:28px;min-width:28px;min-height:32px}.mail-selectable .sender{grid-column:3;grid-row:1}.mail-selectable small{grid-column:4;grid-row:1}.mail-selectable .subject,.mail-selectable .subject.btn{grid-column:3/5;grid-row:2;white-space:normal;overflow-wrap:anywhere}.mail-selectable .draft-actions{grid-column:3/5;grid-row:3}.mail-menu-items{max-width:calc(100vw - 48px)}#mail-filter{max-width:100%}}

.side-nav .side-inactive{display:block;padding:10px 12px;color:#7a8798;background:#f7f9fc;border-radius:5px;line-height:22px}.side-inactive small{display:block;font-size:11px;line-height:18px;color:#64748b}

.toolbar #mail-filter{width:160px;flex:0 0 160px}.project-scope-note{margin-top:8px;color:#64748b;font-size:12px}

.mail-mobile-nav{display:none}@media(max-width:1099px){.mail-mobile-nav{display:flex;align-items:center;gap:12px;margin-bottom:20px}.mail-mobile-nav label{font-size:12px;color:#64748b;white-space:nowrap}.mail-mobile-nav select{width:auto;min-width:180px;max-width:100%}}

/* Keep the mail filter chevron inset consistently across browsers. */
#mail-filter{appearance:none;-webkit-appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:14px 14px}
@media(forced-colors:active){#mail-filter{appearance:auto;-webkit-appearance:auto;background-image:none}}

/* Common visual alignment pass: controls, chevrons, calendar rows. */
:root{--nr-control-height:44px;--nr-icon-size:20px;--nr-control-radius:6px;--nr-line:#e1e7ef}
input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),select{min-height:var(--nr-control-height);padding-top:9px;padding-bottom:9px}
select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;background-size:14px 14px;padding-right:40px;text-overflow:ellipsis}
select:disabled{background-color:#f1f5fa;color:#64748b;cursor:not-allowed}
input[type="checkbox"]{flex-shrink:0;vertical-align:middle}
.search svg{top:50%;transform:translateY(-50%);pointer-events:none}
.toolbar>select{width:auto;max-width:100%}
.panel-head{align-items:center}
.btn.icon{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:none}
.btn.icon svg{width:var(--nr-icon-size);height:var(--nr-icon-size);display:block}
.calendar-head .btn{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:none}
.calendar-head strong{text-align:center;line-height:24px}
.calendar-grid .cal-day{min-height:96px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.cal-day .day-num{height:24px;min-width:24px;line-height:24px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.cal-day .dot{flex:none;margin:3px 0 0}
.cal-day .holiday-label,.cal-day small{width:100%;flex:none}
.compact-calendar .cal-day{height:68px;min-height:68px;padding:7px 3px;align-items:center;text-align:center}
.compact-calendar .cal-day .dot{margin:3px auto 0}
.project-back{display:inline-flex;align-items:center;gap:6px;min-height:32px}
.project-back svg{width:16px;height:16px}
.crumbs-separator{display:inline-flex;align-items:center;color:#94a3b8}
.crumbs-separator svg{width:12px;height:12px}
.app-header .header-right select{height:36px;min-height:36px;padding:5px 30px 5px 10px;line-height:24px;background-position:right 10px center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.composer-head>div{display:flex;align-items:center;gap:4px}
.mail-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;line-height:22px}
.mail-menu>summary:after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px}
@media(max-width:767px){.calendar-grid .cal-day{min-height:76px}.compact-calendar .cal-day{height:68px;min-height:68px}.mail-actionbar .btn,.mail-menu>summary{min-height:44px}.draft-actions .btn{min-height:44px}.app-header .header-right select{padding-left:8px;font-size:11px}.panel-head{gap:12px}}
@media(forced-colors:active){select,#mail-filter,.app-header .header-right select{appearance:auto;-webkit-appearance:auto;background-image:none}}

.app-header .header-right select{background-repeat:no-repeat;background-size:14px 14px}

/* Native date/number controls otherwise add 1–2px of intrinsic height. */
input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),select{height:var(--nr-control-height)}
.app-header .header-right select{height:36px}

/* Short navigation motion; data-entry rerenders do not receive page-enter. */
html{scrollbar-gutter:stable}
.menu-open{overflow:hidden}
.page-enter{animation:nr-page-enter 180ms cubic-bezier(.2,.7,.2,1) both}
@keyframes nr-page-enter{from{opacity:.55;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
#global-menu{position:fixed;inset:0 auto 0 0;margin:0;width:304px;max-width:calc(100vw - 40px);height:100dvh;max-height:100dvh;border-radius:0;padding:20px 16px;background:#fff;overflow:hidden;transform:translateX(-100%);transition:transform 220ms cubic-bezier(.2,.7,.2,1);box-shadow:8px 0 32px #172b4d26}
#global-menu[open]{display:flex;flex-direction:column;gap:20px}
#global-menu.is-open{transform:translateX(0)}
#global-menu::backdrop{background-color:#172b4d00;transition:background-color 220ms ease}
#global-menu.is-open::backdrop{background-color:#172b4d66}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.drawer-head h2{margin:0}
.drawer-nav{display:grid;align-content:start;gap:4px;overflow-y:auto;min-height:0;flex:1;padding:3px}
.drawer-nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 12px;color:#64748b;border-radius:6px;text-decoration:none;transition:background-color 120ms ease,color 120ms ease}
.drawer-nav a.active,.drawer-nav a:hover{background:#eaf0ff;color:#356ae6}
.drawer-nav a.active{font-weight:700}
.drawer-user{display:grid;gap:2px;flex:none;border-top:1px solid #e1e7ef;padding:16px 12px 0}
.mobile-launcher .launch-menu{display:grid;justify-items:center;align-content:start;gap:8px;color:#233248;font-size:12px;font-weight:400;line-height:1.65;min-height:92px;padding:0;border:0;background:transparent}
.app-nav svg{display:block;width:0;opacity:0;transform:translateX(-3px);transition:width 140ms ease,opacity 140ms ease,transform 140ms ease}
.app-nav a.active svg,.app-nav a:hover svg{width:20px;opacity:1;transform:translateX(0)}
@media(prefers-reduced-motion:reduce){.page-enter{animation:none}#global-menu,#global-menu::backdrop,.drawer-nav a,.app-nav svg{transition:none!important}}

.motion-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:8px;font-size:12px;color:#64748b;cursor:pointer}
.motion-toggle input{margin:0}
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after{animation:none!important;transition:none!important}
html[data-motion="on"] .page-enter{animation:nr-page-enter 180ms cubic-bezier(.2,.7,.2,1) both!important}
html[data-motion="on"] #global-menu{transition:transform 220ms cubic-bezier(.2,.7,.2,1)!important}
html[data-motion="on"] #global-menu::backdrop{transition:background-color 220ms ease!important}
html[data-motion="on"] .drawer-nav a{transition:background-color 120ms ease,color 120ms ease!important}
html[data-motion="on"] .app-nav svg{transition:width 140ms ease,opacity 140ms ease,transform 140ms ease!important}

html[data-motion="off"]{scroll-behavior:auto}
.motion-toggle input{appearance:none;-webkit-appearance:none;position:relative;width:34px;height:20px;min-height:20px;border:1px solid #b4c0d0;border-radius:999px;background:#dce3ed;cursor:pointer;flex:none}
.motion-toggle input::before{content:'';position:absolute;width:14px;height:14px;left:2px;top:2px;border-radius:50%;background:white;box-shadow:0 1px 3px #172b4d33}
.motion-toggle input:checked{background:#356ae6;border-color:#356ae6}
.motion-toggle input:checked::before{transform:translateX(14px)}
@media(forced-colors:active){.motion-toggle input{appearance:auto;-webkit-appearance:auto}.motion-toggle input::before{display:none}}

/* Leave breathing room for Korean glyphs inside native search controls. */
.search input#search-input[type=search]{appearance:none;-webkit-appearance:none;padding-top:8px;padding-bottom:8px}

/* Independent home columns keep project/cost cards below the mail, not below the calendar. */
.home-content{max-width:1920px}
.grid.home-dashboard{grid-template-columns:minmax(0,1fr) minmax(360px,420px)}
.home-feed{min-width:0}
.home-dashboard .compact-calendar .cal-day{height:56px;min-height:56px;padding:4px 3px}
.home-dashboard .compact-calendar .empty{padding:20px 12px}
.login-page{grid-template-columns:minmax(0,1fr)}
.login-card{min-width:0;overflow-wrap:anywhere}
.login-card .login-logo{display:block;width:100%;height:100px;object-fit:cover;object-position:center;margin:0 0 20px}
.app-header .brand img{display:block;width:220px;height:44px;object-fit:cover;object-position:center;background:transparent;border-radius:0}
.brand-label{font-size:16px;letter-spacing:0}
.stat.active{border-color:#356ae6;background:#f7f9ff;box-shadow:inset 0 0 0 1px #356ae6}
#app{min-height:100dvh;display:flex;flex-direction:column}
#main-content{width:100%;flex:1}
.login-page{flex:1;min-height:0}
.site-footer{flex:none;border-top:1px solid #e1e7ef;background:#fff;color:#64748b}
.site-footer-inner{width:100%;max-width:1920px;margin:0 auto;padding:18px 32px;display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.site-footer p{margin:0;font-size:12px;line-height:20px}
.site-footer nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px}
.site-footer a{min-height:32px;display:inline-flex;align-items:center;gap:6px;color:#475569}
.site-footer a:hover{color:#356ae6}
.site-footer a svg{width:14px;height:14px}
.related-label{font-weight:700;color:#64748b}
.pending-site{color:#94a3b8}
.audit-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid #e1e7ef}
.audit-pagination nav{display:flex;align-items:center;gap:12px}
.audit-pagination nav [role=status]{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}
/* Slightly denser type; keep input and touch-target dimensions unchanged. */
body{font-size:13px}
h1{font-size:26px;line-height:38px}
h2{font-size:17px;line-height:26px}
h3{font-size:13px;line-height:22px}
.stat strong{font-size:26px;line-height:36px}
.calendar-head strong{font-size:14px}
.calendar-grid .dow{font-size:11px;line-height:30px}
.calendar-grid .cal-day{overflow:hidden}
.calendar-grid .cal-day .day-num{font-size:12px;height:22px;min-width:22px;line-height:22px}
.calendar-grid .cal-day.today .day-num{width:22px;height:22px}
.calendar-grid .cal-day .holiday-label{font-size:10px;line-height:12px;margin-top:1px}
.calendar-grid .cal-day .dot{width:4px;height:4px;margin-top:2px;margin-bottom:0}
@media(max-width:767px){.page-title h1{font-size:24px;line-height:36px}.compact-calendar .cal-day .holiday-label{font-size:9px}}
@media(max-width:767px){.site-footer-inner{padding:16px 16px max(16px,env(safe-area-inset-bottom));flex-direction:column;align-items:flex-start;gap:8px}.site-footer nav{gap:12px}.site-footer a{min-height:40px}}
@media(max-width:767px){
  .app-header .brand img{width:140px;height:36px}
  .brand-label{display:none}
  .login-card .login-logo{height:80px;margin-bottom:16px}
}
@media(max-width:1099px){
  .grid.home-dashboard{grid-template-columns:minmax(0,1fr)}
  .home-feed{display:contents}
  .home-feed>section:nth-child(1){order:1}
  .home-feed>section:nth-child(2){order:2}
  .home-dashboard>section{order:3}
  .home-summary{order:4}
}

/* Project records: the existing project taxonomy stays in place. */
.pr-heading{margin:0 0 18px}.pr-heading h2{font-size:21px;margin:0 0 8px}.pr-heading p{margin:0;line-height:1.6}
.pr-design{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.5fr);gap:16px;align-items:start;margin:16px 0}
.pr-design.pr-table,.pr-design.pr-drawing{grid-template-columns:minmax(0,1fr)}
.pr-design>div{min-width:0}.pr-design [hidden]{display:none!important}
.pr-mode{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 12px}
.pr-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;max-width:60ch}
.pr-source>span{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.pr-preview-frame{width:100%;height:65vh;border:1px solid var(--line,#d9e2ef);border-radius:6px;background:white}
.pr-preview-img{display:block;width:100%;max-height:65vh;object-fit:contain;background:white}
.pr-inline-preview{margin:14px 0;min-height:100px;max-height:65vh;overflow:auto;background:#f6f8fc;border:1px solid #e1e7f0;border-radius:6px}
.pr-inline-preview pre{padding:12px;margin:0}.pr-inline-preview img{width:100%;object-fit:contain}
.pr-inline-preview iframe{width:100%;height:52vh;border:0}
.module-layout>div>.panel+.panel{margin-top:18px}
.module-layout>div>.toolbar .field{min-width:150px;margin:0}
.pr-materials .table td,.pr-materials .table th{padding:12px 9px}
.pr-materials .toolbar{margin-bottom:0}
.project-records>.panel+.panel{margin-top:18px}
.project-records .table{min-width:800px}
.project-records .table td .btn{margin:2px 4px 2px 0}
.project-records .table td{overflow-wrap:normal;word-break:normal}
.project-records .table-wrap{max-width:100%;overflow:auto}
.project-records .toolbar .field{margin:0;min-width:150px}
.project-records .notice{margin:14px 0;line-height:1.7}
.project-records .stats{margin:16px 0}
@media(max-width:1250px){.pr-design{grid-template-columns:minmax(0,1fr)}.pr-drawing .pr-inline-preview{max-height:35vh}.pr-drawing .pr-inline-preview iframe{height:30vh}}
@media(max-width:640px){.pr-heading h2{font-size:19px}.pr-mode .btn{flex:1;font-size:12px}.module-layout>div>.toolbar .field,.project-records .toolbar .field{width:100%}.pr-preview-frame{height:60vh}.project-records .table{min-width:0}.project-records .table td{overflow-wrap:anywhere}}

/* 03: match the approved drawing/analysis workspace composition. */
.pd-workspace{min-width:0;color:#172b4d}
.pd-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}
.pd-title h1{font-size:27px;line-height:1.3;margin:0 0 8px}.pd-title p{margin:0;color:#64748b;font-size:13px}.pd-context{font-size:11px;color:#7890ab;display:block;margin-top:6px}
.pd-title-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pd-title-actions .btn{min-height:40px;font-size:12px;padding:8px 12px}.pd-title-actions svg{width:16px;height:16px}
.pd-version{display:flex;align-items:center;gap:18px;padding:15px 18px;background:white;border:1px solid #dde6f2;border-radius:8px;min-width:0}
.pd-file-icon{color:#dc454d;flex:none}.pd-file-icon svg{width:27px;height:27px}
.pd-file-name{flex:1;min-width:100px}.pd-file-name strong{display:block;overflow-wrap:anywhere}.pd-file-name select{margin-top:6px;min-height:32px;padding-top:3px;padding-bottom:3px;font-size:11px;max-width:100%;width:100%}.pd-file-name small{display:block;color:#7890ab}
.pd-version>div:not(.pd-file-name){display:flex;align-items:center;gap:8px;border-left:1px solid #e4ebf3;padding-left:16px;flex-wrap:wrap}.pd-version>div>span:not(.badge){font-size:11px;color:#71839c}.pd-version strong{font-size:12px}
.pd-tabs-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:white;border:1px solid #e0e8f3;border-radius:8px;margin:8px 0 12px;padding:0 12px}
.pd-tabs{display:flex;gap:10px;flex-wrap:wrap}.pd-tabs .btn{background:none;border:0;border-radius:0;color:#65768e;padding:14px 9px;min-height:48px;box-shadow:none;font-size:12px;position:relative}
.pd-tabs .btn[aria-pressed="true"]{color:#2664ed;font-weight:700}.pd-tabs .btn[aria-pressed="true"]:after{content:'';position:absolute;height:3px;background:#2765ef;border-radius:3px;bottom:0;left:6px;right:6px}
.pd-modes{display:flex;gap:4px;padding:5px 0;flex-wrap:wrap}.pd-modes .btn{font-size:10px;min-height:30px;padding:4px 7px}
.pd-status-note{display:flex;align-items:flex-start;gap:7px;font-size:11px;color:#71849e;margin-bottom:12px;line-height:1.6}.pd-status-note svg{width:15px;height:15px;flex:none;margin-top:2px}
.pd-layout{display:grid;grid-template-columns:minmax(230px,.95fr) minmax(0,2fr);gap:12px;align-items:start}.pd-layout>div{min-width:0}.pd-layout [hidden]{display:none!important}
.pd-layout-table,.pd-layout-drawing{grid-template-columns:minmax(0,1fr)}
.pd-workspace .panel{padding:16px;border:1px solid #dfe7f2;border-radius:8px}.pd-workspace h2{font-size:15px;line-height:22px;margin:0}.pd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.pd-panel-head .btn{font-size:11px;padding:5px 8px;min-height:30px}.pd-panel-head .icon{width:30px}
.pd-preview-caption{font-size:10px;color:#7c8da4;margin:0 0 8px;overflow-wrap:anywhere}
.pd-workspace .pd-paper{margin:0;min-height:370px;max-height:none;background:white;border:1px solid #dce3ed;border-radius:2px;overflow:auto;display:block}.pd-paper iframe{height:520px;width:100%;border:0}.pd-paper img{display:block;max-width:100%;width:100%;min-height:370px;object-fit:contain}.pd-paper pre{padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;color:#52657e;font-size:12px}
.pd-preview-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.pd-preview-foot .btn{font-size:11px;min-height:30px;padding:5px 8px}.pd-preview-foot span{font-size:10px;color:#7b8da4}
.pd-empty-drawing{min-height:400px;border:1px solid #e1e7ef;background:linear-gradient(180deg,#fafcff,#f3f6fb);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:22px;color:#7a8da5}.pd-empty-drawing>svg{width:46px;height:46px;color:#a2b6d1}.pd-empty-drawing strong{color:#405878}.pd-empty-drawing>span{font-size:11px;max-width:25ch}
.pd-drawing-column>.pd-review{margin-top:12px}.pd-review>div{white-space:pre-wrap;overflow-wrap:anywhere;background:#eff5ff;border-radius:5px;padding:12px;margin-top:12px;line-height:1.7;font-size:12px;color:#48638b}
.pd-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.pd-stat{display:flex;gap:9px;align-items:center;background:white;border:1px solid #dfe7f2;border-radius:7px;padding:14px 10px;min-width:0;min-height:87px}
.pd-stat-icon{display:flex;align-items:center;justify-content:center;width:39px;height:39px;flex:none;border-radius:50%;background:#edf3ff;color:#2864ec}.pd-stat-icon svg{width:24px;height:24px}
.pd-stat>div{min-width:0}.pd-stat>div>span{display:block;font-size:10px;white-space:nowrap;color:#65758d}.pd-stat strong{display:block;font-size:23px;line-height:1.4;letter-spacing:-.7px}.pd-green .pd-stat-icon{background:#e9f8ee;color:#11965d}.pd-orange .pd-stat-icon{background:#fff4e4;color:#d88214}.pd-red .pd-stat-icon{background:#fff0f0;color:#df4c59}
.pd-green strong{color:#138b5e}.pd-orange strong{color:#cd7c14}.pd-red strong{color:#d34e60}
.pd-filters{display:flex;gap:5px}.pd-filters .btn{font-size:10px;min-height:30px;padding:5px 8px}.pd-analysis-note{font-size:10px;color:#7d8fa8;margin:0 0 12px;display:flex;gap:6px;justify-content:flex-end;align-items:center}.pd-analysis-note svg{width:14px;height:14px}
.pd-table-wrap{overflow:auto;border:1px solid #e1e8f2;border-radius:5px;max-width:100%}
.pd-workspace .pd-table{width:100%;table-layout:fixed;border-collapse:collapse;min-width:0;font-size:11px;line-height:1.6}
.pd-table th{background:#f0f4fa;font-size:10px;font-weight:600;color:#52657f;white-space:normal;text-align:left}.pd-table td,.pd-table th{padding:10px 8px;border-bottom:1px solid #e4eaf3;border-right:1px solid #e9eef5;vertical-align:middle;overflow-wrap:anywhere}
.pd-table tr:last-child td{border-bottom:0}.pd-table tr.is-selected{background:#eaf3ff}.pd-table tr.is-selected td:first-child{box-shadow:inset 3px 0 #4682ff}.pd-table th:nth-child(1){width:9%}.pd-table th:nth-child(2){width:20%}.pd-table th:nth-child(3){width:20%}.pd-table th:nth-child(4){width:12%}.pd-table th:nth-child(5){width:23%}.pd-table th:nth-child(6){width:16%}
.pd-table small{display:block;font-size:9px;color:#7e90a9;margin-top:3px}.pd-table .badge{font-size:10px;white-space:normal;line-height:1.5;padding:3px 6px;border-radius:5px}
.pd-item-link{background:none;border:0;padding:0;color:#2458a4;min-height:24px;line-height:1.6;font-size:11px;text-align:left;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.pd-color{display:inline-flex;align-items:center;gap:5px;font-size:10px;margin-top:4px}.pd-color i{width:15px;height:12px;border:1px solid #d6dfeb;border-radius:2px;display:inline-block;flex:none}.pd-warning{background:#fff2d9;color:#a77117}
.pd-item-detail{border:1px solid #dfe7f2;background:#fbfdff;border-radius:5px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px;margin-top:12px}
.pd-item-symbol{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #e2e8f1;border-radius:5px;color:#6381ae;background:white;flex:none}
.pd-item-description{min-width:120px;flex:1}.pd-item-description strong{font-size:12px;margin-right:6px}.pd-item-description span{font-size:10px;color:#677e9b;display:block}.pd-item-description small{display:block;font-size:9px;color:#7b8da7;overflow-wrap:anywhere}
.pd-detail-actions{display:flex;gap:6px;flex-wrap:wrap}.pd-detail-actions .btn{font-size:10px;min-height:30px;padding:5px 8px}
.pd-add{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.pd-add .btn{font-size:11px;min-height:32px;padding:5px 10px}.pd-add>span{font-size:10px;color:#8191a9}
.pd-results-column>.pd-change{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.pd-change h2{margin-bottom:8px}.pd-change-counts{display:flex;gap:6px}.pd-change p{margin:7px 0 0;font-size:10px}.pd-change-actions{display:flex;gap:6px;flex-wrap:wrap}.pd-change-actions .btn{font-size:11px;min-height:32px;padding:6px 9px}
.pd-history>div:not(.empty){display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e5ebf3}.pd-history>div>span:not(.badge){font-size:11px;color:#7b8fa7}
.content:has(.pd-workspace){max-width:1800px;padding:24px}
.pd-library-details{margin-top:16px;border:1px solid #dfe7f2;border-radius:8px;background:white;padding:12px 16px}.pd-library-details>summary{cursor:pointer;font-size:12px;font-weight:600;color:#6b7e98}.pd-library-details[open]>summary{margin-bottom:12px}.pd-library-details>.panel{padding:12px}.pd-library-details>.actions{margin-bottom:4px}
.pd-workspace .pd-table{font-size:12px}.pd-table th{font-size:11px}.pd-item-link{font-size:12px}.pd-table small{font-size:10px}.pd-stat>div>span{font-size:11px}
@media(min-width:1800px){.pd-paper iframe{height:580px}.pd-workspace .pd-paper{min-height:460px}}
@media(max-width:1100px){.pd-title{flex-direction:column}.pd-title-actions{justify-content:flex-start}.pd-layout{grid-template-columns:minmax(0,1fr)}.pd-drawing-column{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px}.pd-drawing-column>.pd-review{margin-top:0}.pd-workspace .pd-paper,.pd-empty-drawing{min-height:220px;max-height:330px}.pd-paper iframe{height:330px}.pd-version{gap:12px}.pd-version>div:not(.pd-file-name){padding-left:10px}}
@media(max-width:640px){.content:has(.pd-workspace){padding:16px}.pd-title h1{font-size:24px}.pd-title p{font-size:12px}.pd-version{flex-wrap:wrap;padding:12px}.pd-file-name{flex-basis:75%}.pd-drawing-column{display:block}.pd-drawing-column>.pd-review{margin-top:12px}.pd-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-stat{min-height:78px}.pd-tabs-bar{padding:0 8px}.pd-tabs{gap:1px}.pd-tabs .btn{padding:10px 7px;font-size:11px}.pd-tabs-bar .pd-modes{padding-bottom:8px}.pd-modes .btn{min-height:36px}.pd-workspace .pd-table{min-width:620px}.pd-workspace .panel{padding:12px}.pd-title-actions .btn{min-height:44px}.pd-item-link{min-height:40px}.pd-preview-foot .btn,.pd-filters .btn,.pd-detail-actions .btn,.pd-change-actions .btn,.pd-add .btn{min-height:40px}}

/* 05 required materials: shared procurement/receipt records, not a second ledger. */
.content:has(.mf-workspace){max-width:1800px;padding:24px}.mf-workspace{min-width:0}
.module-layout:has(.mf-workspace)>div,.module-layout:has(.mf-workspace) .project-records{min-width:0;width:100%}
.mf-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.mf-title h1{font-size:27px;line-height:1.4;margin:0 0 6px}.mf-title p{margin:0;color:#667d98;font-size:12px}.mf-title>div>span{display:block;color:#8494aa;font-size:10px;margin-top:5px}.mf-title>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.mf-title .btn{font-size:12px;min-height:40px}
.mf-tabs{display:flex;gap:14px;border-bottom:1px solid #dbe4f0;margin-bottom:16px}.mf-tabs .btn{background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 8px;font-size:12px;color:#6c7e97}.mf-tabs .btn[aria-pressed=true]{border-bottom:3px solid #2468ef;color:#2468ef;font-weight:700}
.mf-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.mf-card.btn{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:18px 14px;min-height:92px;background:white;border:1px solid #e0e8f3;text-align:left;box-shadow:none}.mf-card-icon{display:flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:9px;background:#f0f3f8;color:#71839c;flex:none}.mf-card>span:last-child{font-size:12px;color:#4e6381}.mf-card strong{display:block;font-size:25px;line-height:1.4;color:#172b4d}.mf-card small{font-size:11px;margin-left:5px}.mf-card[aria-pressed=true]{outline:2px solid #6695fa;outline-offset:-2px}.mf-blue .mf-card-icon{color:#2468ef;background:#edf3ff}.mf-blue strong{color:#2468ef}.mf-amber .mf-card-icon{color:#cc8c24;background:#fff5e5}.mf-amber strong{color:#c48019}.mf-green .mf-card-icon{color:#12865b;background:#e9f9f1}.mf-green strong{color:#12865b}.mf-amber.badge{background:#fff3dd;color:#a37124}
.mf-workspace .panel,.mf-finance.panel{padding:18px;border:1px solid #dfe7f2;border-radius:8px}.mf-workspace h2,.mf-finance h2{font-size:17px;line-height:1.5;margin:0}.mf-workspace section>header,.mf-finance>header{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.mf-workspace section>header>div{margin-left:auto;display:flex;gap:7px}.mf-workspace header .btn{font-size:11px;min-height:32px;padding:6px 10px}
.mf-filters{display:flex;align-items:flex-end;gap:10px;margin-bottom:14px;flex-wrap:wrap}.mf-filters .search{flex:1;min-width:180px}.mf-filters .field{min-width:130px;margin:0!important}.mf-filters .field label{font-size:10px}.mf-filters .field select{font-size:12px;min-height:36px}.mf-filters input{font-size:12px;min-height:36px}.mf-filters>.btn{min-height:36px;font-size:11px}
.mf-table-wrap{overflow:auto;max-width:100%;border:1px solid #e0e8f2;border-radius:5px}.mf-table{table-layout:fixed;width:100%;border-collapse:collapse;min-width:0!important;font-size:12px}.mf-table td,.mf-table th{padding:10px 8px;border-bottom:1px solid #e5ebf4;vertical-align:middle;text-align:left;overflow-wrap:anywhere}.mf-table th{font-size:11px;background:#f1f5fa;color:#5f7390}.mf-table tr:last-child td{border-bottom:0}.mf-table tr.is-selected{background:#eaf3ff}.mf-table tr.is-selected td:first-child{box-shadow:inset 3px 0 #3679ef}.mf-table th:first-child{width:18%}.mf-table th:nth-child(2){width:16%}.mf-table th:nth-child(3){width:9%}.mf-table th:nth-child(4){width:12%}.mf-table th:nth-child(5),.mf-table th:nth-child(6){width:10%}.mf-table th:nth-child(7){width:15%}.mf-table th:nth-child(8){width:10%}.mf-table small{display:block;font-size:10px;color:#7d90a9;margin-top:3px}.mf-table .badge{font-size:10px;white-space:normal}.mf-item.btn{background:none;border:0;padding:0;min-height:24px;box-shadow:none;color:#2464d8;font-size:12px;line-height:1.6;text-align:left;white-space:normal;font-weight:600}
.mf-workspace footer{color:#7b8da5;font-size:11px;line-height:1.7;margin-top:12px}.mf-workspace footer svg{width:15px;height:15px}
.mf-table td:last-child .mf-item{font-size:10px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.mf-details{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin-top:14px}.mf-details>.panel{min-width:0}.mf-summary{font-size:12px}.mf-summary .summary{grid-template-columns:110px minmax(0,1fr)}.mf-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.mf-actions .btn{font-size:11px;min-height:34px;padding:6px 10px}.mf-details .table{min-width:0;font-size:11px}.mf-details .table td,.mf-details .table th{padding:9px 7px}.mf-details .btn{font-size:11px}
.mf-details .mf-summary .summary{grid-template-columns:80px minmax(0,1fr) 80px minmax(0,1fr)}.mf-summary .summary dt,.mf-summary .summary dd{padding:10px 6px;font-size:11px}
.mf-purchase-meta{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#59718f;margin-bottom:12px}.mf-purchase-meta strong{font-size:14px;color:#2767d5}.mf-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 8px;border:1px solid #e2e9f3;border-radius:5px;margin-bottom:12px}.mf-money>div{font-size:10px;color:#7f91a9;padding:0 8px;border-right:1px solid #e3eaf4}.mf-money>div:last-child{border:0}.mf-money strong{display:block;font-size:17px;color:#233b5d;margin-top:6px;overflow-wrap:anywhere}.mf-finance{margin:18px 0}.mf-finance>header .btn{margin-left:auto}
.module-layout:has(.mf-is-wide){grid-template-columns:minmax(0,1fr)}.module-layout:has(.mf-is-wide)>.side{display:none}
@media(max-width:1100px){.mf-title{flex-direction:column}.mf-details{grid-template-columns:minmax(0,1fr)}.mf-cards{gap:8px}.mf-card.btn{padding:14px 10px;gap:8px}.mf-card-icon{width:35px;height:35px}.mf-card>span:last-child{font-size:11px}}
@media(max-width:640px){.content:has(.mf-workspace){padding:16px}.mf-title h1{font-size:24px}.mf-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.mf-workspace .panel{padding:14px}.mf-table{min-width:850px!important}.mf-filters .field{flex:1;min-width:115px}.mf-title .btn,.mf-workspace .mf-actions .btn{min-height:44px}.mf-tabs{gap:4px}.mf-tabs .btn{font-size:11px}.mf-money strong{font-size:15px}.mf-finance .table-wrap{overflow:auto}.mf-details .mf-summary .summary{grid-template-columns:95px minmax(0,1fr)}}

/* Finance source records, procurement and receipts share one scoped workspace. */
.fn-workspace{min-width:0}.fn-workspace .mf-title h1{margin:0}.fn-scope{display:grid;grid-template-columns:minmax(220px,1.7fr) minmax(160px,1fr) minmax(145px,.8fr) minmax(145px,.8fr) auto;gap:12px;align-items:end;margin:24px 0}.fn-scope .field,.fn-cost-filters .field{margin:0}.fn-scope .search{align-self:end;margin:0}.fn-scope input,.fn-scope select{width:100%;min-width:0}.fn-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.fn-metrics .stat{min-width:0}.fn-metrics strong{font-size:clamp(20px,2vw,28px);overflow-wrap:anywhere}.fn-metrics small{color:var(--muted);font-size:12px}.fn-workspace .mf-tabs{margin:24px 0 18px}.fn-workspace .panel{margin-bottom:20px;min-width:0}.fn-workspace header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.fn-workspace header h2{margin:0}.fn-workspace td small{display:block;margin-top:6px;color:var(--muted);font-size:12px}.fn-receipt-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;margin-bottom:20px;border:1px solid #dbe6fa;border-radius:10px;background:#f4f8ff}.fn-receipt-banner p{margin:6px 0 0;font-size:13px;color:var(--muted)}.fn-receipt-banner .btn{flex-shrink:0}.fn-cost-filters{display:flex;gap:12px;margin:18px 0}.fn-cost-filters .field{min-width:160px}.fn-detail .summary,.fn-purchase-detail .summary{display:grid;grid-template-columns:120px minmax(0,1fr) 120px minmax(0,1fr);margin:20px 0}.fn-purchase-detail{padding-top:16px;margin-top:20px;border-top:1px solid #dce5f1}.fn-receipt-history{margin-top:24px}.fn-receipt-history>header{margin-bottom:16px}.fn-workspace .mf-finance>.field{max-width:240px;margin-bottom:16px}.fn-workspace .mf-money strong{font-size:18px}.fn-workspace .mf-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.fn-workspace .table-wrap{max-width:100%}.fn-workspace .mf-item{text-align:left;white-space:normal}.fn-workspace .mf-item[aria-pressed=true]{color:#2455db;background:#edf3ff}.fn-workspace .summary dd{overflow-wrap:anywhere}
@media(max-width:1100px){.fn-scope{grid-template-columns:repeat(2,minmax(0,1fr))}.fn-scope .search{grid-column:1/-1}.fn-metrics{gap:10px}.fn-workspace .mf-title{align-items:flex-start}}
@media(max-width:600px){.fn-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fn-metrics .stat{padding:16px}.fn-scope{gap:10px}.fn-scope>.field:nth-child(2){grid-column:1/-1}.fn-receipt-banner{align-items:flex-start;flex-direction:column;padding:16px}.fn-workspace .mf-tabs{overflow-x:auto;flex-wrap:nowrap}.fn-workspace .mf-tabs .btn{flex-shrink:0}.fn-detail .summary,.fn-purchase-detail .summary{grid-template-columns:100px minmax(0,1fr)}.fn-cost-filters{flex-wrap:wrap}.fn-cost-filters .field{flex:1;min-width:130px}.fn-workspace .mf-money{grid-template-columns:1fr}.fn-scope>.btn{justify-self:start}}

.hr-workspace{min-width:0}.hr-nav{display:flex;gap:6px;border-bottom:1px solid #dce5f1;margin-bottom:24px;overflow-x:auto}.hr-nav a{padding:14px 20px;color:var(--muted);white-space:nowrap;border-bottom:3px solid transparent}.hr-nav a.active{color:#3566ed;border-bottom-color:#3566ed;font-weight:700}.hr-greeting{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px;background:#fff;border-radius:10px;margin-bottom:20px}.hr-greeting h2{margin:0 0 8px}.hr-greeting p{margin:0;color:var(--muted)}.hr-workspace .stats{margin:20px 0}.hr-workspace .stats.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.hr-workspace .panel{margin-bottom:20px;min-width:0}.hr-today{display:flex;justify-content:space-between;align-items:center;gap:16px}.hr-today h3{margin-top:8px}.hr-clock{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px 0}.hr-clock>div{background:#f6f8fc;border-radius:8px;padding:20px}.hr-clock span{color:var(--muted)}.hr-clock strong{display:block;font-size:30px;margin-top:10px}.hr-workspace td small{display:block;color:var(--muted);margin-top:6px}.hr-filters{display:flex;gap:16px;margin:16px 0}.hr-filters .field{min-width:160px}.hr-workspace .table-wrap{max-width:100%}.hr-workspace .stat strong{font-size:24px}.hr-workspace .btn{margin-right:4px}
@media(max-width:800px){.hr-workspace .stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-greeting{align-items:flex-start;flex-direction:column}.hr-nav a{padding:12px}.hr-filters{flex-wrap:wrap}.hr-filters .field{flex:1;min-width:130px}.hr-today{align-items:flex-start}.hr-clock strong{font-size:24px}}

.hr-journal .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hr-journal .fields .full{grid-column:1/-1}.hr-journal-entry header,.service-workspace header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hr-journal-entry header h2{margin:0 0 14px}.hr-journal-footer{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 0}.hr-journal textarea{min-height:100px}.hr-journal form>.actions{justify-content:flex-end;position:sticky;bottom:12px;background:#fff;padding:16px;border:1px solid #dce5f1;border-radius:10px;box-shadow:0 4px 16px #17335612}.inv-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.inv-stats .stat{min-width:0}.inv-stats strong{font-size:24px;overflow-wrap:anywhere}.inv-workspace,.service-workspace{min-width:0}.inv-workspace .panel,.service-workspace .panel{min-width:0;margin-bottom:20px}.inv-workspace .table-wrap,.service-workspace .table-wrap{max-width:100%}.inv-workspace td small,.service-workspace td small{display:block;color:var(--muted);margin-top:6px}.inv-workspace .btn,.service-workspace .btn{margin:3px}.service-visit{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}.service-note{padding:14px;background:#f6f8fc;border-radius:8px;min-height:70px}.service-guide ol{padding-left:22px;line-height:2}.service-workspace h1{margin:0}.service-workspace .mf-money{margin:22px 0}.service-workspace .mf-money strong{font-size:22px}.event-type{display:inline-block;border-radius:5px;padding:2px 7px;background:#edf2ff;color:#345ce1}.event-service{background:#fff3e3;color:#975a08}.event-leave{background:#f5edff;color:#7840b1}.event-trip{background:#e7f8f3;color:#17735a}.event-source{flex-shrink:0}.selected-events .row{gap:10px}.selected-events .item-title{overflow-wrap:anywhere}.calendar-grid .cal-day{min-width:0}.inv-workspace .stats strong{overflow-wrap:anywhere}
@media(max-width:900px){.service-visit{grid-template-columns:1fr}.inv-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.service-workspace .grid.two,.inv-workspace .grid.two{grid-template-columns:1fr}}
@media(max-width:600px){.hr-journal .fields{grid-template-columns:1fr}.hr-journal .fields .full{grid-column:auto}.hr-journal form>.actions{position:static;justify-content:stretch}.inv-stats{gap:10px}.inv-stats .stat{padding:16px}.inv-stats strong{font-size:21px}.service-workspace .summary{grid-template-columns:100px minmax(0,1fr)}.service-workspace .mf-money{grid-template-columns:1fr}.selected-events .row{flex-wrap:wrap}.service-workspace header .btn{white-space:normal}.inv-workspace .toolbar>.search{min-width:0;width:100%}}
.inv-workspace .grid.two .empty{min-height:0;padding:12px 0;display:block;text-align:left}.inv-workspace .grid.two .empty svg{display:none}.inv-workspace .grid.two .empty strong{font-weight:400;font-size:13px;color:var(--muted)}
/* Agreements, requirements and meeting workspaces */
.pb-workspace { display:grid; gap:20px; min-width:0; }
.pb-workspace > .stats { margin:0; }
.pb-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.pb-heading h1 { margin:8px 0; font-size:26px; }
.pb-heading p { margin:0; line-height:1.65; }
.pb-heading .actions { flex-shrink:0; margin:4px 0; }
.pb-flow { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 20px; background:#f4f7ff; border:1px solid #dce5f5; border-radius:10px; font-size:13px; }
.pb-flow > * + *::before { content:'→'; margin-right:12px; color:#8a9cbb; }
.pb-tools { display:flex; flex-wrap:wrap; gap:6px; }
.pb-tools .btn { font-size:12px; min-height:34px; padding:6px 10px; }
.pb-start { padding:30px 8px; }
.pb-start p { margin-bottom:0; }
.pb-clamp { max-width:34rem; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.pb-attachments { border:1px solid #dce5f5; border-radius:8px; padding:14px; margin:16px 0; min-width:0; }
.pb-attachments label { display:flex; align-items:center; gap:8px; margin:10px 0; overflow-wrap:anywhere; }
.pb-attachments input { width:18px; height:18px; flex:0 0 18px; }
.pb-files { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
.pb-text p,.pb-pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.pb-history { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; padding:12px; background:#f5f7fb; max-height:300px; overflow:auto; }
.pb-workspace .panel { min-width:0; }
@media(max-width:900px){ .pb-heading{flex-direction:column;} .pb-heading .actions{flex-wrap:wrap;} .pb-heading h1{font-size:23px;} }
@media(max-width:600px){ .pb-flow{gap:8px;padding:12px;} .pb-tools .btn{min-height:40px;} .pb-heading .actions{width:100%;} .pb-workspace>.stats.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;} .pb-workspace>.stats .stat{padding:12px;} .pb-workspace>.stats .stat span{font-size:11px;} .pb-workspace>.stats .stat strong{font-size:23px;} }

/* Execution workspace */
.ex-tabs { display:flex; gap:8px; margin:0; padding:0 0 14px; }
.ex-tabs .btn { flex:1; max-width:180px; }
.ex-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr); gap:20px; align-items:start; }
.ex-layout>* { min-width:0; }
.ex-selected { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:18px 22px; background:#eaf0ff; border-left:3px solid #3768ed; border-radius:8px; }
.ex-selected h2 { margin:6px 0 0; font-size:19px; }
.ex-empty { padding:16px 0; line-height:1.7; }
.ex-layout .actions { margin:0 0 14px; flex-wrap:wrap; }
.ex-layout .table td { overflow-wrap:anywhere; }
.ex-workspace .stat strong { font-size:28px; }
@media(max-width:1150px){ .ex-layout {grid-template-columns:minmax(0,1fr);} .ex-layout>aside {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;} }
@media(max-width:600px){ .ex-layout>aside {grid-template-columns:minmax(0,1fr);} .ex-selected {align-items:flex-start;flex-direction:column;padding:16px;} .ex-tabs .btn {max-width:none;} }

/* Approval inbox and document review */
.approval-workspace {display:grid;gap:20px;min-width:0;}
.approval-workspace>.page-title,.approval-workspace>.stats,.approval-workspace>.tabs {margin:0;}
.ap-stat {text-align:left;font:inherit;cursor:pointer;border:1px solid transparent;}
.ap-stat:hover,.ap-stat:focus-visible {border-color:#3768ed;outline-offset:3px;}
.ap-filter {display:grid;gap:16px;}
.ap-filter .search {width:100%;max-width:none;}
.ap-filter-fields {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;}
.ap-filter-fields>.btn {justify-self:start;}
.ap-filter-fields .field {min-width:0;}
.ap-list-count {font-size:12px;color:#6e84a4;margin-bottom:16px;}
.ap-pagination {display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:18px;font-size:12px;color:#6e84a4;}
.ap-pagination .pb-tools {align-items:center;gap:14px;}
.ap-pagination .btn {width:40px;height:40px;padding:10px;}
.ap-pagination svg {width:18px;height:18px;}
.ap-detail-grid {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:20px;align-items:start;}
.ap-detail-grid>* {min-width:0;}
.ap-detail-grid .summary dd {overflow-wrap:anywhere;}
.ap-detail-grid .actions,.ap-detail-grid .pb-tools {flex-wrap:wrap;}
.ap-detail-grid .actions .btn {flex:1;}
.ap-route {display:grid;gap:10px;text-align:center;margin-bottom:18px;}
.ap-route>div {display:flex;align-items:center;justify-content:space-between;padding:14px;background:#f3f6fc;border-radius:8px;gap:12px;}
.ap-route>div span {font-size:12px;color:#6e84a4;}
.ap-timeline {list-style:none;padding:0 0 0 18px;margin:0;border-left:2px solid #dce5f5;}
.ap-timeline li {position:relative;padding:0 0 22px 10px;}
.ap-timeline li:last-child {padding-bottom:0;}
.ap-timeline li:before {content:'';width:9px;height:9px;border-radius:50%;background:#3768ed;position:absolute;left:-23px;top:5px;}
.ap-timeline p {margin:8px 0;overflow-wrap:anywhere;}
.badge.amber {background:#fff3d9;color:#9a651a;}
@media(max-width:1100px){.ap-detail-grid{grid-template-columns:minmax(0,1fr);}.ap-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.ap-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.ap-filter-fields label{font-size:12px;}.approval-workspace>.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.ap-stat{padding:16px;}.ap-stat strong{font-size:25px;}.ap-pagination{flex-wrap:wrap;}.ap-detail-grid .summary{grid-template-columns:minmax(0,1fr);}.ap-detail-grid .summary dt{padding-bottom:0;}.ap-detail-grid .summary dd{padding-top:4px;}}
.approval-workspace .pb-heading>div {min-width:0;}
.approval-workspace .pb-heading h1 {overflow-wrap:anywhere;}

.calendar-toolbar .field{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;max-width:100%;}
.calendar-toolbar .field label{margin:0;white-space:nowrap;}
.calendar-toolbar .field select{width:160px;min-width:0;min-height:44px;}

.hr-review-empty{display:flex;align-items:center;gap:14px;padding:12px 0;}
.hr-review-icon{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#eef3ff;color:#3768ed;}
.hr-review-icon svg{display:block;width:24px;height:24px;}
.hr-review-empty>div{min-width:0;}
.hr-review-empty strong{font-size:14px;}
.hr-review-empty p{margin:4px 0 0;font-size:12px;color:#6e84a4;}

/* Shared visual polish: consistent tabs, clearer secondary text, and calmer empty states. */
.muted,.item-meta,.page-title p,.demo-bar{color:#53657d;}
.app-nav a{gap:7px;}
.app-nav svg{display:block;width:16px;height:16px;color:#9aa8ba;}
.app-nav a.active svg,.app-nav a:hover svg{color:currentColor;}
.empty{padding:26px 16px;color:#53657d;}
.empty>svg{width:30px;height:30px;color:#7c8ca3;margin-bottom:10px;}
.empty strong{margin-bottom:4px;}
.empty>div{margin-top:10px;}
.approval-workspace>.tabs,.ex-tabs{display:flex;align-items:stretch;gap:4px;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid #dce5f1;margin-bottom:0;padding-bottom:0;scrollbar-width:thin;}
.approval-workspace>.tabs .tab,.ex-tabs .btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:48px;padding:12px 16px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#53657d;text-decoration:none;white-space:nowrap;box-shadow:none;}
.approval-workspace>.tabs .tab.active,.ex-tabs .btn.primary{border-bottom-color:#356ae6;background:transparent;color:#285bd0;font-weight:700;}
.approval-workspace>.tabs .tab:hover,.ex-tabs .btn:hover{background:#f3f6fc;color:#285bd0;text-decoration:none;}
.approval-workspace>.tabs .tab:focus-visible,.ex-tabs .btn:focus-visible{outline-offset:-3px;}
.inv-workspace .panel .empty{max-width:760px;margin:0 auto;}
@media(max-width:640px){
 .approval-workspace>.tabs .tab,.ex-tabs .btn{min-height:44px;padding:10px 12px;font-size:12px;}
 .app-nav a{gap:4px;}
 .empty{padding:22px 12px;}
}
.library-stats{margin:0 0 20px;}
.library-location{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;background:#fff;border:1px solid #e1e7ef;border-radius:8px;padding:12px 16px;margin-bottom:16px;font-size:12px;color:#64748b;}
.library-location strong{font-size:14px;color:#233248;}
.library-caption{margin:0 0 12px;}
.folder-count{display:block;margin-top:8px;padding-top:8px;border-top:1px solid #edf1f6;color:#64748b;font-size:12px;}
.permission-editor{display:grid;gap:14px;margin:18px 0;padding:18px;background:#f7f9fc;border:1px solid #dce5f1;border-radius:10px;}
.permission-editor-head h3{margin:0 0 4px;font-size:16px;}
.permission-editor-head p{margin:0;}
.permission-group{min-width:0;margin:0;padding:12px 14px;border:1px solid #dce5f1;border-radius:8px;background:#fff;}
.permission-group legend{padding:0 6px;color:#24364d;font-size:13px;font-weight:700;}
.permission-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px 16px;}
.permission-items label{display:flex;align-items:flex-start;gap:8px;padding:5px 0;color:#34445a;font-size:13px;line-height:1.45;}
.permission-items input{flex:0 0 auto;margin:2px 0 0;accent-color:#356ae6;}
@media(max-width:640px){.permission-editor{padding:12px}.permission-items{grid-template-columns:1fr}}
@media(max-width:767px){.library-location{align-items:flex-start;flex-direction:column;gap:2px;}}
.responsibility-editor{display:grid;gap:12px;margin:16px 0;}
.responsibility-row{min-width:0;margin:0;padding:14px;border:1px solid #dce5f1;border-radius:8px;background:#f7f9fc;}
.responsibility-row legend{padding:0 6px;color:#24364d;font-weight:700;font-size:13px;}
.responsibility-row .field{margin:0 0 10px;}
.responsibility-assignees{display:flex;flex-wrap:wrap;gap:8px 16px;}
.responsibility-assignees label{display:flex;align-items:center;gap:7px;padding:4px 0;}
.responsibility-assignees input{accent-color:#356ae6;}
.project-overview-grid{align-items:stretch;margin-bottom:20px;}
.project-overview-grid>.panel{height:100%;display:flex;flex-direction:column;}
.project-overview-grid>.panel>.summary,.project-overview-grid>.panel>.list{flex:1;}
.project-overview-grid>.panel>.summary{align-content:space-between;}
.project-overview-grid>.panel>.list{display:flex;flex-direction:column;justify-content:space-between;}
.participant-assignment-row{align-items:center;min-width:0;}
.participant-identity{min-width:108px;flex:0 0 132px;}
.participant-identity strong{font-size:13px;}
.participant-responsibilities{display:flex;align-items:center;justify-content:flex-end;flex:1;flex-wrap:wrap;gap:4px 10px;min-width:0;}
.responsibility-inline{display:inline-flex;align-items:center;gap:5px;color:#53647a;font-size:11px;line-height:18px;white-space:nowrap;}
.responsibility-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--responsibility-color);flex:none;}
@media(max-width:767px){.participant-identity{flex:1 1 100px}.participant-responsibilities{flex:1 1 100%;justify-content:flex-start;margin-left:56px;margin-top:-6px}.participant-assignment-row{flex-wrap:wrap;}}

/* Global AI work assistant prototype */
.assistant-widget{position:fixed;right:24px;bottom:24px;z-index:80;font-family:inherit}.assistant-launcher{display:flex;align-items:center;gap:11px;min-height:68px;padding:9px 16px 9px 10px;border:1px solid #c8d7f5;border-radius:999px;background:#fff;color:#172b4d;box-shadow:0 8px 30px #172b4d20;cursor:pointer;transition:transform .18s,box-shadow .18s}.assistant-launcher:hover{transform:translateY(-2px);box-shadow:0 12px 34px #172b4d2b}.assistant-launcher-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#edf3ff,#dce8ff);color:#356ae6}.assistant-launcher-avatar svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.assistant-launcher-label{display:grid;gap:2px;text-align:left}.assistant-launcher-label strong{font-size:13px}.assistant-launcher-label small{font-size:11px;color:#64748b}.assistant-launcher-sparkle{align-self:flex-start;margin:0 -8px 0 0;color:#356ae6;font-size:16px}.assistant-panel{position:absolute;right:0;bottom:82px;display:flex;flex-direction:column;width:390px;height:min(580px,calc(100dvh - 130px));overflow:hidden;border:1px solid #d5dee9;border-radius:16px;background:#fff;box-shadow:0 18px 60px #172b4d30;animation:assistant-in .18s ease-out}.assistant-header{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:#172b4d;color:#fff}.assistant-heading{display:flex;align-items:center;gap:10px}.assistant-heading>div{display:grid;gap:4px}.assistant-heading strong{font-size:14px}.assistant-heading small{font-size:11px;color:#c7d5ed}.assistant-heading small i{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#f0b44c}.assistant-close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#ffffff18;color:#fff;font-size:24px;line-height:1;cursor:pointer}.assistant-mini-avatar{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#eaf0ff;color:#356ae6;font-size:13px;font-weight:800}.assistant-mini-avatar.large{width:38px;height:38px}.assistant-chat{display:flex;flex:1;flex-direction:column;gap:14px;overflow:auto;padding:18px 14px;background:#f7f9fc;scroll-behavior:smooth}.assistant-message{display:flex;align-items:flex-start;gap:8px;max-width:94%}.assistant-message.user{align-self:flex-end}.assistant-bubble{padding:11px 13px;border:1px solid #e1e7ef;border-radius:4px 14px 14px;background:#fff;color:#233248;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.assistant-message.user .assistant-bubble{border-color:#356ae6;border-radius:14px 4px 14px 14px;background:#356ae6;color:#fff}.assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.assistant-suggestions button{padding:7px 9px;border:1px solid #d5dee9;border-radius:20px;background:#fff;color:#356ae6;font-size:11px;cursor:pointer}.assistant-suggestions button:hover{background:#eaf0ff}.assistant-result-link{display:flex;width:max-content;max-width:100%;min-height:38px;margin-top:11px;padding:7px 10px;font-size:11px}.assistant-disclaimer{padding:8px 14px;background:#fff;color:#8a96a7;font-size:10px;text-align:center}.assistant-compose{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #e1e7ef;background:#fff}.assistant-compose textarea{min-height:44px;max-height:110px;resize:vertical;padding:10px 12px;border-radius:12px;font-size:13px}.assistant-send{display:grid;place-items:center;flex:none;width:42px;height:42px;border:0;border-radius:50%;background:#356ae6;color:#fff;font-size:22px;font-weight:700;cursor:pointer}.assistant-send:hover{background:#2858c9}@keyframes assistant-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.assistant-widget{right:14px;bottom:14px}.assistant-launcher{min-height:58px;padding:7px 13px 7px 8px}.assistant-launcher-avatar{width:42px;height:42px}.assistant-launcher-avatar svg{width:30px;height:30px}.assistant-panel{position:fixed;right:8px;bottom:82px;width:calc(100vw - 16px);height:min(620px,calc(100dvh - 100px));border-radius:14px}.assistant-chat{padding:14px 10px}.assistant-widget:has(.assistant-panel){z-index:90}}
@media(prefers-reduced-motion:reduce){.assistant-launcher,.assistant-panel{transition:none;animation:none}}
.assistant-send:disabled,.assistant-compose textarea:disabled{opacity:.6;cursor:wait}.assistant-typing{color:#64748b;font-style:italic}

/* Keep the floating assistant clear of the footer links. */
.assistant-widget{bottom:76px}
@media(max-width:767px){.assistant-widget{bottom:68px}}

.assistant-launcher-avatar{background:transparent;overflow:visible}.assistant-launcher-avatar img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 6px #172b4d24)}.assistant-mini-avatar{background:transparent;overflow:hidden}.assistant-mini-avatar img{display:block;width:100%;height:100%;object-fit:contain}


/* Show Neuro's plush face clearly in compact assistant avatars. */
.assistant-launcher-avatar,.assistant-mini-avatar{border-radius:50%;overflow:hidden;background:#172b4d}
.assistant-launcher-avatar img,.assistant-mini-avatar img{width:100%;height:100%;object-fit:cover;transform:scale(2.1);transform-origin:50% 40%;filter:none}


/* Transparent robot head cutout: let Neuro overlap the assistant pill. */
.assistant-launcher-avatar{position:relative;display:block;flex:none;width:48px;height:48px;border-radius:0;overflow:visible;background:transparent}
.assistant-launcher-avatar img{position:absolute;left:-11px;top:-8px;width:70px;height:56px;max-width:none;object-fit:contain;transform:none;filter:drop-shadow(0 4px 5px #172b4d38)}
.assistant-mini-avatar{position:relative;overflow:visible;border-radius:0;background:transparent}
.assistant-mini-avatar img{position:absolute;left:50%;top:50%;width:calc(100% + 20px);height:calc(100% + 14px);object-fit:contain;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 3px #172b4d30)}


/* Let Neuro's isolated head pop out above the assistant pill. */
.assistant-launcher{position:relative;overflow:visible;padding-left:66px}
.assistant-launcher-avatar{position:absolute;left:-6px;top:-27px;z-index:2;width:82px;height:76px;border-radius:0;overflow:visible;background:transparent}
.assistant-launcher-avatar img{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:contain;transform:none;filter:none}
.assistant-launcher-label{position:relative;z-index:1}
.assistant-mini-avatar{border-radius:0;background:transparent;overflow:visible}
.assistant-mini-avatar img{filter:none}
@media(max-width:767px){.assistant-launcher{padding-left:62px}.assistant-launcher-avatar{top:-23px;width:76px;height:70px}}


/* Use Neuro's head cutout as the only floating assistant launcher. */
.assistant-launcher{display:block;position:relative;width:100px;height:88px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.assistant-launcher:hover{transform:translateY(-3px);box-shadow:none}
.assistant-launcher-avatar{position:absolute;left:0;top:0;width:100px;height:88px;margin:0;border-radius:0;overflow:visible;background:transparent}
.assistant-launcher-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:none;filter:drop-shadow(0 7px 8px #172b4d24)}
.assistant-launcher-label,.assistant-launcher-sparkle{display:none}
@media(max-width:767px){.assistant-launcher{width:88px;height:78px;min-height:0;padding:0}.assistant-launcher-avatar{width:88px;height:78px}}


/* Keep the floating head clear of adjacent assistant text. */
.assistant-heading{gap:20px}
.assistant-message{gap:14px}


.assistant-heading{gap:28px}


/* Keep calendar row actions accessible above the floating assistant. */
.selected-events .row{position:relative;z-index:81}


/* Raise the floating assistant clear of calendar actions and footer. */
.assistant-widget{bottom:136px}
@media(max-width:767px){.assistant-widget{bottom:118px}}


.assistant-widget{bottom:170px}
@media(max-width:767px){.assistant-widget{bottom:150px}}

.mail-recipient-row{display:flex;align-items:end;gap:8px}.mail-recipient-row>.field{flex:1;min-width:0}.mail-recipient-row>.btn{flex:none;margin-bottom:12px;padding:8px 12px;min-height:42px}.mail-address-list{display:grid;gap:8px;max-height:min(48dvh,420px);overflow:auto;margin:14px 0}.mail-address-contact{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e1e7ef;border-radius:7px;cursor:pointer}.mail-address-contact:hover{background:#f7f9fc;border-color:#c5d1e3}.mail-address-contact .grow{flex:1;min-width:0}.mail-address-contact .item-meta{display:block;overflow-wrap:anywhere}.mail-address-contact strong{display:block}.mail-address-list .empty{padding:20px}
@media(max-width:767px){.mail-recipient-row{align-items:end}.mail-recipient-row>.btn{padding:8px 10px}}

/* Leave a 30px breathing space above the footer for the assistant launcher. */
.assistant-widget{bottom:87px}
@media(max-width:767px){.assistant-widget{bottom:131px}}
.mail-contacts-list{display:grid}.mail-contact-row{display:flex;align-items:center;gap:14px;padding:14px 8px;border-bottom:1px solid #e1e7ef}.mail-contact-row:last-child{border-bottom:0}.mail-contact-info{display:grid;gap:2px;flex:1;min-width:0}.mail-contact-email{font-size:12px;color:#356ae6;overflow-wrap:anywhere}.mail-contact-row>.btn{flex:none}
@media(max-width:767px){.mail-contact-row{gap:10px;flex-wrap:wrap}.mail-contact-row .mail-contact-info{flex-basis:calc(100% - 60px)}.mail-contact-row>.btn{margin-left:54px}}

/* Keep Neuro's floating head above calendar action buttons. */
.assistant-widget{z-index:82}

.trade-workspace>.notice{margin:16px 0}.trade-workspace .panel{margin-top:18px}.trade-workspace .trade-detail header,.trade-workspace .trade-editor header{margin-bottom:20px}.trade-workspace .trade-detail header p{margin:5px 0}.trade-editor h3{margin:26px 0 12px}.trade-rows{display:grid;gap:12px}.trade-row{display:grid;grid-template-columns:minmax(240px,2fr) minmax(95px,.7fr) minmax(90px,.6fr) minmax(140px,1fr) auto;align-items:end;gap:12px;padding:14px;background:#f7f9fc;border:1px solid #dce5f1;border-radius:9px}.trade-row-name{display:grid;grid-template-columns:1fr 1fr;gap:12px}.trade-row .field{margin:0}.trade-row .btn{margin-bottom:0}.trade-terms{margin-top:20px;padding:16px;background:#f6f8fc;border-radius:8px;line-height:1.8}.trade-terms p{margin:0 0 12px}.trade-terms p:last-child{margin:0}.trade-detail .summary{margin:18px 0}.trade-detail .table{min-width:700px}
@media(max-width:760px){.trade-row{grid-template-columns:1fr 1fr}.trade-row-name{grid-column:1/-1}.trade-row>.btn{justify-self:start}.trade-workspace>.mf-title .actions{width:100%}}
.trade-inline-action{margin-top:8px}.trade-address{display:block;color:var(--muted);padding:8px 0}.trade-partners>header p{margin:6px 0 0;color:var(--muted);font-size:13px}.trade-partner-people{margin-top:24px;padding-top:20px;border-top:1px solid #dce5f1}.trade-partner-people h3{margin:0 0 14px}

.trade-partners .link-button{border:0;padding:0;background:transparent;color:#356ae6;font-weight:600;text-align:left}.trade-partners .link-button span{margin-left:6px;font-size:18px}.trade-partner-detail>header{align-items:flex-start}

.trade-partner-detail>header{margin-bottom:16px}

.panel:has(.mail-contacts-list){padding:16px}.mail-contact-row{padding:10px 8px}

.trade-partners>header{margin-bottom:16px}

.trade-partners-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:nowrap}
.trade-partners-header>.btn{position:relative;z-index:auto}
@media(max-width:640px){.trade-partners-header{flex-wrap:wrap}}

.notice-delete-compact{min-height:24px;padding:2px 8px;font-size:10px;line-height:18px;border-radius:4px}
.notice-detail-actions .btn,.notice-detail-actions .badge{min-height:28px;padding:4px 10px;font-size:12px;line-height:18px;border-radius:5px}
.assistant-widget{z-index:84}
.composer{z-index:95}
