/* Rev1.1 + Rev1.2: narrow usability fixes in the established visual world. */
.context-bar .account-copy { display:grid; min-width:0; max-width:190px; }
.context-bar .account-copy strong,.context-bar .account-copy span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.page-actions { display:flex; gap:10px; flex-wrap:wrap; }
@media (min-width:821px) {
  html[data-ui-style="classic"] .rail-expand { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; margin:0 0 12px; padding:0 12px; background:transparent; color:#bbcec9; font-size:12px; cursor:pointer; border-radius:6px; }
  html[data-ui-style="classic"] .rail-expand:hover,html[data-ui-style="classic"] .rail-expand:focus-visible { background:#173b38; color:#fff; }
  html[data-ui-style="classic"] .rail-expand .nav-icon { width:17px; height:17px; flex:0 0 17px; }
  html[data-ui-style="classic"][data-nav-expanded="true"] .rail-expand .nav-icon { transform:rotate(180deg); }
  html[data-ui-style="classic"][data-nav-expanded="false"] .command-rail { width:68px; padding:18px 10px; align-items:center; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .workspace { margin-left:68px; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .brand { width:44px; min-height:44px; padding:0; margin-bottom:8px; justify-content:center; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .brand img { width:29px; height:29px; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .brand-copy,
  html[data-ui-style="classic"][data-nav-expanded="false"] .rail-foot,
  html[data-ui-style="classic"][data-nav-expanded="false"] .nav-section-label,
  html[data-ui-style="classic"][data-nav-expanded="false"] .rail-expand-label { display:none; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .rail-expand { width:46px; padding:0; justify-content:center; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .primary-nav,
  html[data-ui-style="classic"][data-nav-expanded="false"] .utility-nav { width:100%; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .primary-nav a,
  html[data-ui-style="classic"][data-nav-expanded="false"] .utility-nav a { width:46px; height:44px; margin:1px auto; padding:0; justify-content:center; font-size:0; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .primary-nav a.active::before { display:none; }
  html[data-ui-style="classic"][data-nav-expanded="false"] .primary-nav a:hover::after,
  html[data-ui-style="classic"][data-nav-expanded="false"] .primary-nav a:focus-visible::after,
  html[data-ui-style="classic"][data-nav-expanded="false"] .utility-nav a:hover::after,
  html[data-ui-style="classic"][data-nav-expanded="false"] .utility-nav a:focus-visible::after { content:attr(title); position:absolute; left:54px; top:0; z-index:60; min-width:max-content; padding:10px 12px; color:#fff; background:#173b38; border:1px solid #456166; border-radius:5px; font-size:12px; }
}
.handoff-panel { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:16px 20px; align-items:end; padding:20px 24px; }
.handoff-panel > div { grid-column:1/-1; }
.handoff-panel h2 { font-size:17px; margin:0 0 4px; }
.handoff-panel p { font-size:13px; margin:0; max-width:75ch; }
.handoff-panel label { min-width:0; font-size:13px; }
.handoff-panel input:not([type="checkbox"]) { width:100%; min-height:44px; font-size:14px; }
.handoff-panel .check-card { grid-column:1/3; display:flex; gap:8px; padding:0; min-height:44px; background:none; border:0; align-items:center; }
.handoff-panel .check-card span { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; }
.handoff-panel .check-card strong { font-size:13px; font-weight:500; }
.handoff-panel .check-card small { font-size:12px; }
.handoff-panel > button { grid-column:3; grid-row:2/4; min-height:44px; margin:0; font-size:14px; }
.responsibility-filter { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; font-size:13px; }
.responsibility-filter select { width:min(250px,100%); min-height:44px; }
.responsibility-configuration-note { font-size:13px; color:var(--muted); max-width:80ch; margin:0 0 20px; }
.responsibility-config-table th:first-child { width:20%; }
.configured-people { list-style:none; margin:0 0 12px; padding:0; display:grid; gap:12px; }
.configured-people li { display:flex; gap:16px; align-items:start; justify-content:space-between; }
.configured-people li > div { min-width:0; overflow-wrap:anywhere; font-size:13px; }
.configured-people small { display:block; color:var(--muted); margin-top:2px; }
.configured-people .text-link { white-space:nowrap; font-size:12px; }
.responsibility-config-table .secondary-button { min-height:40px; font-size:13px; }
.it-responsibility-config { margin-top:20px; }
.it-responsibility-config > .configured-people { padding:0 24px 20px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 32px; }
.inventory-sort { display:inline-flex; gap:6px; align-items:center; min-height:36px; color:inherit; text-decoration:none; white-space:nowrap; }
.inventory-search label:first-of-type { flex:1; min-width:160px; }
.inventory-search label:nth-of-type(2) { width:180px; }
.sort-indicator { width:14px; height:14px; flex:0 0 14px; }
.asset-type-editor { font-size:13px; margin-top:6px; }
.asset-type-editor summary { color:var(--blue); cursor:pointer; min-height:36px; display:flex; align-items:center; }
.asset-type-editor form { display:grid; gap:8px; min-width:155px; margin:4px 0 8px; }
.asset-type-editor select { min-height:44px; font-size:14px; width:100%; }
.asset-type-editor button { min-height:44px; font-size:13px; }
.inventory-holder small { display:block; color:var(--muted); font-size:12px; }
.inventory-type { white-space:nowrap; }
@media (max-width:1100px) {
  .handoff-panel { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .handoff-panel > button { grid-column:2; grid-row:auto; justify-self:end; }
  .handoff-panel .check-card { grid-column:1; }
}
@media (max-width:820px) {
  .context-bar { gap:8px; padding-block:8px; }
  .context-bar .account-cluster { flex-wrap:wrap; gap:6px; min-width:0; justify-content:flex-end; }
  .context-bar .account-copy { max-width:125px; }
  .context-bar .account-copy span { display:none; }
  .context-bar .role-menu { max-width:150px; }
  .context-bar .role-menu summary { max-width:none; min-height:44px; font-size:12px; }
  .responsibility-config-table thead { display:none; }
  .responsibility-config-table,.responsibility-config-table tbody,.responsibility-config-table tr,.responsibility-config-table td { display:block; width:100%; }
  .responsibility-config-table td { padding:12px 16px; }
  .responsibility-config-table td::before { content:attr(data-label); display:block; font-size:12px; color:var(--muted); margin-bottom:8px; }
  .responsibility-config-table td .text-link { display:inline-flex; align-items:center; min-height:44px; }
  .responsibility-config-table .secondary-button { min-height:44px; }
  .it-responsibility-config > .configured-people { grid-template-columns:1fr; padding:0 16px 16px; }
  .it-responsibility-config .text-link { display:inline-flex; align-items:center; min-height:44px; }
}
@media (max-width:600px) {
  .handoff-panel { padding:16px; grid-template-columns:1fr; }
  .handoff-panel > div,.handoff-panel .check-card,.handoff-panel > button { grid-column:1; }
  .handoff-panel > button { width:100%; }
  .handoff-panel input:not([type="checkbox"]) { font-size:16px; }
  .inventory-sort,.asset-type-editor summary { min-height:44px; }
  .inventory-search label:first-of-type { min-width:0; }
  .inventory-search label:nth-of-type(2) { width:100%; }
}
