.platform-shell {
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  background: #f7faf6;
  color: #24332d;
}

.platform-sidebar {
  height: 100vh;
  min-height: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  background: #2f6f4e;
  color: #ffffff;
}

.platform-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-brand .brand-mark {
  width: 38px;
  height: 38px;
  --mark-stem-top: 10px;
  --mark-u-bottom: 8px;
  flex: 0 0 38px;
}

.platform-brand strong,
.platform-brand span {
  display: block;
}

.platform-brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.platform-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.36) transparent;
}

.platform-nav button,
.platform-user {
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.platform-nav button {
  padding: 11px 12px;
  font-weight: 700;
}

.platform-nav button.active {
  background: rgba(255, 255, 255, 0.14);
}

.platform-user {
  flex: 0 0 auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.platform-user span,
.platform-user strong {
  display: block;
}

.platform-user span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-user strong {
  margin-top: 4px;
  font-size: 12px;
}

.platform-workspace {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px;
}

.platform-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.platform-header h1 {
  margin: 0;
  font-size: 28px;
}

.platform-error,
.platform-notice {
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
}

.platform-error {
  background: #ffe9e5;
  color: #8d2c1f;
}

.platform-notice {
  background: #e8f4ed;
  color: #2f6f4e;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  align-items: start;
}

.platform-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.platform-card {
  min-width: 0;
  border: 1px solid #dce7de;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.platform-card h2 {
  margin: 0;
  font-size: 18px;
}

.platform-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.platform-primary,
.platform-account-row button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #2f6f4e;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.platform-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.platform-table {
  display: grid;
  border: 1px solid #e2ebe4;
  border-radius: 8px;
  overflow: hidden;
}

.platform-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #e2ebe4;
  background: #ffffff;
}

.platform-row:last-child {
  border-bottom: 0;
}

.platform-row.active,
.platform-row:hover {
  background: #eef7f1;
}

.platform-row-main {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1.15fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.platform-row-action {
  min-height: 32px;
  margin-right: 8px;
  border: 1px solid #dce7de;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #2f6f4e;
  font-weight: 800;
  cursor: pointer;
}

.platform-row span {
  color: #65766b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .platform-shell,
  .platform-grid,
  .platform-grid.single {
    grid-template-columns: 1fr;
  }

  .platform-sidebar {
    min-height: auto;
  }

  .platform-section-head,
  .platform-row,
  .platform-row-main {
    grid-template-columns: 1fr;
  }
}
