/* Shared controls stay vector-based on platforms that render Unicode as emoji. */
.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:7px;line-height:1}
.icon-button svg,.sidebar nav a>svg{width:21px;height:21px;flex-shrink:0}
.sidebar nav a>svg{color:inherit}
.topbar-actions>form{display:flex;margin:0}
.topbar-title,.topbar-actions,.workspace-title{min-width:0}
.mobile-account-actions{display:none;position:relative}
.mobile-account-panel{position:absolute;inset-inline-end:0;top:calc(100% + 10px);width:230px;max-width:calc(100vw - 24px);padding:8px;background:#fff;border:1px solid #dae5ec;border-radius:14px;box-shadow:0 14px 42px #123e5626;z-index:130}
.mobile-account-panel>strong{display:block;padding:9px 10px 12px;font-size:13px;border-bottom:1px solid #edf1f4;margin-bottom:4px;overflow-wrap:anywhere}
.mobile-account-panel button,.mobile-account-panel>a{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:10px;border:0;border-radius:8px;background:transparent;color:#23485b;font:inherit;font-size:13px;text-align:start}
.mobile-account-panel button:hover,.mobile-account-panel>a:hover{background:#eff7f6}
.mobile-account-panel form{margin:0}
.mobile-account-panel form button{color:#ab3c49}
.mobile-account-panel svg{width:20px;height:20px;flex-shrink:0}
.notification-tools .text-button{display:inline-flex;align-items:center;gap:6px}
/* Blend the entire logo layer with the dark sidebar, including on WebKit. */
.sidebar .masari-mark{mix-blend-mode:screen;isolation:auto;display:flex;align-items:center;justify-content:center;height:68px;overflow:hidden}
.sidebar .masari-mark img{position:static;display:block;width:100%;max-width:100%;height:auto;transform:none;mix-blend-mode:normal}
.form-grid>*{min-width:0}
input[type=date],input[type=month],input[type=datetime-local],input[type=time]{box-sizing:border-box;width:100%;inline-size:100%;min-width:0;min-inline-size:0;max-width:100%;max-inline-size:100%;-webkit-appearance:none;appearance:none;direction:ltr;text-align:start;overflow:hidden;font-variant-numeric:tabular-nums}
input[type=date]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:start;white-space:nowrap}
input[type=date]::-webkit-datetime-edit,input[type=month]::-webkit-datetime-edit,input[type=datetime-local]::-webkit-datetime-edit,input[type=time]::-webkit-datetime-edit{min-width:0;padding:0}
.reports-filters input[type=month]{min-width:0;max-width:100%}
.maintenance-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) auto}
.maintenance-filters>label,.reports-filters>label{min-width:0;max-width:100%}
.maintenance-report-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.maintenance-report-head>div:first-child{min-width:0;gap:4px}
.maintenance-report-head small{line-height:1.7;overflow-wrap:anywhere}
.maintenance-report-actions{display:flex;justify-content:flex-end;gap:8px}
.maintenance-report-actions .button{white-space:nowrap}
.account-row{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,2.2fr);gap:22px;padding:18px;margin:14px 0;border:1px solid #e0e9ee;border-radius:14px;background:#fff;align-items:start}
.account-profile{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;min-width:0}
.account-identity{min-width:0;display:grid;gap:5px}
.account-row .account-identity strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.account-row .account-identity small{font-size:11px;overflow-wrap:anywhere}
.account-identity .badge{justify-self:start}
.account-row .account-controls{display:grid;gap:14px;min-width:0;width:100%;margin:0;align-items:stretch}
.account-permission-group{min-width:0}
.account-permission-group h3{font-size:12px;font-weight:600;color:#66808e;margin:0 0 8px}
.account-permissions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:0}
.account-permissions .check-item{display:flex;align-items:center;gap:8px;margin:0;padding:10px;min-width:0;min-height:46px;border:1px solid #e1eaee;border-radius:9px;background:#f7fafb;font-size:12px;line-height:1.6;word-break:normal;overflow-wrap:normal}
.account-permissions .check-item input{width:18px;height:18px;margin:0;flex-shrink:0}
.account-security-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
.account-row .account-security-actions button{width:100%;min-width:0;min-height:43px;padding:8px 10px;font-size:12px;line-height:1.6;word-break:normal;overflow-wrap:normal;white-space:normal}
.account-security-actions .text-button{border:1px solid #e2e9ed;border-radius:9px;background:#fff}
.account-photo-controls[open] .profile-photo-editor{right:0;width:min(280px,calc(100vw - 64px));max-width:calc(100vw - 64px)}
.panel>.section-heading h2:has(svg){display:flex;align-items:center;gap:8px}
@media(max-width:1100px){
 .account-row{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media(max-width:800px){
 .maintenance-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .maintenance-report-head{grid-template-columns:minmax(0,1fr);gap:14px}
 .maintenance-report-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 .maintenance-report-actions .button{min-width:0;min-height:44px;padding:9px 6px;font-size:12px;gap:5px}
 .maintenance-report-actions svg{width:18px;height:18px;flex-shrink:0}
}
@media(max-width:680px){
 .account-row{padding:14px;gap:15px}
 .account-permissions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-permissions>.check-item:last-child:nth-child(odd){grid-column:1/-1}
 .account-permissions .check-item{font-size:12px;padding:10px;min-height:46px}
 .account-security-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-row .account-security-actions button{min-height:44px}
}
@media(max-width:600px){
 .topbar{padding:9px 10px;gap:8px;min-height:64px}
 .topbar-title{gap:6px;flex:1;font-size:12px;white-space:nowrap}
 .topbar-actions{gap:2px;flex-shrink:0}
 .topbar .icon-button{width:40px;min-width:40px;height:44px;min-height:44px;padding:9px}
 .topbar .sound-toggle{border-radius:10px;height:40px;min-height:40px}
 .topbar .desktop-account-action,.topbar .meeting-toggle{display:none}
 .mobile-account-actions{display:block}
 .identity>a{display:grid;place-items:center;width:36px;height:44px}
 .identity .avatar{width:30px;height:30px}
 .topbar-title .live-dot{width:6px;height:6px;flex-shrink:0}
 .topbar .notification-count{font-size:9px;min-width:16px;height:16px;line-height:16px}
 .sidebar{padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom));height:100dvh}
 .sidebar .masari-mark{width:100%;max-width:190px;height:64px;margin-bottom:18px}
 .sidebar nav a{min-height:44px}
 .page-footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}
 .maintenance-filters{grid-template-columns:minmax(0,1fr)}
 .maintenance-filters input,.reports-filters input{font-size:16px}
 .maintenance-report-head>div:first-child strong{font-size:16px}
 .maintenance-report-head small{font-size:11px}
}
@media(max-width:380px){
 .topbar{padding-inline:8px;gap:4px}
 .topbar-title .live-dot{display:none}
 .topbar-title{gap:4px;font-size:11px}
 .topbar .icon-button{width:38px;min-width:38px}
 .topbar-actions{gap:1px}
 .maintenance-report-actions{gap:5px}
 .maintenance-report-actions .button{font-size:11px;padding-inline:4px}
 .maintenance-report-actions svg{width:16px;height:16px}
}
