select {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #cbd4de;
  border-radius: 5px;
  padding: 6px;
  max-width: 160px;
}
.inventory-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.inventory-tools input {
  font: inherit;
  border: 1px solid #cbd4de;
  border-radius: 5px;
  padding: 7px;
  min-width: 220px;
  flex: 1;
}
.sheet-wrap {
  overflow: auto;
  max-height: calc(100vh - 250px);
}
.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.sheet th {
  position: sticky;
  top: 0;
  background: #eaf0f4;
  z-index: 1;
  text-align: left;
  font-weight: 650;
  border-bottom: 1px solid #cbd4de;
}
.sheet td,
.sheet th {
  padding: 6px 9px;
  border-bottom: 1px solid #e7ebf0;
  border-right: 1px solid #eef1f5;
}
.sheet tr:nth-child(even) {
  background: #f8fafb;
}
.sheet tbody tr:hover {
  background: #eaf5f0;
}
.sheet tr.selected {
  background: #e2f4ea;
}
.sheet button {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 5px;
}
.sheet select {
  font-size: 11px;
  padding: 5px;
  max-width: 115px;
}
.sheet input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #157352;
}
.sheet .scope-label {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.sheet .container-label {
  max-width: 200px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet .badge {
  font-size: 10px;
  padding: 1px 5px;
}
.sheet-summary {
  font-size: 12px;
  padding: 8px 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.sort-head {
  border: 0;
  background: transparent !important;
  padding: 0 !important;
}
.dedicated {
  color: #7a4a09;
  background: #fff4dd;
  border: 1px solid #e8cc95;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
}
.inventory-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.group-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.small-button {
  font-size: 12px;
  padding: 6px 9px;
}
@media (min-width: 1000px) {
  .shell {
    grid-template-columns: 165px 1fr;
  }
  .sidebar {
    padding: 20px 12px;
    gap: 25px;
  }
  .sidebar .brand {
    font-size: 12px;
    gap: 6px;
  }
  .sidebar .brand img {
    width: 25px;
    height: 25px;
  }
  .nav button {
    padding: 10px;
    font-size: 12px;
  }
  .main {
    padding: 23px;
    max-width: none;
  }
  .top {
    margin-bottom: 16px;
  }
  .eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }
  h1 {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .top .muted {
    font-size: 12px;
  }
  .toolbar button {
    padding: 7px 11px;
    font-size: 12px;
  }
  .banner {
    padding: 11px 15px;
    margin-bottom: 15px;
  }
  .banner p {
    font-size: 12px;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 16px;
    border-radius: 10px;
  }
  .card.is-active {
    padding-top: 14px;
  }
  .card h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .email {
    font-size: 11px;
    margin-top: 2px;
  }
  .metric {
    margin-top: 15px;
  }
  .metric strong {
    font-size: 32px;
  }
  .card .small {
    font-size: 10px;
    margin: 5px 0;
  }
  .card-actions {
    display: flex;
    gap: 7px;
    margin-top: 10px;
  }
  .card-actions button {
    padding: 8px 6px;
    font-size: 11px;
  }
  .subwindow {
    padding: 6px 0;
  }
  .section {
    margin-top: 18px;
  }
  .panel-head {
    padding: 11px 14px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .row {
    padding: 10px 14px;
  }
  .footer-note {
    margin-top: 13px;
  }
  .sheet-wrap {
    max-height: calc(100vh - 235px);
  }
}
/* Let actual cell width, not an arbitrary 190px cap, determine text flow. */
.sheet .scope-label,
.sheet .container-label {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.sheet th:nth-child(4) {
  width: 35%;
}
.sheet td:nth-child(4) {
  min-width: 260px;
  white-space: normal;
}
.sheet td:nth-child(3) {
  min-width: 210px;
  max-width: none;
  white-space: normal;
}
.sheet .scope-label { word-break: break-all; }
.profile-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #e7ebf0;
}
.profile-tools button {
  font-size: 11px;
  padding: 5px 7px;
}
.oauth-code {
  font-family: ui-monospace, monospace;
  font-size: 27px;
  letter-spacing: 2px;
  padding: 17px;
  text-align: center;
  background: #edf5f2;
  border-radius: 8px;
  margin: 18px 0;
  user-select: all;
}
.profile-error {
  white-space: normal;
}
.archive-list {
  margin-top: 15px;
}
.profile-status {
  font-size: 12px;
  line-height: 1.5;
}
.oauth-link {
  display: block;
  text-align: center;
  margin: 12px 0;
}
.flow-banner {
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid #cfdfd7;
  border-radius: 9px;
  background: #f0f8f4;
}
.flow-banner button {
  margin-left: 8px;
  font-size: 12px;
  padding: 6px 9px;
}
