/* Konto, objektåtkomst och Säkerhetskoll: lokala arbetsytor och befintliga kontroller. */
@media screen {
  .account-workspace { min-width:0; }
  .account-workspace .page-head { align-items:flex-start; gap:16px 24px; margin-bottom:20px; }
  .account-workspace :is(h1,h2,h3,.sub,.help,.label,.meta) { overflow-wrap:anywhere; }
  .account-workspace .page-head .sub { max-width:85ch; line-height:1.65; }
  .account-workspace .account-context { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin-bottom:12px; font-size:14px; line-height:1.6; color:var(--ink-2); overflow-wrap:anywhere; }
  .account-workspace .account-context strong { color:var(--ink); font-weight:600; }
  .account-workspace .account-context > span { color:var(--muted); }
  .account-workspace .account-scope-label { color:var(--muted); font-size:12px; font-weight:600; line-height:1.5; margin:0 0 6px; }
  .account-workspace :is(.field,.frow,.card,.grid) { min-width:0; }
  .account-workspace :is(.help,.meta,.banner,.field label) { line-height:1.65; }
  .account-workspace :is(button,input:not([type=checkbox],[type=radio],[type=hidden],[type=file]),select,summary) { min-height:44px; box-sizing:border-box; }
  .account-workspace .icon-btn { min-width:44px; }
  .account-workspace :is(input,select,textarea) { max-width:100%; }
  .account-workspace :is(input,select,textarea):disabled { opacity:1; color:var(--ink-2); -webkit-text-fill-color:var(--ink-2); background:var(--soft); }
  .account-workspace :is(button,input,select,textarea,summary,[tabindex]):focus-visible { outline:2px solid var(--brand); outline-offset:3px; border-radius:8px; }
  .account-workspace :is(.toolbar,.row-actions) { flex-wrap:wrap; gap:8px; }
  .account-workspace .toolbar .btn { white-space:normal; }
  .account-workspace .pg-check { min-height:44px; box-sizing:border-box; padding-block:10px; gap:10px; line-height:1.6; }
  .account-workspace .stat .val { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
  .account-workspace [hidden] { display:none!important; }
  .settings-workspace #medlemmar { min-width:0; overflow-wrap:anywhere; }
  .settings-workspace #medlemmar :is(td,.help,.muted) { overflow-wrap:anywhere; }
  .settings-workspace .account-version-table { width:100%; }
  .settings-workspace .account-version-table :is(th,td) { padding:14px 12px; }
  .settings-workspace .account-version-table td:last-child { white-space:normal!important; }
  .settings-workspace .account-version-table .btn { margin:4px 4px 4px 0; }
  .integrations-workspace .account-api-example { max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; }
  .integrations-workspace #apiKeyField { width:100%; min-width:0; }
  .access-workspace .atk-rad { min-height:56px; }
  .access-workspace .atk-rad:focus-visible { outline-offset:-3px; }
  .access-workspace .atk-detalj { background:var(--soft); }
  .access-workspace .atk-obj { min-width:0; }
  .access-workspace .atk-obj label { min-height:44px; box-sizing:border-box; padding-block:8px; line-height:1.6; }
  .access-workspace .atk-obj label input { flex:none; }
  .access-workspace .atk-verktyg { gap:8px; }
  .access-workspace :is(.atk-obj select,.atk-verktyg select) { min-width:100px; padding:10px 12px; font:inherit; font-size:14px; }
  .access-workspace .atk-inb { overflow-wrap:anywhere; }
  .security-workspace :is(.sak-fakta dd,.sak-besk,.sak-atgard,.sak-titel,.sak-punkt-text) { min-width:0; overflow-wrap:anywhere; }
  .security-workspace .sak-fakta { line-height:1.6; }
  .security-workspace .sak-knappar { gap:8px; }
  .security-workspace .sak-knappar .btn { white-space:normal; }
  .security-workspace .sak-tekn summary { cursor:pointer; padding-block:10px; }
  .security-workspace .security-installations-table { width:100%; }
  .security-workspace .security-installations-table :is(th,td) { padding:14px 12px; overflow-wrap:anywhere; }
  .security-workspace .sak-punkt .seg { flex-wrap:wrap; gap:4px; }
  .security-workspace .sak-punkt .seg button { white-space:normal; line-height:1.5; }
  /* Verkliga ankare för denna batchs befintliga dialoger. */
  .modal:has(:is(#sakNamn,#svTitel,#sakEjKom,#rkOrd,#atkEpost,#shareLinkField,#nyLosen)) :is(.btn,.icon-btn,input:not([type=checkbox],[type=radio],[type=hidden],[type=file]),select,summary) { min-height:44px; box-sizing:border-box; }
  .modal:has(:is(#sakNamn,#svTitel,#sakEjKom,#rkOrd,#atkEpost,#shareLinkField,#nyLosen)) .icon-btn { min-width:44px; }
  .modal:has(:is(#sakNamn,#svTitel,#sakEjKom,#rkOrd,#atkEpost,#shareLinkField,#nyLosen)) :is(input,select,textarea) { max-width:100%; }
  .modal:has(:is(#sakNamn,#svTitel,#sakEjKom,#rkOrd,#atkEpost,#shareLinkField,#nyLosen)) :is(.field,.frow) { min-width:0; }
  .modal:has(#svTitel) .sak-val { min-height:44px; box-sizing:border-box; padding-block:10px; }
  .modal:has(#atkEpost) .atk-lista label { min-height:44px; box-sizing:border-box; padding-block:10px; }
  @media (max-width:860px) {
    .account-workspace .page-head { gap:12px; }
    .account-workspace :is(input,select,textarea) { font-size:16px; }
    .integrations-workspace #apiKeyField { font-size:16px!important; }
    .access-workspace .atk-rad { flex-wrap:wrap; }
    .access-workspace .atk-detalj { padding-inline:16px; }
    .access-workspace .atk-obj { flex-wrap:wrap; align-items:flex-start; gap:8px; padding-block:10px; }
    .access-workspace .atk-obj label { flex:1 1 100%; }
    .access-workspace .atk-obj select { width:100%; max-width:100%; font-size:16px; }
    .access-workspace .atk-verktyg { align-items:stretch; }
    .access-workspace .atk-verktyg select { width:100%; max-width:100%; font-size:16px; }
    .access-workspace .atk-verktyg .btn { flex:1 1 auto; white-space:normal; }
    .access-workspace .atk-inb { flex-wrap:wrap; }
    .security-workspace .sak-punkt { flex-direction:column; align-items:stretch; }
    .security-workspace .sak-punkt .seg { display:flex; }
    .security-workspace .sak-punkt .seg button { flex:1 1 110px; padding:10px 8px; }
    .security-workspace .security-installations-table[data-stack] td { gap:12px; padding:10px 0; }
    .security-workspace .security-installations-table[data-stack] td.t-name { display:block; text-align:left; }
    .security-workspace .security-installations-table[data-stack] td.t-name::before { display:none; }
    .security-workspace .security-installations-table[data-stack] td.t-fast { flex-wrap:wrap; }
    .modal:has(:is(#sakNamn,#svTitel,#sakEjKom,#rkOrd,#atkEpost,#shareLinkField,#nyLosen)) :is(input,select,textarea) { font-size:16px!important; }
    .modal:has(#atkEpost) .atk-obj { flex-wrap:wrap; }
    .modal:has(#atkEpost) .atk-obj label { flex-basis:100%; }
  }
  @media (max-width:380px) {
    .account-workspace .toolbar > .btn { flex:1 1 auto; }
    .access-workspace .atk-rad { padding-inline:16px; }
  }
}
