.aow-core-grid{min-height:420px}.aow-core-inline-status{min-height:22px;margin-top:10px;color:#667085;font-size:13px}.aow-core-inline-status.is-error{color:#b42318}
.aow-core-overview-card{margin-top:16px}.aow-core-overview-card>strong{display:block;font-size:16px;margin-bottom:6px}.aow-core-overview-card p{margin:0;color:#667085}.aow-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.aow-setting-summary{display:grid;gap:5px;padding:14px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc}.aow-setting-summary span{font-size:12px;color:#667085}.aow-setting-summary strong{font-size:14px}.aow-core-add-row{margin-top:10px}.aow-button-link-danger{border:0;background:transparent;color:#b42318;cursor:pointer;padding:4px 6px}.aow-grid-delete{border:0;background:transparent;color:#b42318;font-size:20px;line-height:1;cursor:pointer}.aow-core-employee-table code{display:block;margin-top:4px}.aow-core-employee-toolbar span.is-dirty{color:#b54708;font-weight:700}@media(max-width:900px){.aow-settings-grid{grid-template-columns:1fr}}

.aow-employee-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(430px,1fr));gap:14px;margin-top:12px}.aow-employee-card{border:1px solid #e4e7ec;border-radius:12px;background:#fff;overflow:hidden}.aow-employee-card__head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 14px;background:#f8fafc;border-bottom:1px solid #e4e7ec}.aow-employee-card__head strong,.aow-employee-card__head small{display:block}.aow-employee-card__body{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.4fr)}.aow-employee-account,.aow-employee-permissions{padding:14px}.aow-employee-account{border-right:1px solid #e4e7ec}.aow-employee-card h3{margin:0 0 10px;font-size:14px}.aow-field{display:grid;gap:5px;margin-bottom:9px}.aow-field input,.aow-field select,.aow-field textarea,.aow-input{width:100%;padding:8px 10px;border:1px solid #d0d5dd;border-radius:8px;background:#fff}.aow-employee-filter{display:flex;align-items:center;gap:12px;margin:12px 0}.aow-employee-filter .aow-input{max-width:360px}.aow-permission-groups{display:grid;gap:10px}.aow-permission-groups fieldset{border:1px solid #e4e7ec;border-radius:8px;padding:10px;margin:0}.aow-checkbox-grid{display:grid;gap:6px}.aow-checkbox-grid label{display:flex;gap:7px;align-items:flex-start}.aow-mini-button{border:1px solid #d0d5dd;border-radius:7px;background:#fff;padding:6px 9px;cursor:pointer}.aow-mini-button--danger{color:#b42318}.aow-settings-card{padding:14px;border:1px solid #e4e7ec;border-radius:10px;background:#fff}.aow-settings-card h3{margin:0 0 12px}.aow-dashboard-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}.aow-dashboard-module{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:10px;text-align:left;padding:16px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;cursor:pointer}.aow-dashboard-module>span{grid-row:1/3;font-size:24px;color:#2563eb}.aow-dashboard-module small{color:#667085;margin-top:3px}@media(max-width:900px){.aow-employee-cards{grid-template-columns:1fr}.aow-employee-card__body{grid-template-columns:1fr}.aow-employee-account{border-right:0;border-bottom:1px solid #e4e7ec}.aow-dashboard-modules{grid-template-columns:1fr}.aow-settings-grid{grid-template-columns:1fr}}

/* v1.1.0: compact vertical employee management and batch-editable attendance. */
.aow-employee-cards{grid-template-columns:1fr}
.aow-employee-card__body{display:block}
.aow-employee-account{border-right:0;border-bottom:1px solid #e4e7ec}
.aow-employee-account{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}
.aow-employee-account>h3,.aow-employee-account>[data-password-toggle]{grid-column:1/-1}
.aow-employee-permissions{display:grid;gap:10px}
.aow-permission-group{border:1px solid #e4e7ec;border-radius:8px;padding:10px;margin:0}
.aow-permission-group label{display:inline-flex;gap:6px;align-items:center;margin:4px 14px 4px 0}
.aow-attendance-admin-table{min-width:1040px}
.aow-attendance-admin-table td{vertical-align:top}
.aow-table-input{width:100%;min-width:145px;padding:7px 8px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:inherit;font:inherit;box-sizing:border-box}
.aow-table-input--note{min-width:230px;resize:vertical}
.aow-table-subtext{display:block;margin-top:3px;color:#667085;font-size:11px}
.aow-delete-check{display:inline-flex;align-items:center;gap:5px;color:#b42318;white-space:nowrap}
[data-aow-attendance-admin-pending].is-dirty{color:#b54708;font-weight:700}
@media(max-width:900px){.aow-employee-account{grid-template-columns:1fr}.aow-attendance-admin-table{min-width:900px}}
.aow-employee-create-panel{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end;margin:12px 0;padding:12px;border:1px solid #dbe5f5;border-radius:10px;background:#f8fbff}.aow-employee-create-panel[hidden]{display:none}.aow-employee-create-panel .aow-field{margin:0}.aow-employee-create-actions{display:flex;gap:8px;align-items:center;grid-column:1/-1}@media(max-width:1100px){.aow-employee-create-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.aow-employee-create-panel{grid-template-columns:1fr}}

/* v1.2.0 integrated Attendance, Collection Library and permission-management surfaces. */
.aow-panel-toolbar--sticky{position:sticky;top:0;z-index:4;background:#fff}
.aow-attendance-slots{display:grid;gap:12px;margin-top:14px}
.aow-attendance-slot{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px 18px;align-items:center;padding:15px;border:1px solid #e4e7ec;border-radius:10px;background:#fff}
.aow-attendance-slot.is-open{border-color:#84adff;background:#f5f8ff}.aow-attendance-slot.is-missing{border-color:#fecdca;background:#fff8f7}.aow-attendance-slot.is-complete{border-color:#abefc6;background:#f6fef9}
.aow-attendance-slot__meta{display:grid;gap:3px}.aow-attendance-slot__meta>span{color:#667085;font-size:11px;font-weight:750;letter-spacing:.06em}.aow-attendance-slot__meta>strong{font-size:14px}.aow-attendance-slot__meta>small{color:#667085}
.aow-attendance-slot__result{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.aow-attendance-slot__result time{font-variant-numeric:tabular-nums;color:#475467}
.aow-attendance-remark{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding-top:10px;border-top:1px solid #eaecf0}.aow-attendance-remark input{min-height:38px;padding:7px 9px;border:1px solid #d0d5dd;border-radius:7px;font:inherit}
.aow-attendance-admin-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:14px 0}.aow-attendance-admin-filters .aow-field{min-width:180px;margin:0}
.aow-attendance-employee{margin:14px 0;border:1px solid #e4e7ec;border-radius:11px;background:#fff;overflow:hidden}.aow-attendance-employee__head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:#f8fafc;border-bottom:1px solid #e4e7ec}.aow-attendance-employee__head strong,.aow-attendance-employee__head small{display:block}.aow-attendance-employee__head small{color:#667085;margin-top:2px}
.aow-switch-row,.aow-makeup-check{display:inline-flex;gap:7px;align-items:center;white-space:nowrap}.aow-makeup-check{margin-top:7px;font-size:12px;color:#475467}
.aow-attendance-slots-table{min-width:1180px}.aow-attendance-slots-table textarea{min-height:58px}
.aow-library-breadcrumb{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:14px 0}.aow-library-breadcrumb button{border:0;background:transparent;color:#2563eb;padding:2px 3px;cursor:pointer}.aow-library-breadcrumb button[disabled]{color:#344054;font-weight:650;cursor:default}
.aow-library-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin-bottom:14px}.aow-folder-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;border:1px solid #e4e7ec;border-radius:10px;background:#fff;padding:8px}.aow-folder-open{min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;text-align:left;border:0;background:transparent;padding:5px;cursor:pointer}.aow-folder-icon{grid-row:1/3;align-self:center;color:#2563eb;font-size:20px}.aow-folder-open strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aow-folder-open small{color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aow-row-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.aow-library-file-table{min-width:780px}.aow-library-empty{padding:40px 16px;text-align:center;color:#667085;border:1px dashed #d0d5dd;border-radius:10px;background:#fcfcfd}
.aow-library-preview{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:24px;background:rgba(16,24,40,.58)}.aow-library-preview[hidden]{display:none}.aow-library-preview__dialog{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1100px,96vw);height:min(820px,90vh);overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 24px 72px rgba(16,24,40,.24)}.aow-library-preview__head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #e4e7ec}.aow-library-preview__body{overflow:auto;padding:14px}.aow-preview-actions{display:flex;gap:8px;justify-content:flex-end;margin-bottom:12px}.aow-preview-image{display:block;max-width:100%;height:auto;margin:auto}.aow-preview-frame{width:100%;height:calc(80vh - 120px);border:0}.aow-preview-text-editor{width:100%;min-height:540px;box-sizing:border-box;padding:14px;border:1px solid #d0d5dd;border-radius:8px;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}.aow-doc-preview{max-width:900px;margin:auto;padding:22px;background:#fff;color:#101828}.aow-doc-preview h1,.aow-doc-preview h2,.aow-doc-preview h3{margin:1.2em 0 .55em}.aow-doc-table-wrap{overflow:auto}.aow-doc-table{border-collapse:collapse;width:100%}.aow-doc-table td{padding:7px;border:1px solid #d0d5dd}.aow-modal-open{overflow:hidden}
.aow-access-details{border:1px solid #e4e7ec;border-radius:9px;background:#fcfcfd}.aow-access-details>summary{cursor:pointer;padding:10px 12px;font-weight:650}.aow-access-list{display:grid;gap:7px;padding:0 10px 10px}.aow-folder-permission-row,.aow-file-permission-row{display:grid;grid-template-columns:minmax(180px,1fr) repeat(4,auto);gap:8px 12px;align-items:center;padding:8px;border:1px solid #eaecf0;border-radius:7px;background:#fff}.aow-file-permission-row{grid-template-columns:minmax(180px,1fr) auto auto}.aow-folder-permission-row small,.aow-file-permission-row small{display:block;color:#667085}.aow-file-permission-search{padding:0 10px 8px}
.aow-workday-picker{display:flex;flex-wrap:wrap;gap:8px}.aow-workday-picker label{display:flex;gap:5px;align-items:center;padding:7px 9px;border:1px solid #d0d5dd;border-radius:7px;background:#fff}.aow-clock-window-list{display:grid;gap:8px}.aow-clock-window{display:grid;grid-template-columns:minmax(150px,1fr) 130px 130px;gap:10px;align-items:end;padding:10px;border:1px solid #e4e7ec;border-radius:8px;background:#f8fafc}.aow-clock-window strong{align-self:center}.aow-settings-section-note{margin:0 0 10px;color:#667085;font-size:12px}
@media(max-width:760px){.aow-attendance-slot{grid-template-columns:1fr}.aow-attendance-slot__result{justify-content:flex-start}.aow-folder-permission-row,.aow-file-permission-row{grid-template-columns:1fr}.aow-clock-window{grid-template-columns:1fr}.aow-library-preview{padding:8px}.aow-library-preview__dialog{width:100%;height:96vh}}
@media(min-width:901px){.aow-employee-account{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.3.0: team attendance summary + managed detail drawer. */
.aow-attendance-team-table{min-width:900px}.aow-attendance-team-table th,.aow-attendance-team-table td{white-space:nowrap;vertical-align:middle}.aow-attendance-team-table td:first-child{min-width:180px}.aow-attendance-summary-state{display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px;font-weight:650}.aow-attendance-summary-state.is-complete{background:#ecfdf3;color:#067647}.aow-attendance-summary-state.is-missing{background:#fff1f3;color:#b42318}.aow-attendance-summary-state.is-open{background:#eff8ff;color:#175cd3}.aow-button--compact{min-height:32px;padding:5px 10px}.aow-attendance-detail-host{margin-top:14px}.aow-attendance-employee--detail{margin-bottom:0;box-shadow:0 12px 28px rgba(16,24,40,.08)}

/* Employee-to-employee read-only folder sharing. */
.aow-library-share-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:24px;background:rgba(16,24,40,.58)}.aow-library-share-modal[hidden]{display:none}.aow-library-share-dialog{width:min(620px,96vw);max-height:86vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 24px 72px rgba(16,24,40,.24)}.aow-library-share-dialog .aow-library-preview__head>div{display:grid;gap:3px}.aow-library-share-dialog .aow-library-preview__head small{color:#667085;font-size:12px}.aow-library-share-list{overflow:auto;padding:12px 14px;display:grid;gap:7px}.aow-share-person{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e4e7ec;border-radius:8px;background:#fff}.aow-share-person span{display:grid}.aow-share-person small{color:#667085}.aow-library-share-actions{display:flex;justify-content:flex-end;padding:12px 14px;border-top:1px solid #e4e7ec;background:#f8fafc}

/* Interface language is stored per Office account and changed from Settings. */
.aow-settings-card .aow-field small{color:#667085;font-size:12px;line-height:1.45}

/* v1.9.0: administrator and employee overview surfaces. */
.aow-admin-overview{display:grid;gap:14px}.aow-dashboard-section{border:1px solid #e4e7ec;border-radius:12px;background:#fff;overflow:hidden}.aow-dashboard-section>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;cursor:pointer;list-style:none;background:#fff}.aow-dashboard-section>summary::-webkit-details-marker{display:none}.aow-dashboard-section>summary:after{content:'⌄';font-size:18px;color:#667085;transition:transform .15s ease}.aow-dashboard-section[open]>summary:after{transform:rotate(180deg)}.aow-dashboard-section>summary span{display:grid;gap:3px}.aow-dashboard-section>summary strong{font-size:15px}.aow-dashboard-section>summary small{color:#667085;font-size:12px;font-weight:400}.aow-dashboard-section__body{border-top:1px solid #eaecf0;padding:14px 16px 16px}.aow-dashboard-filter{display:flex;align-items:end;gap:8px;justify-content:flex-end;margin-bottom:12px}.aow-field--inline{margin:0;min-width:180px}.aow-dashboard-attendance-table{min-width:900px}.aow-dashboard-attendance-state{display:inline-flex;min-height:25px;align-items:center;padding:2px 7px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px;font-weight:650;white-space:nowrap}.aow-dashboard-attendance-state.is-complete{background:#ecfdf3;color:#067647}.aow-dashboard-attendance-state.is-missing{background:#fff1f3;color:#b42318}.aow-dashboard-attendance-state.is-open{background:#eff8ff;color:#175cd3}.aow-dashboard-attendance-state.is-upcoming{background:#f9fafb;color:#667085}.aow-dashboard-note{min-width:180px;white-space:normal!important}.aow-performance-table{min-width:900px}.aow-performance-table input{min-width:110px}.aow-performance-table td:last-child input{min-width:220px}.aow-performance-note{padding:12px 14px;border:1px solid #e4e7ec;border-radius:8px;background:#f8fafc}.aow-performance-admin.is-compact>.aow-panel-toolbar{padding-top:0}.aow-performance-admin.is-compact .aow-panel-toolbar>div:first-child span{display:none}@media(max-width:760px){.aow-dashboard-filter{justify-content:flex-start;flex-wrap:wrap}.aow-dashboard-section__body{padding:10px}.aow-dashboard-section>summary{padding:13px}}

/* v1.9.0 unified office surfaces */
.aow-panel-toolbar,.aow-settings-section-head,.aow-dashboard-section>summary,.aow-performance-person>summary,.aow-attendance-months details>summary{background:#f6f8fb}
.aow-panel-toolbar{border-radius:12px 12px 0 0}.aow-panel-toolbar--sticky{background:#f6f8fb}
.aow-dashboard-section{border:1px solid #e4e7ec;border-radius:12px;background:#fff;overflow:hidden;margin-bottom:14px}.aow-dashboard-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;border-bottom:1px solid transparent}.aow-dashboard-section[open]>summary{border-bottom-color:#e4e7ec}.aow-dashboard-section>summary strong,.aow-dashboard-section>summary small{display:block}.aow-dashboard-section>summary small{margin-top:3px;color:#667085;font-size:12px}.aow-dashboard-section__body{padding:14px}.aow-dashboard-filter{display:flex;align-items:end;gap:8px;margin-bottom:12px}.aow-dashboard-attendance-state{display:inline-flex;min-width:64px;justify-content:center;padding:4px 7px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px}.aow-dashboard-attendance-state.is-complete{background:#ecfdf3;color:#027a48}.aow-dashboard-attendance-state.is-missing{background:#fef3f2;color:#b42318}.aow-dashboard-attendance-state.is-open{background:#eff8ff;color:#175cd3}.aow-dashboard-attendance-state.is-upcoming{background:#f9fafb;color:#667085}
.aow-attendance-months{display:grid;gap:12px;margin-top:16px}.aow-attendance-months details{border:1px solid #e4e7ec;border-radius:10px;overflow:hidden;background:#fff}.aow-attendance-months details>summary{padding:12px 14px;font-weight:700;cursor:pointer;border-bottom:1px solid transparent}.aow-attendance-months details[open]>summary{border-bottom-color:#e4e7ec}.aow-attendance-months .aow-grid-scroll{padding:0}.aow-attendance-month-table{min-width:980px}
.aow-settings-tabs{display:flex;gap:4px;padding:10px 12px 0;border-bottom:1px solid #e4e7ec;background:#fff;overflow-x:auto}.aow-settings-tabs button{position:relative;min-height:40px;padding:0 14px;border:0;background:transparent;color:#667085;font-weight:650;white-space:nowrap;cursor:pointer}.aow-settings-tabs button.is-active{color:#101828}.aow-settings-tabs button.is-active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:#2563eb;border-radius:2px 2px 0 0}.aow-settings-tabpanels{padding:14px}.aow-settings-tabpanel{border:1px solid #e4e7ec;border-radius:10px;background:#fff;overflow:hidden;padding:0 14px 14px}.aow-settings-tabpanel[hidden]{display:none}.aow-settings-section-head{margin:0 -14px 14px;padding:12px 14px;border-bottom:1px solid #e4e7ec}.aow-settings-section-head strong,.aow-settings-section-head span{display:block}.aow-settings-section-head span{margin-top:3px;color:#667085;font-size:12px}.aow-profile-settings{display:grid;grid-template-columns:180px minmax(0,520px);gap:20px;align-items:start}.aow-profile-avatar-preview{display:grid;place-items:center;min-height:180px;border:1px dashed #d0d5dd;border-radius:12px;background:#f8fafc}.aow-profile-avatar-preview .aow-account-avatar,.aow-profile-avatar-preview .aow-account-avatar-img{width:112px;height:112px;border-radius:50%;object-fit:cover}.aow-account-avatar-img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.aow-performance-people{display:grid;gap:10px}.aow-performance-person{border:1px solid #e4e7ec;border-radius:10px;background:#fff;overflow:hidden}.aow-performance-person>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;cursor:pointer}.aow-performance-person>summary strong,.aow-performance-person>summary small{display:block}.aow-performance-person>summary small{color:#667085}.aow-performance-person__totals{display:flex;gap:8px;align-items:center;font-variant-numeric:tabular-nums}.aow-performance-person__totals em{color:#98a2b3;font-style:normal}.aow-performance-person__body{padding:12px 14px;border-top:1px solid #e4e7ec}.aow-performance-event-head,.aow-performance-event{display:grid;grid-template-columns:150px 130px 140px minmax(220px,1fr) auto;gap:8px;align-items:center}.aow-performance-event-head{padding:0 0 6px;color:#667085;font-size:11px;font-weight:700}.aow-performance-event{padding:7px 0;border-top:1px solid #f2f4f7}.aow-performance-event input,.aow-performance-event select{width:100%;min-height:36px;padding:6px 8px;border:1px solid #d0d5dd;border-radius:7px;background:#fff}.aow-metrics--performance{grid-template-columns:repeat(3,minmax(0,1fr));margin:14px}
.aow-library-access-editor{display:grid;gap:10px;padding:12px}.aow-access-toggle{display:flex;align-items:center;gap:8px}.aow-shared-employee-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:7px;padding:10px;border:1px solid #eaecf0;border-radius:8px;background:#f9fafb}.aow-shared-employee-list>strong{grid-column:1/-1;font-size:12px}.aow-shared-employee-list label{display:flex;gap:7px;align-items:center;font-size:12px}.aow-access-details{border:1px solid #e4e7ec;border-radius:9px;overflow:hidden;background:#fff}.aow-access-details>summary{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:#f8fafc;cursor:pointer}.aow-access-details>summary span{color:#667085;font-size:12px}.aow-section-help{margin:0 0 10px;color:#667085;font-size:12px;line-height:1.5}.aow-login-protection{display:grid;gap:2px;padding:9px 10px;border:1px solid #e4e7ec;border-radius:8px;background:#f9fafb;grid-column:1/-1}.aow-login-protection.is-locked{border-color:#fecdca;background:#fff6f5;color:#b42318}.aow-login-protection small{color:#667085}
.aow-employee-card__head{background:#f6f8fb}.aow-employee-account{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.aow-employee-permissions{background:#fcfcfd}
@media(max-width:900px){.aow-profile-settings{grid-template-columns:1fr}.aow-performance-event-head{display:none}.aow-performance-event{grid-template-columns:1fr 1fr}.aow-performance-event [data-event-field="reason"]{grid-column:1/-1}.aow-employee-account{grid-template-columns:1fr}.aow-dashboard-filter{align-items:stretch;flex-direction:column}}


/* v1.9.1: clearer folder hierarchy, per-employee month records, and soft-blue heading surfaces. */
.aow-panel-toolbar,
.aow-settings-section-head,
.aow-dashboard-section>summary,
.aow-performance-person>summary,
.aow-attendance-months>details>summary,
.aow-attendance-month-person>summary,
.aow-attendance-employee__head,
.aow-employee-card__head,
.aow-access-details>summary{
  background:#eaf2fb;
  border-color:#d8e7f7;
}
.aow-panel-toolbar{border-bottom:1px solid #d8e7f7}
.aow-panel-toolbar>div:first-child strong,
.aow-settings-section-head strong,
.aow-dashboard-section>summary strong,
.aow-attendance-months>details>summary,
.aow-attendance-month-person>summary strong{color:#17365d}

.aow-library-folder-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:12px}
.aow-folder-card{grid-template-columns:minmax(0,1fr);align-items:stretch;padding:11px 12px;gap:9px}
.aow-folder-open{grid-template-columns:34px minmax(0,1fr);padding:4px 2px;align-items:center}
.aow-folder-open strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;line-height:1.35}
.aow-folder-open small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35}
.aow-folder-card>.aow-row-actions{justify-content:flex-start;padding-left:42px}
[data-aow-library-file-table-wrap][hidden]{display:none!important}

.aow-attendance-month-people{display:grid;gap:10px;padding:12px}
.aow-attendance-month-person{border:1px solid #dbe7f4;border-radius:10px;overflow:hidden;background:#fff}
.aow-attendance-month-person>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;cursor:pointer;list-style:none}
.aow-attendance-month-person>summary::-webkit-details-marker{display:none}
.aow-attendance-month-person>summary>span:first-child{display:grid;gap:2px}
.aow-attendance-month-person>summary small{color:#667085;font-size:12px;font-weight:400}
.aow-attendance-month-person__hint{color:#52719a;font-size:12px;white-space:nowrap}
.aow-attendance-month-person__body{border-top:1px solid #e3edf7}
.aow-attendance-month-person__body .aow-grid-scroll{padding:0}

@media(max-width:760px){
  .aow-library-folder-grid{grid-template-columns:1fr}
  .aow-folder-card>.aow-row-actions{padding-left:0}
  .aow-attendance-month-person>summary{align-items:flex-start;flex-direction:column}
}


/* v1.9.2: upload guidance, consistent panel breathing room and employee performance history. */
.aow-library-module>.aow-library-breadcrumb{margin:0;padding:14px 16px 10px}
.aow-library-module>.aow-library-folder-grid{margin:0;padding:0 16px 16px}
.aow-library-module>[data-aow-library-file-table-wrap]{padding:0 16px 16px}
.aow-library-module>[data-aow-library-file-table-wrap] .aow-library-file-table{border:1px solid #e4e7ec;border-radius:10px;overflow:hidden}
.aow-library-module>.aow-library-empty{margin:0 16px 16px}
.aow-library-module>.aow-inline-status{margin:0 16px 14px}
.aow-library-upload-note{margin:0 16px 16px;padding:10px 12px;border:1px solid #d9e7f5;border-radius:9px;background:#f7fbff;color:#5f7390;font-size:12px;line-height:1.55}
.aow-library-upload-note[hidden]{display:none!important}
.aow-attendance-admin-filters{padding-inline:16px}
.aow-attendance-admin>[data-aow-attendance-admin-content]{padding-inline:16px}
.aow-attendance-admin>.aow-inline-status{margin-inline:16px}
.aow-attendance-admin>.aow-attendance-months,.aow-attendance-module>.aow-attendance-months{margin:16px}
.aow-attendance-module>.aow-attendance-slots,.aow-attendance-module>.aow-inline-status{margin-left:16px;margin-right:16px}
.aow-performance-history{display:grid;gap:14px;background:transparent;border:0;box-shadow:none}
.aow-performance-history>details{overflow:hidden;border:1px solid #e4e7ec;border-radius:12px;background:#fff}
.aow-performance-history>details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;background:#eaf2fb;color:#17365d;list-style:none}
.aow-performance-history>details>summary::-webkit-details-marker{display:none}
.aow-performance-history>details>summary span{display:grid;gap:2px}
.aow-performance-history>details>summary small{color:#5f7390;font-weight:400}
.aow-performance-history__body{padding:2px 14px 16px}
@media(max-width:767px){.aow-library-module>.aow-library-breadcrumb{padding-inline:12px}.aow-library-module>.aow-library-folder-grid,.aow-library-module>[data-aow-library-file-table-wrap]{padding-left:12px;padding-right:12px}.aow-library-module>.aow-library-empty,.aow-library-module>.aow-inline-status,.aow-library-upload-note{margin-left:12px;margin-right:12px}.aow-attendance-admin-filters,.aow-attendance-admin>[data-aow-attendance-admin-content]{padding-inline:12px}.aow-attendance-admin>.aow-attendance-months,.aow-attendance-module>.aow-attendance-months{margin:12px}.aow-attendance-module>.aow-attendance-slots,.aow-attendance-module>.aow-inline-status{margin-left:12px;margin-right:12px}}

/* v1.9.3: cleaner DOCX hierarchy, drag/drop batch uploads and exclusive file sorting. */
.aow-library-dropzone{margin:0 16px 10px;padding:22px;border:1.5px dashed #9bbce2;border-radius:10px;background:#f7fbff;color:#385b83;text-align:center;cursor:pointer;display:grid;gap:4px;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.aow-library-dropzone[hidden]{display:none!important}.aow-library-dropzone strong{font-size:14px;color:#173f6b}.aow-library-dropzone span{font-size:12px}.aow-library-dropzone:hover,.aow-library-dropzone:focus-visible,.aow-library-dropzone.is-dragover{border-color:#2563eb;background:#edf5ff;box-shadow:0 0 0 3px rgba(37,99,235,.08);outline:none}
.aow-table-sort{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:inherit;cursor:pointer}.aow-table-sort [data-sort-indicator]{color:#98a2b3;font-size:12px}.aow-table-sort.is-active [data-sort-indicator]{color:#2563eb}
.aow-doc-preview{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.7}.aow-doc-preview h1{font-size:30px;line-height:1.2;margin:0 0 22px;font-weight:760;color:#0f172a}.aow-doc-preview h2{font-size:23px;line-height:1.3;margin:30px 0 12px;font-weight:730;color:#132b46}.aow-doc-preview h3{font-size:18px;line-height:1.35;margin:22px 0 9px;font-weight:700;color:#243b53}.aow-doc-preview h4,.aow-doc-preview h5,.aow-doc-preview h6{margin:18px 0 8px;font-weight:700;color:#344054}.aow-doc-preview p{margin:0 0 14px;color:#1d2939}.aow-doc-preview ul,.aow-doc-preview ol{margin:4px 0 16px;padding-left:26px}.aow-doc-preview li{margin:4px 0}.aow-doc-preview strong{font-weight:700}.aow-doc-preview em{font-style:italic}.aow-preview-frame--drawio{min-height:650px;background:#fff}
@media(max-width:767px){.aow-library-dropzone{margin-left:12px;margin-right:12px;padding:18px 12px}.aow-doc-preview{padding:16px}.aow-doc-preview h1{font-size:25px}.aow-doc-preview h2{font-size:20px}}

/* v1.9.6: compact employee cards, title-bar filters, monthly attendance reuse, and clearer performance cards. */
.aow-dashboard-section>summary{align-items:center;flex-wrap:wrap}
.aow-dashboard-section>summary>span:first-child{min-width:220px;flex:1 1 360px}
.aow-dashboard-filter--summary{flex:0 1 auto;margin:0;align-items:end;justify-content:flex-end}
.aow-dashboard-filter--summary .aow-field{margin:0;min-width:190px}
.aow-dashboard-filter--summary+*{margin-left:auto}
.aow-dashboard-section>summary:after{margin-left:2px}

.aow-employee-filter{justify-content:space-between;flex-wrap:wrap}
.aow-employee-filter .aow-employee-count{margin-left:auto;color:#344054;font-size:13px}
.aow-employee-cards{grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:12px;align-items:start}
.aow-employee-card--compact{overflow:visible;background:#fff}
.aow-employee-card__summary{display:grid;gap:12px;padding:14px;border:1px solid #dbe7f4;border-radius:12px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);box-shadow:0 1px 2px rgba(16,24,40,.04)}
.aow-employee-card__identity{display:flex;align-items:center;gap:10px;min-width:0}
.aow-employee-card__identity>div{min-width:0}.aow-employee-card__identity strong,.aow-employee-card__identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aow-employee-card__identity small{color:#667085;margin-top:2px}
.aow-employee-card__avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#eaf2fb;color:#17365d;font-weight:800}
.aow-employee-card__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.aow-employee-card__facts>span{display:grid;gap:2px;padding:8px 9px;border:1px solid #e4edf7;border-radius:9px;background:#fff;min-width:0}
.aow-employee-card__facts small{color:#667085;font-size:11px}.aow-employee-card__facts b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aow-employee-card__facts .is-danger b{color:#b42318}.aow-employee-card__facts .is-ok b{color:#067647}
.aow-employee-card__summary-actions{display:flex;gap:8px;justify-content:flex-end}
.aow-employee-card__manage{grid-column:1/-1;margin-top:8px;border:1px solid #dbe7f4;border-radius:12px;background:#fff;overflow:hidden}
.aow-employee-card__manage:not([open]){display:none}.aow-employee-card__manage>summary{display:none}
.aow-employee-card--compact:has(.aow-employee-card__manage[open]){grid-column:1/-1}
.aow-employee-card--compact .aow-employee-card__body{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.5fr)}
.aow-profile-employment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

.aow-attendance-month-switcher{border:1px solid #dbe7f4;border-radius:12px;background:#fff;overflow:hidden}
.aow-attendance-month-switcher__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#eaf2fb;border-bottom:1px solid #d8e7f7}
.aow-attendance-month-switcher__head>div:first-child{display:grid;gap:2px}.aow-attendance-month-switcher__head strong{color:#17365d}.aow-attendance-month-switcher__head small{color:#5f7390;font-size:12px}
.aow-segmented-control{display:inline-flex;gap:3px;padding:3px;border:1px solid #cbdbea;border-radius:9px;background:#fff}
.aow-segmented-control button{border:0;border-radius:7px;background:transparent;color:#52677f;padding:7px 11px;cursor:pointer;font:inherit;font-size:12px;font-weight:700}
.aow-segmented-control button.is-active{background:#2563eb;color:#fff}
.aow-attendance-month-switcher>[data-aow-attendance-month-panel][hidden]{display:none!important}
.aow-makeup-auto{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:150px}.aow-makeup-auto>strong{font-variant-numeric:tabular-nums;color:#17365d}.aow-makeup-auto .aow-makeup-check{margin:0}

.aow-performance-people{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}
.aow-performance-person{border-color:#d8e7f7;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.aow-performance-person[open]{grid-column:1/-1}
.aow-performance-person>summary{padding:14px 16px;align-items:stretch;background:#eaf2fb}
.aow-performance-person__identity{display:grid;align-content:center;gap:2px;min-width:140px}.aow-performance-person__identity strong{font-size:15px;color:#17365d}
.aow-performance-person__totals{display:grid;grid-template-columns:repeat(3,minmax(105px,1fr));gap:8px;min-width:min(100%,360px)}
.aow-performance-person__totals>span{display:grid;gap:2px;padding:7px 9px;border:1px solid #d4e3f3;border-radius:8px;background:rgba(255,255,255,.82)}
.aow-performance-person__totals small{color:#667085;font-size:10px;text-transform:none}.aow-performance-person__totals b,.aow-performance-person__totals strong{font-size:14px;font-variant-numeric:tabular-nums}.aow-performance-person__totals .is-net strong{color:#175cd3}
.aow-performance-person__body{padding:14px 16px 16px;background:#fff}.aow-performance-event{border-top:1px solid #eef2f6}.aow-performance-event:first-child{border-top:0}

@media(max-width:980px){.aow-performance-people{grid-template-columns:1fr}.aow-performance-person[open]{grid-column:auto}.aow-employee-card--compact .aow-employee-card__body{grid-template-columns:1fr}.aow-employee-account{border-right:0;border-bottom:1px solid #e4e7ec}}
@media(max-width:760px){.aow-dashboard-filter--summary{width:100%;justify-content:flex-start}.aow-dashboard-filter--summary .aow-field{min-width:0;flex:1}.aow-employee-cards{grid-template-columns:1fr}.aow-employee-card__facts{grid-template-columns:1fr 1fr}.aow-profile-employment{grid-template-columns:1fr}.aow-attendance-month-switcher__head{align-items:flex-start;flex-direction:column}.aow-segmented-control{width:100%}.aow-segmented-control button{flex:1}.aow-performance-person>summary{flex-direction:column}.aow-performance-person__totals{width:100%;min-width:0}}


/* v1.9.7: announcements and administrator notes. */
.aow-announcement-editor,.aow-note-editor{margin:18px 20px;padding:20px;border:1px solid #d8e5f2;border-radius:14px;background:#f8fbff;box-shadow:0 8px 24px rgba(30,64,175,.05)}
.aow-form-grid{display:grid;gap:14px}.aow-form-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}.aow-form-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.aow-announcement-list{display:grid;gap:14px;padding:20px}.aow-announcement-card{border:1px solid #dbe7f3;border-radius:14px;background:#fff;padding:18px 20px}.aow-announcement-card.is-pinned{border-color:#9fc3ec;background:#f7fbff}.aow-announcement-card header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.aow-announcement-titleline{display:flex;align-items:center;gap:10px}.aow-announcement-titleline h3{margin:0;color:#173a63;font-size:17px}.aow-announcement-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:6px;color:#6b7d90;font-size:12px}.aow-announcement-content{margin-top:14px;line-height:1.75;color:#26384a;white-space:normal}.aow-announcement-actions,.aow-row-actions{display:flex;gap:8px;flex-wrap:wrap}.aow-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:700}.aow-check{display:flex;align-items:center;gap:8px;margin:12px 0}.aow-notes-table-wrap{padding:20px;overflow:auto}.aow-notes-table{min-width:980px}.aow-notes-table th{white-space:nowrap}.aow-sort-button{border:0;background:transparent;padding:0;font:inherit;font-weight:700;color:inherit;cursor:pointer}.aow-url-cell{max-width:260px;word-break:break-all}.aow-note-cell{min-width:220px;white-space:pre-wrap}.aow-empty-state-inline{padding:24px;text-align:center;color:#738398}.aow-notes-module .aow-inline-status,.aow-announcements-module .aow-inline-status{margin:0 20px 20px}
@media(max-width:900px){.aow-form-grid--2,.aow-form-grid--3{grid-template-columns:1fr}.aow-announcement-card header{flex-direction:column}.aow-announcement-editor,.aow-note-editor{margin:14px;padding:16px}.aow-announcement-list,.aow-notes-table-wrap{padding:14px}}

/* v1.9.8 Knowledge Base + Collection Library batch download */
.aow-library-select-col{width:44px;text-align:center}.aow-library-select-col input{width:16px;height:16px;margin:0}.aow-library-select-all{display:inline-flex;align-items:center;justify-content:center}.aow-library-select-disabled{color:#98a2b3}.aow-library-file-table td:first-child,.aow-library-file-table th:first-child{padding-left:14px;padding-right:8px}

.aow-knowledge-module{display:flex;flex-direction:column;gap:16px;min-height:0}.aow-knowledge-toolbar{border-radius:14px}.aow-knowledge-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:18px;min-height:560px}.aow-knowledge-tree,.aow-knowledge-content{min-width:0;background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.04)}.aow-knowledge-tree{padding:12px;overflow:auto;max-height:calc(100vh - 220px)}.aow-knowledge-content{padding:24px;overflow:auto}.aow-kb-tree-category{border:1px solid #e7edf5;border-radius:12px;background:#fbfdff;margin-bottom:10px;overflow:hidden}.aow-kb-tree-category.is-dragging,.aow-kb-tree-row.is-dragging,.aow-kb-section-editor.is-dragging{opacity:.55}.aow-kb-tree-category-head{display:grid;grid-template-columns:1fr;gap:7px;padding:10px;background:#edf4fb;border-bottom:1px solid #e0e8f2}.aow-kb-category-admin-row{display:flex;justify-content:flex-end;min-width:0}.aow-kb-category-head-main{display:grid;grid-template-columns:20px 22px minmax(0,1fr);align-items:center;gap:4px;min-width:0}.aow-kb-category-copy{min-width:0}.aow-kb-category-toggle{width:22px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:6px;color:#667085;cursor:pointer;padding:0}.aow-kb-category-toggle:hover,.aow-kb-category-toggle:focus-visible{background:#e3edf8;color:#164ea6;outline:none}.aow-kb-chevron{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:rotate(0deg);transition:transform .14s ease}.aow-kb-category-toggle.is-collapsed .aow-kb-chevron,.aow-kb-tree-toggle.is-collapsed .aow-kb-chevron{transform:rotate(-90deg)}.aow-kb-tree-category.is-collapsed .aow-kb-tree-category-head{border-bottom:0}.aow-kb-tree-category-head strong{display:block;font-size:14px;color:#1d2939;line-height:1.3;overflow-wrap:anywhere}.aow-kb-tree-category-head small{display:block;margin-top:3px;color:#667085;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.aow-kb-tree-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.aow-kb-category-title-line{display:flex;align-items:center;gap:7px;min-width:0}.aow-kb-category-title-line strong{min-width:0}.aow-kb-unread-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 2px rgba(239,68,68,.12)}.aow-kb-category-unread-dot{width:9px;height:9px;flex-basis:9px}.aow-kb-dot-spacer{width:8px;height:8px;display:block}.aow-kb-drag-handle{color:#98a2b3;cursor:grab;user-select:none}.aow-kb-tree-articles{padding:6px}.aow-kb-tree-article{display:grid;grid-template-columns:10px minmax(0,1fr);gap:7px;align-items:center;width:100%;border:0;background:transparent;border-radius:8px;padding:9px 8px;text-align:left;color:#344054;cursor:pointer}.aow-kb-tree-article:hover{background:#f2f6fb}.aow-kb-tree-article.is-active{background:#e7f0ff;color:#164ea6}.aow-kb-tree-article>span:last-child{overflow-wrap:anywhere}.aow-kb-tree-empty{padding:8px 10px;margin:0;color:#98a2b3;font-size:12px}.aow-kb-status-dot{width:7px;height:7px;border-radius:50%;background:#98a2b3}.aow-kb-status-dot.is-published{background:#16a34a}.aow-kb-status-dot.is-draft{background:#d97706}.aow-kb-status-dot.is-archived{background:#667085}

.aow-kb-article{display:flex;flex-direction:column;gap:20px}.aow-kb-article-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-radius:12px;background:#edf4fb}.aow-kb-article-header h2{margin:4px 0 0;font-size:26px;line-height:1.25;color:#101828}.aow-kb-article-meta{display:flex;flex-wrap:wrap;gap:8px 12px;color:#667085;font-size:12px}.aow-kb-status-pill{display:inline-flex;border-radius:999px;padding:2px 8px;background:#eaecf0;color:#475467}.aow-kb-status-pill.is-published{background:#ecfdf3;color:#027a48}.aow-kb-status-pill.is-draft{background:#fffaeb;color:#b54708}.aow-kb-status-pill.is-archived{background:#f2f4f7;color:#475467}.aow-kb-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.aow-kb-tags span{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff;border:1px solid #d7e2ef;color:#475467;font-size:11px}.aow-kb-article-body{display:flex;flex-direction:column;gap:14px}.aow-kb-section{position:relative;padding:18px 20px;border:1px solid #e4e7ec;border-radius:12px;background:#fff}.aow-kb-section h3{margin:2px 0 10px;font-size:18px;color:#101828}.aow-kb-section-label{display:inline-flex;margin-bottom:6px;padding:3px 7px;border-radius:6px;background:#f2f4f7;color:#667085;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.aow-kb-section--tip{border-left:4px solid #2563eb}.aow-kb-section--warning{border-left:4px solid #d97706}.aow-kb-section--example{border-left:4px solid #7c3aed}.aow-kb-section-text{color:#344054;line-height:1.7;overflow-wrap:anywhere}.aow-kb-image-button{display:block;margin-top:14px;padding:0;border:0;background:none;cursor:zoom-in;max-width:100%}.aow-kb-image-button img{display:block;max-width:100%;max-height:520px;border:1px solid #e4e7ec;border-radius:10px;object-fit:contain;background:#f8fafc}.aow-kb-read-confirm{display:flex;justify-content:flex-end;padding-top:4px}.aow-kb-read-done{display:inline-flex;align-items:center;padding:8px 12px;border-radius:8px;background:#ecfdf3;color:#027a48;font-weight:600}.aow-kb-read-panel{border:1px solid #e4e7ec;border-radius:12px;background:#fcfcfd;padding:12px 14px}.aow-kb-read-panel summary{cursor:pointer;font-weight:700;color:#344054}.aow-kb-readers{display:grid;gap:6px;margin-top:10px}.aow-kb-readers>div{display:flex;justify-content:space-between;gap:16px;padding:8px 10px;border-radius:8px;background:#fff;border:1px solid #eef1f5}.aow-kb-readers>div>span:first-child{display:flex;flex-direction:column}.aow-kb-readers small{color:#98a2b3}.aow-kb-readers .is-read{color:#027a48}.aow-kb-readers .is-unread{color:#b54708}

.aow-kb-editor{display:flex;flex-direction:column;gap:16px}.aow-kb-editor-titlebar,.aow-kb-sections-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-radius:12px;background:#edf4fb}.aow-kb-editor-titlebar span,.aow-kb-sections-toolbar span{display:block;color:#667085;font-size:12px}.aow-kb-editor-titlebar h2{margin:2px 0 0;font-size:20px}.aow-kb-editor-meta{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid #e4e7ec;border-radius:12px;background:#fff}.aow-kb-require-read{align-items:flex-start;padding-top:24px}.aow-kb-require-read span{display:flex;flex-direction:column}.aow-kb-require-read small{margin-top:2px;color:#667085;font-weight:400}.aow-kb-access-box{padding:12px;border:1px solid #e4e7ec;border-radius:10px;background:#f9fafb}.aow-kb-employee-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.aow-kb-person-check{align-items:flex-start;padding:8px 9px;border:1px solid #e4e7ec;border-radius:8px;background:#fff}.aow-kb-person-check span{display:flex;flex-direction:column}.aow-kb-person-check small{color:#98a2b3;font-weight:400}.aow-kb-section-editor-list{display:flex;flex-direction:column;gap:12px}.aow-kb-section-editor{padding:16px;border:1px solid #dfe5ec;border-radius:12px;background:#fff}.aow-kb-section-editor-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}.aow-kb-section-editor-head strong{flex:1}.aow-kb-section-media{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:12px;padding-top:12px;border-top:1px solid #eef1f5}.aow-kb-editor-image{display:flex;align-items:center;gap:10px;min-width:0}.aow-kb-editor-image>button{border:0;padding:0;background:none;cursor:zoom-in}.aow-kb-editor-image img{display:block;width:110px;height:72px;object-fit:cover;border-radius:8px;border:1px solid #e4e7ec}.aow-kb-editor-image>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.aow-kb-editor-image small{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aow-kb-editor-image-empty{color:#98a2b3;font-size:12px}.aow-kb-image-upload{cursor:pointer}.aow-kb-lightbox .aow-modal__dialog--image{position:relative;width:min(1100px,94vw);max-height:92vh;padding:12px;background:#111827}.aow-kb-lightbox img{display:block;max-width:100%;max-height:86vh;margin:auto;object-fit:contain}.aow-kb-lightbox-close{position:absolute;right:18px;top:18px;z-index:2;background:rgba(255,255,255,.9)}

@media (max-width:900px){.aow-knowledge-layout{grid-template-columns:1fr;min-height:0}.aow-knowledge-tree{max-height:320px}.aow-knowledge-content{padding:16px}.aow-kb-article-header,.aow-kb-editor-titlebar,.aow-kb-sections-toolbar{flex-direction:column}.aow-kb-employee-checks{grid-template-columns:1fr}.aow-kb-section-media{align-items:flex-start;flex-direction:column}.aow-kb-article-header h2{font-size:22px}}
@media (max-width:560px){.aow-knowledge-content{padding:12px}.aow-kb-section,.aow-kb-editor-meta,.aow-kb-section-editor{padding:14px}.aow-kb-category-admin-row{justify-content:flex-start}.aow-kb-category-head-main{grid-template-columns:18px 22px minmax(0,1fr)}.aow-kb-tree-article{grid-template-columns:8px minmax(0,1fr)}.aow-library-select-col{width:36px}}

/* v1.9.9: announcement read state + normalized administrator Notes. */
.aow-announcement-card.is-unread{border-color:#f4b4b4;box-shadow:inset 3px 0 0 #ef4444}
.aow-badge--unread{background:#fff1f2;color:#b42318}

.aow-note-owner-bar{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(220px,1fr) minmax(180px,.8fr) minmax(190px,.85fr) auto;gap:12px;align-items:end;margin:18px 20px 4px;padding:16px;border:1px solid #d8e5f2;border-radius:14px;background:#edf4fb}
.aow-note-owner-bar .aow-field{margin:0}
.aow-note-owner-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-height:38px}
.aow-note-owner-actions .aow-mini-button{min-height:38px;padding-inline:11px}
.aow-notes-module .aow-note-editor{margin-top:12px;background:#fbfdff}
.aow-notes-table{min-width:820px}
.aow-notes-table th:nth-child(1){min-width:180px}
.aow-notes-table th:nth-child(2){min-width:280px}
.aow-notes-table th:nth-child(3){min-width:160px}
.aow-notes-table th:nth-child(4){min-width:260px}
.aow-notes-table th:nth-child(5){min-width:140px}
@media(max-width:1280px){.aow-note-owner-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.aow-note-owner-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:760px){.aow-note-owner-bar{grid-template-columns:1fr;margin:14px;padding:14px}.aow-note-owner-actions{grid-column:auto}.aow-notes-table-wrap{padding:14px}}


/* v1.9.9: Knowledge Base reader layout hardening.
 * Employee reading view must keep horizontal text and usable line length instead
 * of allowing CJK titles/body text to collapse into one-character columns. */
.aow-knowledge-module[data-admin="0"] .aow-knowledge-layout{grid-template-columns:minmax(280px,320px) minmax(0,1fr);align-items:start}
.aow-knowledge-module[data-admin="0"] .aow-knowledge-tree{min-width:280px}
.aow-knowledge-module[data-admin="0"] .aow-knowledge-content{width:100%;min-width:0;overflow-x:hidden}
.aow-kb-tree-category-head strong,.aow-kb-tree-category-head small,.aow-kb-tree-article span,.aow-kb-article-header h2,.aow-kb-section h3,.aow-kb-section-text{writing-mode:horizontal-tb;text-orientation:mixed;word-break:normal;overflow-wrap:break-word}
.aow-kb-section-text{white-space:normal;min-width:0;max-width:100%}
.aow-kb-article,.aow-kb-article-body,.aow-kb-section{min-width:0;width:100%}
@media (max-width:1180px){
  .aow-knowledge-module[data-admin="0"] .aow-knowledge-layout{grid-template-columns:1fr}
  .aow-knowledge-module[data-admin="0"] .aow-knowledge-tree{min-width:0;max-height:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
  .aow-knowledge-module[data-admin="0"] .aow-kb-tree-category{margin-bottom:0}
  .aow-knowledge-module[data-admin="0"] .aow-knowledge-content{padding:20px}
}
@media (max-width:640px){
  .aow-knowledge-module[data-admin="0"] .aow-knowledge-tree{display:block}
  .aow-knowledge-module[data-admin="0"] .aow-kb-tree-category{margin-bottom:10px}
  .aow-knowledge-module[data-admin="0"] .aow-knowledge-content{padding:14px}
}

/* v1.9.9 attendance summary controls. Early leave is managed directly in the team table. */
.aow-attendance-early-cell{min-width:150px}
.aow-attendance-early-check{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:6px 9px;border:1px solid #d8e5f2;border-radius:9px;background:#f8fbff;color:#344054;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.aow-attendance-early-check input{width:16px;height:16px;margin:0}
.aow-attendance-early-check:has(input:checked){border-color:#9fc3ec;background:#eaf2fb;color:#175cd3}

/* v1.9.9: keep the employee Knowledge Base reading pane at a readable width
 * on desktop; below the responsive breakpoint it becomes a normal full-width
 * single-column reader. */
@media (min-width:1181px){
  .aow-knowledge-module[data-admin="0"] .aow-knowledge-content{min-width:520px}
}
@media (max-width:1180px){
  .aow-knowledge-module[data-admin="0"] .aow-knowledge-content{min-width:0}
}


/* v1.9.10: Knowledge Base tree, Library folder counts and non-floating Announcement toolbar. */
.aow-announcements-module .aow-announcements-toolbar{position:static;top:auto;z-index:auto}
.aow-folder-open .aow-folder-count{display:block;grid-column:2;min-width:0;margin-top:2px;color:#667085;font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Employee article rows do not render an admin status dot, so their grid must not reserve the first 10px status column. */
.aow-knowledge-module[data-admin="0"] .aow-kb-tree-article{grid-template-columns:10px minmax(0,1fr);column-gap:8px;align-items:start}
.aow-knowledge-module[data-admin="0"] .aow-kb-tree-article>span:last-child{display:block;min-width:0;width:auto;max-width:100%;font-size:13px;line-height:1.4;white-space:normal;word-break:normal;overflow-wrap:break-word}

/* Administrator Knowledge Base navigation should stay compact even when titles wrap. */
.aow-knowledge-module[data-admin="1"] .aow-kb-tree-category-head strong{font-size:13px;line-height:1.3}
.aow-knowledge-module[data-admin="1"] .aow-kb-tree-category-head small{font-size:10.5px;line-height:1.3}
.aow-knowledge-module[data-admin="1"] .aow-kb-tree-article{font-size:13px;line-height:1.35}
.aow-knowledge-module[data-admin="1"] .aow-kb-tree-article>span:last-child{min-width:0;white-space:normal;word-break:normal;overflow-wrap:break-word}
@media(max-width:560px){.aow-knowledge-module[data-admin="0"] .aow-kb-tree-article{grid-template-columns:10px minmax(0,1fr)}}

/* v1.9.11: Knowledge Base image viewer is a true viewport lightbox.
 * It must never render at the end of the article flow; the selected image opens
 * above the current reading position and the underlying Workspace stays still. */
.aow-kb-lightbox{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100vw;
  height:100dvh;
  min-height:100vh;
  margin:0 !important;
  padding:24px;
  overflow:auto;
  overscroll-behavior:contain;
  background:rgba(15,23,42,.78);
  backdrop-filter:blur(2px);
}
.aow-kb-lightbox[hidden]{display:none !important}
.aow-kb-lightbox .aow-modal__dialog--image{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:min(1200px,94vw);
  height:auto;
  max-height:92dvh;
  margin:auto;
  padding:12px;
  overflow:hidden;
  border-radius:12px;
  background:#111827;
  box-shadow:0 28px 80px rgba(0,0,0,.38);
}
.aow-kb-lightbox img{
  display:block;
  width:auto;
  height:auto;
  max-width:min(1160px,calc(94vw - 24px));
  max-height:calc(92dvh - 24px);
  margin:auto;
  object-fit:contain;
}
.aow-kb-lightbox-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid rgba(255,255,255,.45);
  border-radius:9px;
  background:rgba(255,255,255,.94);
  color:#111827;
  font-size:22px;
  line-height:1;
  box-shadow:0 4px 18px rgba(0,0,0,.18);
}
.aow-modal-open .aow-workspace-content{overflow:hidden !important}
@media(max-width:640px){
  .aow-kb-lightbox{padding:10px}
  .aow-kb-lightbox .aow-modal__dialog--image{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:8px}
  .aow-kb-lightbox img{max-width:calc(100vw - 36px);max-height:calc(100dvh - 36px)}
  .aow-kb-lightbox-close{top:8px;right:8px;width:34px;height:34px}
}


/* v1.9.12: Knowledge Base rich editor + non-floating module header. */
.aow-knowledge-module .aow-knowledge-toolbar{
  position:static !important;
  top:auto !important;
  z-index:auto !important;
}
.aow-kb-rich-field{display:block}
.aow-kb-rich-toolbar{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin-top:6px;
  padding:7px;
  border:1px solid #d0d9e5;
  border-bottom:0;
  border-radius:9px 9px 0 0;
  background:#f8fafc;
}
.aow-kb-rich-tool,.aow-kb-rich-color,.aow-kb-rich-select{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:30px;
  padding:0 8px;
  border:1px solid #d7e0ea;
  border-radius:6px;
  background:#fff;
  color:#344054;
  font:inherit;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  writing-mode:horizontal-tb;
  white-space:nowrap;
}
.aow-kb-rich-tool:hover,.aow-kb-rich-tool:focus-visible,.aow-kb-rich-color:hover,.aow-kb-rich-select:hover,.aow-kb-rich-select:focus-visible{border-color:#9cb9db;background:#eef5fd;outline:none}
.aow-kb-rich-select{display:inline-block;min-width:88px;max-width:140px;padding:0 24px 0 8px;cursor:pointer}
.aow-kb-rich-block-select{min-width:104px}.aow-kb-rich-size-select{min-width:86px}
.aow-kb-rich-color{position:relative;gap:3px;padding:0 6px;overflow:hidden}
.aow-kb-rich-color>span{font-weight:800;text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:#2563eb}
.aow-kb-rich-color.is-highlight>span{padding:2px 3px;background:#fff59d;text-decoration:none}
.aow-kb-rich-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.aow-kb-rich-editor{
  min-height:150px;
  max-height:420px;
  overflow:auto;
  padding:12px 13px;
  border:1px solid #d0d9e5;
  border-radius:0 0 9px 9px;
  background:#fff;
  color:#1f2937;
  font-size:14px;
  font-weight:400;
  line-height:1.7;
  outline:none;
  overflow-wrap:break-word;
  word-break:normal;
  white-space:normal;
}
.aow-kb-rich-editor:focus{border-color:#6da2df;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.aow-kb-rich-editor strong,.aow-kb-rich-editor b{font-weight:700}
.aow-kb-section-editor [contenteditable="true"]{user-select:text;-webkit-user-select:text}
.aow-kb-section-editor-head .aow-kb-drag-handle{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:26px;cursor:grab;user-select:none;-webkit-user-select:none}
.aow-kb-section-editor-head .aow-kb-drag-handle:active{cursor:grabbing}
.aow-kb-rich-editor p{margin:0 0 .75em}.aow-kb-rich-editor p:last-child{margin-bottom:0}
.aow-kb-rich-editor h1,.aow-kb-rich-editor h2,.aow-kb-rich-editor h3,.aow-kb-rich-editor h4,.aow-kb-rich-editor h5,.aow-kb-section-text h1,.aow-kb-section-text h2,.aow-kb-section-text h3,.aow-kb-section-text h4,.aow-kb-section-text h5,.aow-announcement-content h1,.aow-announcement-content h2,.aow-announcement-content h3,.aow-announcement-content h4,.aow-announcement-content h5{margin:.9em 0 .42em;font-weight:750;line-height:1.28}
.aow-kb-rich-editor h1,.aow-kb-section-text h1,.aow-announcement-content h1{font-size:2em}.aow-kb-rich-editor h2,.aow-kb-section-text h2,.aow-announcement-content h2{font-size:1.65em}.aow-kb-rich-editor h3,.aow-kb-section-text h3,.aow-announcement-content h3{font-size:1.4em}.aow-kb-rich-editor h4,.aow-kb-section-text h4,.aow-announcement-content h4{font-size:1.2em}.aow-kb-rich-editor h5,.aow-kb-section-text h5,.aow-announcement-content h5{font-size:1.05em}
.aow-kb-rich-editor ul,.aow-kb-rich-editor ol,.aow-kb-section-text ul,.aow-kb-section-text ol,.aow-announcement-content ul,.aow-announcement-content ol{margin:.45em 0 .75em;padding-left:1.6em}
.aow-kb-rich-editor ul ul,.aow-kb-rich-editor ol ol,.aow-kb-rich-editor ul ol,.aow-kb-rich-editor ol ul,.aow-kb-section-text ul ul,.aow-kb-section-text ol ol,.aow-kb-section-text ul ol,.aow-kb-section-text ol ul,.aow-announcement-content ul ul,.aow-announcement-content ol ol,.aow-announcement-content ul ol,.aow-announcement-content ol ul{margin:.2em 0;padding-left:1.45em}
.aow-kb-rich-editor li,.aow-kb-section-text li,.aow-announcement-content li{margin:.2em 0}
.aow-kb-rich-editor a,.aow-kb-section-text a{color:#175cd3;text-decoration:underline;text-underline-offset:2px}
.aow-kb-section-text p{margin:0 0 .75em}.aow-kb-section-text p:last-child{margin-bottom:0}
.aow-kb-section-text strong{font-weight:750}.aow-kb-section-text em{font-style:italic}.aow-kb-section-text u{text-underline-offset:2px}
@media(max-width:640px){
  .aow-kb-rich-toolbar{gap:4px;padding:6px}
  .aow-kb-rich-tool,.aow-kb-rich-color,.aow-kb-rich-select{height:32px;min-width:34px}
.aow-kb-rich-block-select{min-width:98px}.aow-kb-rich-size-select{min-width:82px}
  .aow-kb-rich-editor{min-height:130px;max-height:360px}
}

/* v1.9.12: hierarchical Knowledge Base articles, reusable tags and image galleries. */
.aow-knowledge-module .aow-knowledge-toolbar{
  position:static !important;
  inset:auto !important;
  z-index:auto !important;
}
.aow-kb-tree-article{position:relative;transition:background .12s ease,border-color .12s ease}
.aow-kb-tree-articles{overflow-x:hidden}
.aow-kb-chapter{display:flex;flex-direction:column;gap:22px}
.aow-kb-chapter-article{scroll-margin-top:18px}
.aow-kb-chapter-article+.aow-kb-chapter-article{padding-top:6px;border-top:1px solid #e7edf4}
.aow-kb-chapter-article.is-selected .aow-kb-article-header{box-shadow:inset 3px 0 0 #2563eb}

.aow-kb-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin-top:14px;
}
.aow-kb-gallery .aow-kb-image-button{margin:0;width:100%;height:100%;min-width:0}
.aow-kb-gallery .aow-kb-image-button img{width:100%;height:220px;max-height:none;object-fit:cover}
.aow-kb-editor-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:10px;
  width:100%;
}
.aow-kb-section-media{align-items:flex-start}
.aow-kb-section-media-main{flex:1;min-width:0;width:100%}
.aow-kb-editor-image{align-items:flex-start;padding:8px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc}
.aow-kb-editor-image>button{flex:0 0 auto}
.aow-kb-editor-image img{width:96px;height:72px}
.aow-kb-editor-image>div{flex:1;min-width:0}
.aow-kb-editor-image small{max-width:100%}
.aow-kb-image-upload{flex:0 0 auto}

.aow-kb-tag-library{padding:12px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc}
.aow-kb-tag-library-head{display:flex;flex-direction:column;gap:2px;margin-bottom:9px}
.aow-kb-tag-library-head strong{font-size:13px;color:#344054}
.aow-kb-tag-library-head small{font-size:11px;color:#667085}
.aow-kb-tag-choices{display:flex;flex-wrap:wrap;gap:7px;min-height:30px}
.aow-kb-tag-choice{display:inline-flex;align-items:stretch;border:1px solid #d7e2ef;border-radius:999px;overflow:hidden;background:#fff}
.aow-kb-tag-choice.is-active{border-color:#7aa7df;background:#eaf2fb}
.aow-kb-tag-choice button{border:0;background:transparent;color:#344054;cursor:pointer;white-space:nowrap;writing-mode:horizontal-tb}
.aow-kb-tag-choice>button:first-child{padding:5px 8px 5px 10px;font-size:12px}
.aow-kb-tag-choice.is-active>button:first-child{color:#175cd3;font-weight:700}
.aow-kb-tag-choice .aow-kb-tag-remove{padding:5px 8px;color:#98a2b3;border-left:1px solid #e4e7ec}
.aow-kb-tag-choice .aow-kb-tag-remove:hover{color:#d92d20;background:#fff1f0}
.aow-kb-tag-add{display:flex;align-items:center;gap:8px;margin-top:10px}
.aow-kb-tag-add .aow-input{max-width:260px}

.aow-kb-lightbox-nav{
  position:absolute;
  top:50%;
  z-index:3;
  width:44px;
  height:56px;
  margin-top:-28px;
  border:0;
  border-radius:10px;
  background:rgba(255,255,255,.88);
  color:#101828;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 3px 14px rgba(0,0,0,.16);
}
.aow-kb-lightbox-nav.is-prev{left:18px}.aow-kb-lightbox-nav.is-next{right:18px}
.aow-kb-lightbox-nav[hidden]{display:none!important}
.aow-kb-lightbox-count{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:3;padding:5px 10px;border-radius:999px;background:rgba(17,24,39,.72);color:#fff;font-size:12px}
.aow-kb-lightbox-count:empty{display:none}

@media(max-width:760px){
  .aow-kb-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aow-kb-gallery .aow-kb-image-button img{height:160px}
  .aow-kb-editor-gallery{grid-template-columns:1fr}
  .aow-kb-section-media{flex-direction:column}
  .aow-kb-tag-add{align-items:stretch;flex-direction:column}
  .aow-kb-tag-add .aow-input{max-width:none}
  .aow-kb-lightbox-nav{width:38px;height:48px;margin-top:-24px;font-size:28px}
  .aow-kb-lightbox-nav.is-prev{left:8px}.aow-kb-lightbox-nav.is-next{right:8px}
}
@media(max-width:480px){.aow-kb-gallery{grid-template-columns:1fr}.aow-kb-gallery .aow-kb-image-button img{height:auto;max-height:60vh;object-fit:contain}}

.aow-kb-chapter-article.is-child .aow-kb-article-header h2{font-size:22px}.aow-kb-chapter-article.is-child .aow-kb-article-header{margin-left:18px}
@media(max-width:640px){.aow-kb-chapter-article.is-child .aow-kb-article-header{margin-left:0}.aow-kb-chapter-article.is-child .aow-kb-article-header h2{font-size:20px}}

/* v1.9.13: Website Notes manual dates, Announcement rich text, explicit Knowledge hierarchy. */
.aow-announcement-rich-field{display:block}
.aow-announcement-rich-editor{min-height:240px;max-height:520px;background:#fff}
.aow-announcement-content p,.aow-announcement-content div{margin:0 0 .75em}
.aow-announcement-content p:last-child,.aow-announcement-content div:last-child{margin-bottom:0}
.aow-announcement-content ul,.aow-announcement-content ol{margin:.45em 0 .75em;padding-left:1.6em}
.aow-announcement-content li{margin:.2em 0}
.aow-announcement-content a{color:#175cd3;text-decoration:underline;text-underline-offset:2px}
.aow-announcement-content strong{font-weight:750}.aow-announcement-content em{font-style:italic}.aow-announcement-content u{text-underline-offset:2px}
.aow-kb-tree-row{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;column-gap:2px;padding-left:var(--kb-indent,0px);position:relative}
.aow-kb-tree-row[hidden]{display:none!important}
.aow-kb-tree-row[draggable="true"]{cursor:grab}.aow-kb-tree-row.is-dragging{cursor:grabbing}
.aow-kb-tree-row[data-kb-depth]:not([data-kb-depth="0"])::before{content:"";position:absolute;left:calc(var(--kb-indent,0px) - 8px);top:0;bottom:0;width:1px;background:#d7e2ef}
.aow-kb-tree-toggle,.aow-kb-tree-toggle-spacer{width:20px;height:30px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}
.aow-kb-tree-toggle{border:0;background:transparent;border-radius:6px;color:#667085;cursor:pointer;padding:0}
.aow-kb-tree-toggle:hover,.aow-kb-tree-toggle:focus-visible{background:#eaf1f9;color:#164ea6;outline:none}
.aow-kb-tree-row .aow-kb-tree-article{padding-left:8px!important}
.aow-kb-tree-row .aow-kb-tree-article::before{display:none!important}
@media(max-width:640px){.aow-announcement-rich-editor{min-height:180px;max-height:420px}}


/* v1.9.14: Knowledge category modal scrolling + persistent desktop tree navigation. */
.aow-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:24px;
  overflow:auto;
  overscroll-behavior:contain;
  background:rgba(16,24,40,.58);
}
.aow-modal[hidden]{display:none!important}
.aow-modal__dialog{
  width:min(680px,96vw);
  max-height:calc(100dvh - 48px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  border-radius:14px;
  background:#fff;
  box-shadow:0 24px 72px rgba(16,24,40,.24);
}
.aow-modal__dialog--wide{width:min(760px,96vw)}
.aow-modal__header{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  border-bottom:1px solid #e4e7ec;
  background:#edf4fb;
}
.aow-modal__header strong{color:#17365d;font-size:15px}
.aow-modal__body{
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:18px;
  background:#fff;
}
.aow-modal__body>.aow-toolbar-actions:last-child{
  position:sticky;
  bottom:-18px;
  z-index:2;
  margin:16px -18px -18px;
  padding:12px 18px;
  border-top:1px solid #e4e7ec;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
}
.aow-modal__close{
  flex:0 0 auto;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  color:#344054;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.aow-modal__close:hover,.aow-modal__close:focus-visible{border-color:#9cb9db;background:#f8fbff;outline:none}

@media (min-width:901px){
  .aow-knowledge-layout{align-items:start}
  .aow-knowledge-tree{
    position:sticky;
    top:0;
    align-self:start;
    max-height:calc(100dvh - var(--topbar-height) - 36px);
    overscroll-behavior:contain;
  }
  body.admin-bar .aow-knowledge-tree{
    max-height:calc(100dvh - var(--topbar-height) - 68px);
  }
}
@media (max-width:640px){
  .aow-modal{padding:10px;align-items:start}
  .aow-modal__dialog,.aow-modal__dialog--wide{width:100%;max-height:calc(100dvh - 20px)}
  .aow-modal__body{padding:14px}
  .aow-modal__body>.aow-toolbar-actions:last-child{bottom:-14px;margin:14px -14px -14px;padding:12px 14px}
}

/* v1.9.18: rich-editor caret stability and table insertion. */
.aow-kb-rich-field>.aow-field-label{display:block;margin-bottom:0}
.aow-kb-rich-table-control{position:relative;display:inline-flex;align-items:center}
.aow-kb-rich-table-toggle{font-size:16px;line-height:1}
.aow-kb-rich-table-popover{
  position:absolute;
  z-index:40;
  top:calc(100% + 7px);
  left:0;
  width:max-content;
  padding:9px;
  border:1px solid #cfd9e6;
  border-radius:9px;
  background:#fff;
  box-shadow:0 12px 30px rgba(16,24,40,.16);
}
.aow-kb-rich-table-popover[hidden]{display:none!important}
.aow-kb-rich-table-status{margin-bottom:7px;color:#475467;font-size:11px;font-weight:700;text-align:center;white-space:nowrap}
.aow-kb-rich-table-grid{display:grid;grid-template-columns:repeat(8,18px);gap:3px}
.aow-kb-rich-table-cell{width:18px;height:18px;padding:0;border:1px solid #cbd5e1;border-radius:3px;background:#fff;cursor:pointer}
.aow-kb-rich-table-cell:hover,.aow-kb-rich-table-cell.is-active{border-color:#2563eb;background:#dbeafe}
.aow-kb-rich-editor table,.aow-kb-section-text table,.aow-announcement-content table{width:100%;border-collapse:collapse;margin:.75em 0;background:#fff}
.aow-kb-rich-editor th,.aow-kb-rich-editor td,.aow-kb-section-text th,.aow-kb-section-text td,.aow-announcement-content th,.aow-announcement-content td{min-width:72px;padding:7px 9px;border:1px solid #cfd9e6;vertical-align:top;text-align:left}
.aow-kb-rich-editor th,.aow-kb-section-text th,.aow-announcement-content th{background:#f8fafc;font-weight:700}
.aow-kb-rich-editor td:focus,.aow-kb-rich-editor th:focus{outline:2px solid rgba(37,99,235,.22);outline-offset:-2px}
@media(max-width:640px){.aow-kb-rich-table-popover{left:auto;right:0}.aow-kb-rich-table-grid{grid-template-columns:repeat(8,17px)}.aow-kb-rich-table-cell{width:17px;height:17px}.aow-kb-rich-editor th,.aow-kb-rich-editor td,.aow-kb-section-text th,.aow-kb-section-text td,.aow-announcement-content th,.aow-announcement-content td{min-width:56px;padding:6px 7px}}

/* v1.9.20: DOCX knowledge import + explicit article order handle. */
.aow-kb-import-rules{border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc;padding:14px 16px;color:#475467;font-size:13px;line-height:1.55}
.aow-kb-import-rules strong{display:block;margin-bottom:6px;color:#1d2939}
.aow-kb-import-rules ul{margin:0;padding-left:20px}
.aow-kb-import-result{border:1px solid #b8d2ff;border-radius:10px;background:#eef5ff;padding:10px 12px;color:#164ea6;font-size:13px}
.aow-kb-tree-row{grid-template-columns:14px 20px minmax(0,1fr)}
.aow-kb-article-drag-handle,.aow-kb-article-drag-spacer{width:14px;min-width:14px;height:30px;display:inline-flex;align-items:center;justify-content:center}
.aow-kb-article-drag-handle{font-size:11px;line-height:1;color:#98a2b3;cursor:grab;user-select:none;touch-action:none}
.aow-kb-article-drag-handle:hover{color:#475467}
.aow-kb-tree-row.is-dragging .aow-kb-article-drag-handle{cursor:grabbing}

/* v1.9.26: reliable Knowledge Base ordering handles. */
.aow-kb-category-head-main>.aow-kb-drag-handle{width:20px;min-width:20px;height:32px;display:inline-flex;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none}
.aow-kb-tree-category[draggable="true"]{cursor:grabbing}
.aow-kb-tree-row[draggable="true"]{cursor:grabbing}
.aow-knowledge-module[data-admin="0"] .aow-kb-tree-row .aow-kb-article-drag-spacer{cursor:default}


/* v1.9.27: clearer Knowledge navigation/read targeting and performance panel breathing room. */
.aow-kb-read-settings{margin-top:14px;padding:14px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fbff}
.aow-kb-read-scope-help{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:4px 2px;color:#475467}
.aow-kb-read-scope-help strong{font-size:13px;color:#344054}.aow-kb-read-scope-help small{font-size:11px;line-height:1.45;color:#667085}
.aow-kb-read-target-box{margin-top:10px}
.aow-kb-category-toggle,.aow-kb-tree-toggle{overflow:visible}
.aow-kb-category-copy{min-width:0}.aow-kb-category-copy small{max-width:100%}
@media(max-width:760px){.aow-performance-people{padding:12px}.aow-kb-read-settings{padding:12px}}
/* v1.9.28: explicit announcement read confirmation and persistent menu notices. */
.aow-announcement-read-confirm{display:flex;justify-content:flex-end;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #e7edf5}
.aow-announcement-read-done{display:inline-flex;align-items:center;padding:8px 12px;border-radius:8px;background:#ecfdf3;color:#027a48;font-weight:650}


/* v1.9.30 Text Library */
.aow-textlib-module{min-height:620px}.aow-textlib-search{padding:14px 16px 0}.aow-textlib-search .aow-input{width:min(420px,100%)}
.aow-textlib-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:18px;padding:16px}.aow-textlib-tree{position:sticky;top:18px;align-self:start;max-height:calc(100vh - 170px);overflow:auto;padding-right:4px}.aow-textlib-content{min-width:0}
.aow-textlib-category{border:1px solid var(--global-border,#e5e7eb);border-radius:12px;background:#fff;margin-bottom:12px;overflow:hidden}.aow-textlib-category-actions{display:flex;align-items:center;gap:6px;padding:8px 10px 0}.aow-textlib-category-title{display:flex;flex-direction:column;gap:3px;padding:6px 12px 10px}.aow-textlib-category-title strong{font-size:14px;color:#101828}.aow-textlib-category-title small{color:#667085;line-height:1.45}.aow-textlib-entry-list{display:flex;flex-direction:column;border-top:1px solid #eef1f5}.aow-textlib-entry{appearance:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:9px 10px;border:0;border-bottom:1px solid #f1f3f6;background:#fff;color:#344054;text-align:left;cursor:pointer}.aow-textlib-entry:last-child{border-bottom:0}.aow-textlib-entry:hover,.aow-textlib-entry.is-active{background:#f5f9ff}.aow-textlib-entry small{color:#98a2b3;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.aow-textlib-category.is-dragging,.aow-textlib-entry.is-dragging{opacity:.45}
.aow-textlib-view,.aow-textlib-editor{display:flex;flex-direction:column;gap:16px}.aow-textlib-plain-view{margin:0;padding:18px 20px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;color:#344054;font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.aow-textlib-plain{min-height:320px;resize:vertical;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;line-height:1.7}.aow-textlib-content-editors small{display:block;margin-top:6px;color:#667085}.aow-textlib-rich{min-height:320px}.aow-textlib-rich-toolbar{margin-top:6px}.aow-textlib-rich-view{padding:18px 20px;border:1px solid #e4e7ec;border-radius:12px;background:#fff}
.aow-textlib-rich img,.aow-textlib-rich-view img{display:block;max-width:100%;height:auto;margin:12px auto;border:1px solid var(--global-border,#e4e7ec);border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,.08)}.aow-textlib-rich .aow-textlib-image-block,.aow-textlib-rich-view .aow-textlib-image-block{margin:12px 0}.aow-textlib-rich img[data-textlib-media-id]{cursor:default}
@media(max-width:760px){.aow-textlib-layout{grid-template-columns:1fr}.aow-textlib-tree{position:static;max-height:330px}.aow-textlib-rich,.aow-textlib-plain{min-height:240px}}

/* v1.9.30 Workspace Backup & Migration */
.aow-backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.aow-backup-card{padding:18px;border:1px solid #e4e7ec;border-radius:12px;background:#fff}.aow-backup-card h3{margin:0 0 8px;font-size:17px;color:#101828}.aow-backup-card p{margin:0 0 14px;color:#475467;line-height:1.6}.aow-backup-warning{padding:10px 12px;border-radius:8px;background:#fff7ed;color:#9a3412!important}.aow-button--danger{background:#b42318;color:#fff;border-color:#b42318}.aow-button--danger:hover{background:#912018;border-color:#912018}.aow-backup-card .aow-field{margin-bottom:12px}@media(max-width:760px){.aow-backup-grid{grid-template-columns:1fr}}


/* v1.9.32: normalized rich-document rhythm for Knowledge Base and Text Library.
 * Pasted content now relies on semantic block spacing instead of clipboard spacer nodes. */
.aow-kb-section-text,.aow-textlib-rich-view,.aow-kb-rich-editor,.aow-textlib-rich{font-size:15px;line-height:1.72}
.aow-kb-section-text>*:first-child,.aow-textlib-rich-view>*:first-child,.aow-kb-rich-editor>*:first-child,.aow-textlib-rich>*:first-child{margin-top:0!important}
.aow-kb-section-text>*:last-child,.aow-textlib-rich-view>*:last-child,.aow-kb-rich-editor>*:last-child,.aow-textlib-rich>*:last-child{margin-bottom:0!important}
.aow-kb-section-text p,.aow-kb-section-text div,.aow-textlib-rich-view p,.aow-textlib-rich-view div,.aow-kb-rich-editor p,.aow-kb-rich-editor div,.aow-textlib-rich p,.aow-textlib-rich div{margin:.52em 0 .78em}
.aow-kb-section-text h1,.aow-textlib-rich-view h1,.aow-kb-rich-editor h1,.aow-textlib-rich h1{margin:1.15em 0 .52em;font-size:1.8em;line-height:1.24}
.aow-kb-section-text h2,.aow-textlib-rich-view h2,.aow-kb-rich-editor h2,.aow-textlib-rich h2{margin:1.18em 0 .5em;font-size:1.48em;line-height:1.28}
.aow-kb-section-text h3,.aow-textlib-rich-view h3,.aow-kb-rich-editor h3,.aow-textlib-rich h3{margin:1.05em 0 .44em;font-size:1.28em;line-height:1.32}
.aow-kb-section-text h4,.aow-textlib-rich-view h4,.aow-kb-rich-editor h4,.aow-textlib-rich h4{margin:.95em 0 .4em;font-size:1.14em;line-height:1.36}
.aow-kb-section-text h5,.aow-textlib-rich-view h5,.aow-kb-rich-editor h5,.aow-textlib-rich h5{margin:.9em 0 .36em;font-size:1.04em;line-height:1.4}
.aow-kb-section-text ul,.aow-kb-section-text ol,.aow-textlib-rich-view ul,.aow-textlib-rich-view ol,.aow-kb-rich-editor ul,.aow-kb-rich-editor ol,.aow-textlib-rich ul,.aow-textlib-rich ol{margin:.42em 0 .9em;padding-left:1.55em;font-size:15px;font-weight:400;letter-spacing:normal}
.aow-kb-section-text li,.aow-textlib-rich-view li,.aow-kb-rich-editor li,.aow-textlib-rich li{margin:.28em 0;padding-left:.08em;line-height:1.62}
.aow-kb-section-text li>p,.aow-kb-section-text li>div,.aow-textlib-rich-view li>p,.aow-textlib-rich-view li>div,.aow-kb-rich-editor li>p,.aow-kb-rich-editor li>div,.aow-textlib-rich li>p,.aow-textlib-rich li>div{margin:.12em 0}
.aow-kb-section-text li>p:empty,.aow-kb-section-text li>div:empty,.aow-textlib-rich-view li>p:empty,.aow-textlib-rich-view li>div:empty,.aow-kb-rich-editor li>p:empty,.aow-kb-rich-editor li>div:empty,.aow-textlib-rich li>p:empty,.aow-textlib-rich li>div:empty{display:none}
.aow-kb-section-text li>br:first-child,.aow-kb-section-text li>br:last-child,.aow-textlib-rich-view li>br:first-child,.aow-textlib-rich-view li>br:last-child,.aow-kb-rich-editor li>br:first-child,.aow-kb-rich-editor li>br:last-child,.aow-textlib-rich li>br:first-child,.aow-textlib-rich li>br:last-child{display:none}
.aow-kb-section-text blockquote,.aow-textlib-rich-view blockquote,.aow-kb-rich-editor blockquote,.aow-textlib-rich blockquote{margin:.8em 0 1em;padding:.68em .9em;border-left:3px solid #8fb7e6;border-radius:0 8px 8px 0;background:#f7faff;color:#3a4b60}
.aow-kb-section-text blockquote p,.aow-textlib-rich-view blockquote p,.aow-kb-rich-editor blockquote p,.aow-textlib-rich blockquote p{margin:.25em 0}
.aow-kb-section-text hr,.aow-textlib-rich-view hr,.aow-kb-rich-editor hr,.aow-textlib-rich hr{border:0;border-top:1px solid #d9e2ec;margin:1.25em 0}
.aow-kb-section-text pre,.aow-textlib-rich-view pre,.aow-kb-rich-editor pre,.aow-textlib-rich pre{margin:.8em 0;padding:.75em .9em;border:1px solid #dfe6ef;border-radius:8px;background:#f8fafc;overflow:auto;white-space:pre-wrap}
.aow-kb-section-text code,.aow-textlib-rich-view code,.aow-kb-rich-editor code,.aow-textlib-rich code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.94em}


/* v1.9.35: body heading boundary + one-click typography standardization.
 * The entry/article title is the primary title; rich-body headings begin at H2. */
.aow-rich-standardize{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:30px;padding:0 9px;border:1px solid #b8c9dd;border-radius:6px;background:#f1f6fc;color:#25496f;font:inherit;font-size:12px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}
.aow-rich-standardize:hover,.aow-rich-standardize:focus-visible{border-color:#7fa3ca;background:#e6f0fb;color:#173b63}
.aow-rich-heading-note{display:block;margin-top:7px;color:#667085;font-size:12px;line-height:1.45}
.aow-kb-section-text li,.aow-textlib-rich-view li,.aow-kb-rich-editor li,.aow-textlib-rich li{font-size:15px;font-weight:400;letter-spacing:normal}
/* Safety fallback for legacy unsaved H1 markup; saved/read content is normalized to H2+. */
.aow-kb-section-text h1,.aow-textlib-rich-view h1,.aow-kb-rich-editor h1,.aow-textlib-rich h1{font-size:1.48em;line-height:1.28}
@media(max-width:640px){.aow-rich-standardize{min-width:auto}}

/* v1.9.35: list items are body text. Clipboard/contenteditable can accidentally
 * place an entire UL/OL inside a heading, so LI establishes an absolute body
 * baseline instead of inheriting heading size/weight. Nested heading wrappers
 * are also flattened by JS/PHP normalization. */
.aow-kb-section-text li h1,.aow-kb-section-text li h2,.aow-kb-section-text li h3,.aow-kb-section-text li h4,.aow-kb-section-text li h5,.aow-kb-section-text li h6,.aow-textlib-rich-view li h1,.aow-textlib-rich-view li h2,.aow-textlib-rich-view li h3,.aow-textlib-rich-view li h4,.aow-textlib-rich-view li h5,.aow-textlib-rich-view li h6,.aow-kb-rich-editor li h1,.aow-kb-rich-editor li h2,.aow-kb-rich-editor li h3,.aow-kb-rich-editor li h4,.aow-kb-rich-editor li h5,.aow-kb-rich-editor li h6,.aow-textlib-rich li h1,.aow-textlib-rich li h2,.aow-textlib-rich li h3,.aow-textlib-rich li h4,.aow-textlib-rich li h5,.aow-textlib-rich li h6{display:inline;margin:0;font-size:inherit;line-height:inherit}

/* v1.9.38: persistent, readable Collection Library upload diagnostics. */
.aow-library-module>.aow-inline-status{white-space:pre-line;line-height:1.55;overflow-wrap:anywhere}
.aow-library-module>.aow-inline-status[data-state="saving"],.aow-library-module>.aow-inline-status[data-state="loading"]{color:#385b83}
.aow-library-module>.aow-inline-status[data-state="saved"]{color:#15803d}
.aow-library-module>.aow-inline-status[data-state="error"]{color:#b42318}

/* v2.0.0: compact semantic rich-text lists.
 * Rich clipboard sources often preserve paragraph wrappers or spacer nodes inside
 * list markup. JS/PHP now normalize those nodes; these rules keep any surviving
 * safe wrappers from visually becoming a blank line between list items. */
.aow-kb-section-text ul,.aow-kb-section-text ol,
.aow-textlib-rich-view ul,.aow-textlib-rich-view ol,
.aow-kb-rich-editor ul,.aow-kb-rich-editor ol,
.aow-textlib-rich ul,.aow-textlib-rich ol{
  margin:.34em 0 .68em;
  padding-left:1.55em;
}
.aow-kb-section-text li,.aow-textlib-rich-view li,
.aow-kb-rich-editor li,.aow-textlib-rich li{
  margin:.06em 0;
  padding-left:.06em;
  line-height:1.54;
}
.aow-kb-section-text li>p,.aow-kb-section-text li>div,
.aow-textlib-rich-view li>p,.aow-textlib-rich-view li>div,
.aow-kb-rich-editor li>p,.aow-kb-rich-editor li>div,
.aow-textlib-rich li>p,.aow-textlib-rich li>div{
  margin:0!important;
}
.aow-kb-section-text li>br:first-child,.aow-kb-section-text li>br:last-child,
.aow-textlib-rich-view li>br:first-child,.aow-textlib-rich-view li>br:last-child,
.aow-kb-rich-editor li>br:first-child,.aow-kb-rich-editor li>br:last-child,
.aow-textlib-rich li>br:first-child,.aow-textlib-rich li>br:last-child{
  display:none;
}
.aow-kb-section-text ul ul,.aow-kb-section-text ol ol,.aow-kb-section-text ul ol,.aow-kb-section-text ol ul,
.aow-textlib-rich-view ul ul,.aow-textlib-rich-view ol ol,.aow-textlib-rich-view ul ol,.aow-textlib-rich-view ol ul,
.aow-kb-rich-editor ul ul,.aow-kb-rich-editor ol ol,.aow-kb-rich-editor ul ol,.aow-kb-rich-editor ol ul,
.aow-textlib-rich ul ul,.aow-textlib-rich ol ol,.aow-textlib-rich ul ol,.aow-textlib-rich ol ul{
  margin:.12em 0 .18em;
}
