.sbe-portal {
  max-width: 1040px;
  margin: 2rem auto;
  color: #1c2430;
  font-family: "Segoe UI", sans-serif;
  min-width: 0;
}
.sbe-portal, .sbe-portal * { box-sizing: border-box; }
.sbe-portal.sbe-portal h1 { margin: 0.15rem 0 0.35rem; color: #0f2c4c; font-size: 1.65rem; line-height: 1.2; font-weight: 650; }
.sbe-portal.sbe-portal h2 { margin: 0 0 0.4rem; color: #0f2c4c; font-size: 1.15rem; line-height: 1.3; font-weight: 650; }
.sbe-portal.sbe-portal h3 { margin: 0 0 0.4rem; color: #0f2c4c; font-size: 1rem; line-height: 1.3; font-weight: 650; }
.sbe-kicker { margin: 0; letter-spacing: 0.04em; text-transform: uppercase; color: #1a6b6b; font-size: 0.8rem; }
.sbe-notice { background: #f6f4ef; border-left: 4px solid #c4a35a; padding: 0.8rem 1rem; }
.sbe-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.sbe-choices .sbe-login { margin: 0; }
.sbe-card, .sbe-form, .sbe-invoice, .sbe-dashboard { background: #fff; border: 1px solid #e4e0d6; border-radius: 12px; padding: 1.25rem 1.35rem; margin: 1rem 0; }
.sbe-card { display: flex; flex-direction: column; margin: 0; }
.sbe-portal section.sbe-card h2 { margin: 0 0 0.4rem; }
.sbe-card p { margin: 0 0 1rem; color: #3d4754; }
.sbe-card form { margin: 0; }
.sbe-form.sbe-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; align-items: start; }
.sbe-form.sbe-grid .sbe-field textarea,
.sbe-form.sbe-grid .sbe-check,
.sbe-form.sbe-grid .sbe-note,
.sbe-form.sbe-grid .sbe-btn,
.sbe-form.sbe-grid .sbe-actions,
.sbe-form.sbe-grid .sbe-invoice,
.sbe-form.sbe-grid .sbe-files,
.sbe-form.sbe-grid > p,
.sbe-form.sbe-grid .sbe-span { grid-column: 1 / -1; }
.sbe-logo-preview, .sbe-cards .sbe-logo { display: block; width: 300px; max-width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #f6f4ef; border: 1px solid #e4e0d6; border-radius: 8px; margin-bottom: 0.6rem; }
.sbe-field small { display: block; margin-top: 0.35rem; color: #5c6773; }
.sbe-portal form.sbe-login h2 { margin: 0 0 0.25rem; }
.sbe-forgot { margin: -0.2rem 0 0.6rem; }
.sbe-forgot a { color: #0b4f8a; }
.sbe-field, .sbe-check { display: block; margin: 0.8rem 0; }
.sbe-field span { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.sbe-field input, .sbe-field select, .sbe-field textarea { width: 100%; max-width: 100%; padding: 0.65rem 0.7rem; border: 1px solid #c9c3b6; border-radius: 6px; background: #fff; }
.sbe-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.sbe-portal button.sbe-btn,
.sbe-portal a.sbe-btn { background: #0f2c4c; color: #fff; border: 1px solid #0f2c4c; border-radius: 6px; padding: 0.7rem 1.05rem; cursor: pointer; text-decoration: none; display: inline-block; width: auto; line-height: 1.2; font-size: 0.95rem; box-shadow: none; }
.sbe-portal button.sbe-btn-secondary,
.sbe-portal a.sbe-btn-secondary { background: #fff; color: #0f2c4c; }
.sbe-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.sbe-steps li { flex: 1 1 auto; min-width: 0; padding: 0.4rem 0.75rem; border-radius: 999px; background: #eef2f4; text-align: center; }
.sbe-steps .is-current { background: #0f2c4c; color: #fff; }
.sbe-steps .is-done { background: #d9eee8; }
.sbe-badge { display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px; padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.sbe-badge-certified { background: #e8f1fb; color: #0b4f8a; }
.sbe-badge-standard { background: #eef2f4; color: #33414f; }
.sbe-ribbon { width: 0.7rem; height: 0.9rem; background: #0b4f8a; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.sbe-status { font-weight: 600; }
.sbe-hp { position: absolute; left: -9999px; }
.sbe-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.sbe-cards li { border: 1px solid #e4e0d6; border-radius: 10px; padding: 1rem; background: #fff; }
.sbe-directory .sbe-cards h2.sbe-card-name { margin: 0 0 0.45rem; color: #0f2c4c; font-size: 1.05rem; line-height: 1.3; font-weight: 650; }
.sbe-card-more summary { cursor: pointer; color: #0b4f8a; font-size: 0.9rem; list-style: none; }
.sbe-card-more summary::-webkit-details-marker { display: none; }
.sbe-card-more[open] summary { margin-bottom: 0.7rem; }
.sbe-card-meta { margin: 0 0 0.7rem; color: #5c6773; font-size: 0.88rem; }
.sbe-card-details { margin: 0 0 0.75rem; }
.sbe-card-details div { margin: 0 0 0.45rem; }
.sbe-card-details dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #6b7682; }
.sbe-card-details dd { margin: 0; font-size: 0.92rem; line-height: 1.4; }
.sbe-card-details a { color: #0f2c4c; }
.sbe-cards .sbe-logo { width: 100%; max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: contain; margin: 0 0 0.85rem; }
.sbe-filters { display: grid; gap: 0.75rem; margin: 1rem 0 1.25rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #e4e0d6; border-radius: 12px; }
.sbe-filters input[type="search"],
.sbe-filters select { width: 100%; max-width: 100%; padding: 0.65rem 0.7rem; border: 1px solid #c9c3b6; border-radius: 6px; background: #fff; }
.sbe-filter-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sbe-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sbe-inline { display: inline-block; margin-right: 0.5rem; }
.sbe-note { color: #5c6770; }
.sbe-dashboard h2.sbe-dash-name { margin: 0.1rem 0 0.45rem; color: #0f2c4c; font-size: 1.35rem; line-height: 1.25; font-weight: 650; }
.sbe-dash-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sbe-dash-logo { width: 96px; height: 64px; object-fit: contain; background: #f6f4ef; border: 1px solid #e4e0d6; border-radius: 8px; }
.sbe-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0 0 1rem; }
.sbe-dash-stats div { background: #f6f4ef; border-radius: 8px; padding: 0.7rem 0.8rem; }
.sbe-dash-stats dt { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #6b7682; }
.sbe-dash-stats dd { margin: 0.15rem 0 0; font-weight: 600; }
.sbe-dash-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.1rem; }
.sbe-dash-actions form { margin: 0; }
.sbe-dashboard h3 { margin: 0 0 0.4rem; font-size: 1rem; color: #0f2c4c; }
.sbe-app-list { list-style: none; margin: 0; padding: 0; }
.sbe-app-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid #e4e0d6; }
@media (max-width: 700px) {
  .sbe-portal { margin: 1rem 0; }
  .sbe-choices, .sbe-form.sbe-grid, .sbe-filter-cols, .sbe-dash-stats { grid-template-columns: 1fr; }
  .sbe-steps { display: grid; grid-template-columns: 1fr 1fr; }
  .sbe-steps li { white-space: normal; }
  .sbe-actions { flex-direction: column; }
  .sbe-actions .sbe-btn, .sbe-form .sbe-btn { width: 100%; text-align: center; }
}
