main {
  width: min(100%, 1340px);
  box-sizing: border-box;
  padding: 16px clamp(12px, 3vw, 36px) 32px;
}

#feedback:empty { display: none; }
#workspace { grid-template-columns: minmax(190px, 250px) minmax(0, 1fr); align-items: start; gap: 18px; }
#workspace > :is(nav,section) {
  min-width: 0;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid #dbe7e0;
  border-radius: 18px;
  box-shadow: 0 5px 20px #15362b08;
}

#workspace h2 { margin: 0 0 16px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; }
#workspace nav h2, #workspace nav h3 { margin: 0 0 10px; font-size: 14px; }
#workspace nav h3 { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e2eae5; }
#workspace nav button { margin: 0 0 4px; border: 0; background: transparent; color: #275447; }
#workspace nav button:hover, #workspace nav button[aria-current] { background: #e9f3ee; color: #154c3e; }
#workspace #users { max-height: 360px; overflow: auto; }
#workspace label { font-weight: 550; }
#workspace :is(input:not([type="checkbox"]),select) { max-width: 100%; min-height: 40px; background: #fbfdfb; color: inherit; }
fieldset#permissions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 6px 14px; padding: 14px; border-radius: 12px; }
fieldset#permissions label { margin: 0; }
fieldset#permissions legend { padding: 0 5px; font-weight: 650; }

.activity-table { width: 100%; table-layout: fixed; }
.activity-table :is(td,th) { overflow-wrap: anywhere; vertical-align: top; }
.activity-table th { background: #f1f6f3; }
.activity-totals strong { background: #f1f6f3; }

@media (max-width: 700px) {
  #workspace { grid-template-columns: minmax(0, 1fr); }
  #workspace nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 6px; }
  #workspace nav :is(h2,h3,#users) { grid-column: 1 / -1; }
  #workspace nav #users { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  #workspace #users { max-height: 170px; }
  #workspace nav button { min-height: 42px; overflow-wrap: anywhere; }
  .activity-table :is(td,th) { padding: 6px 3px; font-size: 12px; }
  .activity-filters label { min-width: 0; flex: 1 1 130px; }
}
