/* Kraken platform ownership, client administration, and personal preferences. */
.owner-master { display:grid; gap:20px; max-width:1600px; margin:auto; }
.owner-master .page-header { margin-bottom:0; }
.owner-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.owner-stats>div { padding:20px 24px; display:grid; gap:7px; border-right:1px solid var(--line); }
.owner-stats>div:last-child { border:0; }
.owner-stats span { color:var(--muted); font-size:12px; }
.owner-stats strong { font-size:25px; letter-spacing:-.6px; }
.owner-allocation-layout { display:grid; grid-template-columns:290px minmax(0,1fr); gap:20px; align-items:start; }
.owner-directory { min-width:0; overflow:hidden; }
.owner-directory-tools { padding:16px; display:grid; gap:12px; border-bottom:1px solid var(--line); }
.owner-client-list { max-height:660px; overflow:auto; padding:8px; }
.owner-client { display:flex; width:100%; padding:14px 12px; gap:12px; border:1px solid transparent; border-radius:8px; background:transparent; text-align:left; color:var(--text); cursor:pointer; }
.owner-client.selected { background:var(--surface-3); border-color:var(--primary); }
.owner-client:hover { background:var(--surface-2); }
.owner-client>span:last-child { min-width:0; display:grid; gap:5px; }
.owner-client strong { overflow-wrap:anywhere; font-size:13px; }
.owner-client small { color:var(--muted); font-size:11px; }
.owner-client em { font-size:11px; font-style:normal; color:var(--muted); }
.owner-client-monogram { flex:0 0 36px; height:36px; display:grid; place-items:center; border-radius:8px; background:var(--surface-2); border:1px solid var(--line); font-weight:700; font-size:12px; }
.owner-editor-column { display:grid; gap:16px; min-width:0; }
.owner-license-editor .panel-header { align-items:flex-start; gap:12px; }
.owner-license-editor h2 { font-size:22px; overflow-wrap:anywhere; }
.owner-license-form { display:grid; gap:24px; }
.owner-license-form fieldset { border:0; padding:0; margin:0; min-width:0; }
.owner-license-form legend { margin-bottom:14px; font-size:14px; font-weight:700; }
.owner-license-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.owner-license-form .form-help { line-height:1.6; margin:10px 0; }
.owner-module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.owner-module-option { display:flex; align-items:flex-start; gap:10px; padding:14px; border-bottom:1px solid var(--line-soft); cursor:pointer; min-width:0; }
.owner-module-option:nth-child(odd) { border-right:1px solid var(--line-soft); }
.owner-module-option:has(input:checked) { background:var(--surface-2); }
.owner-module-option input { width:17px; height:17px; flex:0 0 17px; margin-top:2px; accent-color:var(--primary); }
.owner-module-option>span { display:grid; gap:5px; min-width:0; }
.owner-module-option strong { font-size:12px; }
.owner-module-option small { font-size:11px; color:var(--muted); line-height:1.5; }
.owner-save-row { display:flex; justify-content:space-between; gap:20px; align-items:center; padding-top:18px; border-top:1px solid var(--line); }
.owner-save-row>span { color:var(--muted); font-size:12px; line-height:1.5; max-width:350px; }
.owner-save-row .btn { flex-shrink:0; }
.owner-form-error { padding:12px; border:1px solid var(--red); border-radius:8px; color:var(--red); }
.owner-boundary-note { display:grid; grid-template-columns:170px 1fr; gap:8px 14px; padding:18px; color:var(--muted); font-size:12px; line-height:1.6; }
.owner-boundary-note strong { color:var(--text); }
.owner-history details { border-bottom:1px solid var(--line); }
.owner-history summary { display:flex; align-items:center; gap:16px; padding:14px 0; cursor:pointer; font-size:12px; }
.owner-history summary strong { min-width:180px; }
.owner-history summary time { margin-left:auto; color:var(--muted); }
.owner-history details>div { padding:0 0 15px 16px; color:var(--muted); font-size:12px; }
.owner-history details>div p { margin:8px 0; }
.owner-filter-empty,.owner-directory-empty { padding:16px; color:var(--muted); line-height:1.6; font-size:12px; }
.owner-master [hidden] { display:none!important; }
.owner-master :is(button,input,select,textarea):focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.personal-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.personal-settings-grid>article:first-child { grid-column:1/-1; }
.personal-settings-grid .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.personal-settings-grid .notification-preference-form .key-item { padding:10px 0; gap:16px; text-transform:capitalize; }
.personal-settings-grid .notification-preference-form input[type=checkbox] { width:18px; height:18px; flex-shrink:0; accent-color:var(--primary); }
.workspace-preferences .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.workspace-preferences .form-help { margin:16px 0; line-height:1.6; }
.settings-inline-result { margin-top:12px; color:var(--red); font-size:12px; }
.hr-section-tabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--line); margin-bottom:20px; padding-bottom:8px; }
.hr-section-tabs button { display:flex; align-items:center; gap:8px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--muted); padding:11px 14px; font:inherit; font-size:12px; cursor:pointer; }
.hr-section-tabs button.active { background:var(--surface-3); border-color:var(--line); color:var(--primary); font-weight:700; }
.hr-section-tabs button:hover { background:var(--surface-2); color:var(--text); }
.hr-section-tabs button:focus-visible { outline:2px solid var(--primary); }
.hr-section-tabs svg { width:16px; height:16px; }
.hr-section-context { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 18px; }
.hr-section-context>div { display:grid; gap:5px; }
.hr-section-context strong { font-size:17px; }
.hr-section-context span { color:var(--muted); font-size:12px; line-height:1.6; }
.hr-section-context>.btn { flex-shrink:0; }
@media(max-width:1100px) {
 .owner-allocation-layout { grid-template-columns:240px minmax(0,1fr); gap:14px; }
 .owner-module-grid { grid-template-columns:1fr; }
 .owner-module-option:nth-child(odd) { border-right:0; }
 .owner-save-row { flex-wrap:wrap; }
 .owner-boundary-note { grid-template-columns:1fr; }
}
@media(max-width:750px) {
 .owner-master { gap:16px; }
 .owner-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .owner-stats>div { padding:16px; border-bottom:1px solid var(--line); }
 .owner-stats>div:nth-child(2) { border-right:0; }
 .owner-stats>div:nth-child(3) { border-bottom:0; }
 .owner-stats strong { font-size:22px; }
 .owner-allocation-layout { grid-template-columns:1fr; }
 .owner-directory-tools { grid-template-columns:1fr 1fr; }
 .owner-client-list { max-height:220px; }
 .owner-history summary { flex-wrap:wrap; gap:8px; }
 .owner-history summary strong { width:100%; min-width:0; }
 .owner-license-form .form-grid,.personal-settings-grid,.personal-settings-grid .form-grid,.workspace-preferences .form-grid { grid-template-columns:1fr; }
 .owner-save-row .btn { width:100%; }
 .hr-section-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hr-section-tabs button { padding:12px; }
 .hr-section-context { align-items:flex-start; flex-direction:column; }
 .personal-settings-grid>article:first-child { grid-column:auto; }
}

/* Section names remain readable; status is shown in the active section header. */
#app .settings-module-tab { grid-template-columns:32px minmax(0,1fr); }
#app .settings-module-tab>strong { grid-column:2; white-space:normal; overflow:visible; line-height:1.35; }
#app .settings-module-tab>.badge { display:none; }

/* Profile preferences: native radio choices with a small spacing preview. */
#app .profile-appearance { display:grid; gap:20px; margin-top:24px; padding-top:24px; border-top:1px solid var(--line); scroll-margin-top:20px; }
#app .profile-appearance header { display:grid; gap:6px; }
#app .profile-appearance h3 { margin:0; font-size:16px; letter-spacing:-.2px; }
#app .profile-appearance header p, #app .profile-density>p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
#app .profile-density { min-width:0; margin:0; padding:0; border:0; }
#app .profile-density legend { padding:0; margin-bottom:6px; font-size:13px; font-weight:700; }
#app .profile-density-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px; }
#app .profile-density-option { min-width:0; display:grid; grid-template-columns:20px minmax(0,1fr); gap:7px 10px; align-content:start; padding:16px; border:1px solid var(--line); border-radius:10px; color:var(--text); background:var(--surface); cursor:pointer; }
#app .profile-density-option:hover { border-color:var(--primary); }
#app .profile-density-option:has(input:checked) { border-color:var(--primary); background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--primary); }
#app .profile-density-option:has(input:focus-visible) { outline:2px solid var(--primary); outline-offset:3px; }
#app .profile-density-option input[type=radio] { appearance:auto; width:18px; height:18px; min-height:0; margin:1px 0 0; padding:0; accent-color:var(--primary); cursor:pointer; }
#app .profile-density-title { font-size:14px; font-weight:700; line-height:20px; }
#app .profile-density-description { grid-column:2; color:var(--muted); font-size:12px; line-height:1.6; }
#app .profile-density-preview { grid-column:1/-1; display:grid; align-content:start; gap:0; height:122px; overflow:hidden; margin-top:8px; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
#app .profile-density-preview-heading, #app .profile-density-preview-row { display:grid; grid-template-columns:2fr 1fr 1fr; align-items:center; gap:12px; padding-inline:12px; border-bottom:1px solid var(--line); }
#app .profile-density-preview-heading { height:22px; background:var(--surface-2); }
#app .profile-density-preview-row { height:32px; }
#app .profile-density-preview-compact .profile-density-preview-row { height:22px; }
#app .profile-density-preview i { display:block; width:70%; height:5px; border-radius:2px; background:var(--muted); opacity:.28; }
#app .profile-density-preview-heading i { opacity:.45; }
#app .profile-preferences-save { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
#app .profile-preferences-save p { max-width:480px; margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
#app .profile-preferences-save .btn { flex-shrink:0; min-height:40px; }
@media(max-width:1100px) {
 #app .profile-preferences-save { align-items:flex-start; flex-direction:column; gap:14px; }
}
@media(max-width:750px) {
 #app .profile-density-options { grid-template-columns:1fr; }
 #app .profile-density-option { padding:14px; }
 #app .profile-preferences-save .btn { width:100%; }
}
