/* Portal v1.1: shared scale, module workspace and accessible small-screen layout. */
:root {--bg:#f4f7f8;--muted:#607584;--border:#dbe5e9;}
.sidebar .nav-item {font-size:13px;min-height:41px;line-height:1.4;}
.sidebar .nav-label {font-size:10px;letter-spacing:1.5px;color:#9ab0bd;}
.sidebar-bottom .nav-item {font-size:12px;min-height:35px;}
.workspace-switch strong {font-size:13px;}
.workspace-switch span:not(.company-avatar) {font-size:11px;color:#adc0cb;}
.plan-label {font-size:11px;color:#adc0cb;}
.nav-item.active {background:#244655;box-shadow:inset 3px 0 #6dd3b6;}
.nav-item:focus-visible {outline-color:#8cdbcb;outline-offset:-2px;}
.button {font-size:13px;min-height:42px;}
.page-heading p:last-child,.panel p,.empty-state p {font-size:13px;line-height:1.7;}
.page-heading .eyebrow {font-size:10px;color:var(--teal);}
.welcome-kicker {font-size:10px;letter-spacing:1.5px;}
.welcome-band p {font-size:13px;color:#bfced7;line-height:1.7;}
.welcome-band h2 {font-size:30px;}
.text-button {font-size:12px;}
.metric>span {font-size:12px;color:#536d7c;}
.metric>small {font-size:11px;color:#6b808d;}
.section-heading p {font-size:12px;}
.site-card h3 {font-size:16px;}
.site-location {font-size:12px;color:#5f7888;}
.site-card .status-pill,.site-tags>span {font-size:10px;}
.site-tags>span {color:#55786c;border-color:#deebe4;background:#f3f8f5;}
.site-card-footer {font-size:11px;}
.quick-tools button {font-size:12px;line-height:1.55;}
.field {font-size:12px;color:#425f70;}
.field input,.field select,.field textarea {font-size:14px;min-height:44px;}
.field small,.help-note {font-size:12px;}
.checked-option strong {font-size:13px;}
.checked-option small {font-size:11px;}
.checked-option {min-height:65px;}
.field input::placeholder {color:#718996;}
.modal-intro {font-size:13px;}
.modal h3 {font-size:13px;}
.modal-open {overflow:hidden;}
.sidebar-scrim {border:0;padding:0;cursor:pointer;}
.record-row strong {font-size:14px;}
.record-row small {font-size:12px;}
.record-row .tag {font-size:11px;}
.site-action span {font-size:12px;line-height:1.65;}
.site-action em {font-size:12px;}
.attendance-panel p,.attendance-links .button,.share-panel p {font-size:12px;}
.pending-row strong {font-size:13px;}
.pending-row small {font-size:12px;}
table {font-size:13px;}
th {font-size:11px;color:#566f7d;}
td strong {font-size:13px;}
td small {font-size:11px;}
.tag {font-size:10px;color:#526e7d;}
.notification-row strong {font-size:14px;}
.notification-row p {font-size:13px;}
.notification-row small {font-size:11px;color:#587685;}
.file-zone strong {font-size:14px;}
.file-zone small,.catalogue-summary>small {font-size:12px;}
.feature-list>span {font-size:13px;}
.auth-subtitle {font-size:14px;line-height:1.7;}
.auth-benefits>span,.auth-story p {font-size:13px;}
.auth-form-options,.auth-switch {font-size:12px;}
.auth-top-links {font-size:12px;}
.plan-choice strong {font-size:13px;}
.plan-choice small,.plan-choice details {font-size:11px;}
.plan-choice em span {font-size:10px;}
.terms-check {font-size:12px;}
.module-content {height:calc(100dvh - 73px);min-height:0!important;overflow:hidden;}
.module-toolbar {min-height:46px;height:46px;flex:0 0 auto;padding:7px 24px;background:#fff;gap:14px;}
.module-context {display:flex;align-items:center;gap:10px;min-width:0;color:#516e7e;font-size:11px;}
.module-context>.icon {width:17px;height:17px;color:var(--teal);}
.module-context>span {color:#587685;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.module-context .module-context-divider {color:#b4c8d1;}
.module-context>strong {font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;}
.module-toolbar .button {font-size:11px;min-height:32px;padding:6px 10px;flex-shrink:0;}
#module-frame {height:calc(100dvh - 73px);min-height:0;flex:1;background:#f4f7f8;}
.frame-loading {top:0;background:#f4f7f8;}
.module-popout {display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:8px;min-height:35px;padding:7px 11px;font-size:11px;color:#537381;font-weight:600;white-space:nowrap;}
.module-popout:hover {background:var(--bg);color:var(--teal);}
.module-popout .icon {width:15px;height:15px;}
#module-action-slot:empty {display:none;}
.breadcrumb {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.topbar-left {min-width:0;}
.topbar-actions {flex-shrink:0;}
.auth-form-wrap,.panel,.site-card {min-width:0;}
@media(max-width:1250px) {
  .sidebar .nav-item {font-size:12px;}
  .sidebar-bottom .nav-item {font-size:11px;}
}
@media(max-width:1000px) {
  .sidebar .nav-item {font-size:12px;}
  .module-context>span:first-of-type,.module-context-divider {display:none!important;}
}
@media(max-width:760px) {
  .nav-open {overflow:hidden;}
  .sidebar {width:280px;padding-top:25px;padding-bottom:max(16px,env(safe-area-inset-bottom));}
  .sidebar .nav-item {font-size:13px;min-height:43px;}
  .sidebar-bottom .nav-item {font-size:12px;min-height:40px;}
  .workspace-switch strong {max-width:190px;}
  .brand strong {font-size:24px;}
  .button,.icon-button,.text-button {min-height:44px;}
  .page-heading .button {font-size:12px;min-height:44px;}
  .field input,.field select,.field textarea,.search-input input {font-size:16px;}
  .page-heading p:last-child {font-size:13px;}
  .welcome-band h2 {font-size:27px;}
  .welcome-band p {font-size:12px;}
  .welcome-kicker {font-size:9px;}
  .metric>small {font-size:10px;}
  .site-card h3 {font-size:16px;}
  .site-location {font-size:12px;}
  .site-card .status-pill,.site-tags>span {font-size:10px;}
  .site-card-footer {font-size:11px;}
  .site-action strong {font-size:14px;}
  .site-action span {font-size:12px;}
  .site-action em {font-size:12px;}
  .quick-tools button {font-size:12px;}
  .list-toolbar {flex-wrap:wrap;gap:8px;}
  .list-toolbar>.muted {font-size:12px;padding:0;}
  .search-input {max-width:100%;}
  .search-input .button {min-height:38px;font-size:11px;}
  .record-row {gap:11px;}
  .record-row strong {font-size:13px;overflow-wrap:anywhere;}
  .record-row small {font-size:11px;}
  .modal {border-radius:14px;}
  .modal-actions {gap:10px;}
  .modal-actions .button {flex:1;}
  .module-content {height:calc(100dvh - 64px);}
  .module-toolbar {height:45px;min-height:45px;padding:5px 12px;}
  .module-context {gap:7px;}
  .module-context>strong {font-size:11px;}
  .module-toolbar .button {min-height:35px;font-size:10px;}
  .module-toolbar .button .icon {width:14px;}
  #module-frame {height:calc(100dvh - 64px);}
  .frame-loading {top:0;}
  .module-popout {width:34px;min-height:38px;padding:8px;justify-content:center;}
  .module-popout>span {display:none;}
  .auth-subtitle {font-size:14px;}
  .auth-form-options {font-size:12px;}
  .auth-form-options label {display:flex;align-items:center;min-height:44px;}
  .billing-plan>div:first-child p {font-size:12px;}
  .large-status {min-height:37px;}
}
@media(max-width:420px) {
  .site-actions-grid {grid-template-columns:1fr;}
  .site-action {display:grid;grid-template-columns:30px 1fr;gap:8px 15px;}
  .site-action>.icon {grid-row:1/4;margin:3px 0 0;}
  .site-action strong,.site-action span,.site-action em {grid-column:2;margin:0;min-height:0;}
  .site-card {padding:21px 20px 0;}
  .breadcrumb {font-size:11px;}
  .breadcrumb>span {margin:0 7px;}
  .topbar {gap:12px;}
  .topbar-actions {gap:3px;}
  .module-toolbar .button {padding:6px 8px;}
}
