/* Cloud Design v1.3.7 — admin UI audit: practical typography, overflow safety, access page rebuild */

/* Admin/workspace typography must not inherit landing-page display sizes. */
.dashboard-shell .dashboard-main,
.dashboard-shell .dashboard-main>*{min-width:0}
.dashboard-shell .dashboard-main h1{
  max-width:100%;margin-bottom:12px!important;
  font-size:clamp(2rem,3.2vw,2.75rem)!important;line-height:1.02!important;letter-spacing:-.045em!important;
  overflow-wrap:anywhere;word-break:normal;
}
.dashboard-shell .dashboard-main h2{
  max-width:100%;font-size:clamp(1.35rem,2vw,1.85rem)!important;line-height:1.1!important;letter-spacing:-.032em!important;
  overflow-wrap:anywhere;word-break:normal;
}
.dashboard-shell .dashboard-main h3{max-width:100%;overflow-wrap:anywhere;line-height:1.18}
.dashboard-shell .dashboard-main p,
.dashboard-shell .dashboard-main li,
.dashboard-shell .dashboard-main small,
.dashboard-shell .dashboard-main b,
.dashboard-shell .dashboard-main a,
.dashboard-shell .dashboard-main code{overflow-wrap:anywhere}
.dashboard-shell .dashboard-head>*,
.dashboard-shell .section-head>*,
.dashboard-shell .settings-section-head>*,
.dashboard-shell .access-role-header-v137>*{min-width:0}
.dashboard-shell .dashboard-head{align-items:flex-start}
.dashboard-shell .section-head{align-items:flex-start}
.dashboard-shell .inline-actions{flex-wrap:wrap;max-width:100%}
.dashboard-shell .inline-actions>*{max-width:100%}
.dashboard-shell .status-pill{max-width:100%;white-space:normal;line-height:1.22;text-align:center}
.dashboard-shell .raw-form input,
.dashboard-shell .raw-form select,
.dashboard-shell .raw-form textarea,
.dashboard-shell .settings-grid input,
.dashboard-shell .settings-grid select,
.dashboard-shell .settings-grid textarea{min-width:0;max-width:100%;width:100%}
.dashboard-shell .table-wrap{max-width:100%;min-width:0}
.dashboard-shell .table-wrap td,.dashboard-shell .table-wrap th{max-width:380px}
.dashboard-shell .project-row>*{min-width:0}
.dashboard-shell .project-row h3{overflow-wrap:anywhere}
.dashboard-shell .file-row>*,
.dashboard-shell .approval-row>*,
.dashboard-shell .contract-row>*,
.dashboard-shell .notification-row>*{min-width:0}
.dashboard-shell .file-row b,
.dashboard-shell .approval-row b,
.dashboard-shell .contract-row b,
.dashboard-shell .notification-row b{overflow-wrap:anywhere}
.dashboard-shell .owner-config-paths{min-width:0;max-width:100%}
.dashboard-shell .owner-config-paths code{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.dashboard-shell .settings-section-head{flex-wrap:wrap}
.dashboard-shell .settings-section-head>div:last-child{max-width:100%;display:flex;flex-wrap:wrap;gap:6px}
.dashboard-shell .settings-jumpbar{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
.dashboard-shell .settings-jumpbar a{white-space:nowrap}
.dashboard-shell .owner-lock-badge{white-space:normal;text-align:center}
.dashboard-shell .protected-requisites-preview{overflow-wrap:anywhere}

/* Roles and permissions — deliberately practical, not a landing-page card grid. */
.access-page-head-v137{margin-bottom:16px!important}
.access-page-head-v137 p{max-width:760px;margin-bottom:0}
.access-explainer-v137{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin-bottom:14px;padding:0!important;overflow:hidden;
}
.access-explainer-v137>div{display:grid;gap:3px;padding:15px 18px;background:rgba(255,255,255,.012)}
.access-explainer-v137>div+div{border-left:1px solid var(--line)}
.access-explainer-v137 b{font-size:.88rem}
.access-explainer-v137 span{color:var(--muted);font-size:.78rem;line-height:1.45}
.access-role-list-v137{display:grid;grid-template-columns:1fr;gap:13px}
.access-role-card-v137{padding:21px 22px!important;min-width:0}
.access-role-header-v137{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,auto);gap:18px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line)}
.access-role-identity-v137{display:flex;align-items:center;gap:13px;min-width:0}
.access-role-number-v137{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:rgba(130,91,239,.12);border:1px solid rgba(151,117,255,.17);color:#cbb9ff;font-size:.75rem;font-weight:850}
.access-role-identity-v137 small,.access-public-title-v137 small{display:block;margin-bottom:3px;color:var(--muted);font-size:.64rem;letter-spacing:.11em;text-transform:uppercase}
.access-role-identity-v137 h2{margin:0!important;font-size:clamp(1.35rem,2vw,1.7rem)!important;line-height:1.08!important}
.access-public-title-v137{justify-self:end;max-width:270px;padding:9px 12px;border:1px solid rgba(145,107,255,.18);border-radius:12px;background:rgba(126,87,241,.055)}
.access-public-title-v137 b{display:block;font-size:.88rem;line-height:1.2;color:#e9e3ff}
.access-role-summary-v137{margin:15px 0 16px!important;color:var(--muted);font-size:.91rem;line-height:1.5}
.access-role-details-v137{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr);gap:18px;align-items:start}
.access-role-details-v137 h3{margin:0 0 9px;font-size:.76rem!important;text-transform:uppercase;letter-spacing:.1em;color:#a8aec1}
.access-permissions-v137 ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px;margin:0;padding:0;list-style:none}
.access-permissions-v137 li{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;align-items:start;color:var(--muted);font-size:.83rem;line-height:1.4}
.access-permissions-v137 li>span:first-child{color:#a98aff;font-weight:850}
.access-limits-v137{padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.015)}
.access-limits-v137 p{margin:0;color:var(--muted);font-size:.8rem;line-height:1.48}

/* Desktop/tablet safeguards discovered in audit. */
@media (max-width:1180px) and (min-width:901px){
  .dashboard-shell .project-row{grid-template-columns:minmax(0,1fr) 180px auto;gap:12px}
  .access-role-details-v137{grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr)}
}

@media (max-width:900px){
  .dashboard-shell .dashboard-main h1{font-size:clamp(1.8rem,8vw,2.25rem)!important;line-height:1.04!important}
  .dashboard-shell .dashboard-main h2{font-size:clamp(1.25rem,6vw,1.6rem)!important}
  .dashboard-shell .dashboard-main h3{font-size:1.08rem}
  .dashboard-shell .section-head{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-bottom:18px!important}
  .dashboard-shell .section-head>.inline-actions,.dashboard-shell .section-head>.link-arrow{justify-self:start}
  .dashboard-shell .file-row,.dashboard-shell .approval-row,.dashboard-shell .contract-row,.dashboard-shell .notification-row{align-items:flex-start;flex-wrap:wrap}
  .dashboard-shell .file-row>.inline-actions,.dashboard-shell .approval-row>.inline-actions,.dashboard-shell .contract-row>.inline-actions{width:100%}
  .dashboard-shell .feature-line{display:grid;grid-template-columns:1fr;gap:4px}
  .dashboard-shell .feature-line b{min-width:0}
  .dashboard-shell .settings-jumpbar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .dashboard-shell .settings-jumpbar::-webkit-scrollbar{display:none}
  .dashboard-shell .settings-jumpbar a{flex:0 0 auto}

  .access-explainer-v137{grid-template-columns:1fr}
  .access-explainer-v137>div+div{border-left:0;border-top:1px solid var(--line)}
  .access-role-card-v137{padding:16px!important}
  .access-role-header-v137{grid-template-columns:1fr;gap:12px;align-items:start}
  .access-public-title-v137{justify-self:stretch;max-width:none}
  .access-role-details-v137{grid-template-columns:1fr;gap:13px}
  .access-permissions-v137 ul{grid-template-columns:1fr}
  .access-role-number-v137{width:34px;height:34px;flex-basis:34px;border-radius:10px}

  /* Bottom navigation: consistent vector icons instead of miscellaneous Unicode glyphs. */
  .mobile-admin-bottom-nav .mobile-tab-icon{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;line-height:1!important}
  .mobile-admin-bottom-nav .mobile-tab-icon svg{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mobile-workspace-quick-add.mobile-workspace-profile svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
}

@media (max-width:430px){
  .access-role-card-v137{padding:14px!important}
  .access-role-identity-v137{gap:10px}
  .access-role-summary-v137{font-size:.86rem}
  .access-public-title-v137{padding:9px 11px}
}
