#self-service-shell {
  --ess-ink: #172c23; --ess-muted: #496157; --ess-line: #d9e5df; --ess-accent: #155840;
  background: #f3f7f5; color: var(--ess-ink); min-height: 100vh;
}
#self-service-shell[hidden], .ess-dialog [hidden] { display: none !important; }
.ess-header, .ess-layout { max-width: 1120px; margin-inline: auto; padding: 20px; }
.ess-header, .ess-row, .ess-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ess-header, .ess-row { justify-content: space-between; }
.ess-header { border-bottom: 1px solid var(--ess-line); }
.ess-brand { flex-wrap: nowrap; }
.ess-brand img { width: 42px; height: 42px; object-fit: contain; }
.ess-brand span { display: block; font-size: .86rem; color: var(--ess-muted); }
.ess-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 22px; }
.ess-layout nav { display: flex; flex-direction: column; align-self: start; gap: 6px; }
.ess-layout nav .button { justify-content: flex-start; text-align: left; }
.ess-layout nav [aria-current] { background: #e1f0e7; color: var(--ess-accent); }
.ess-layout main h2, .ess-card h3, .ess-card h4, .ess-dialog h2, .ess-form h3 { margin: 0; }
.ess-layout main > h3 { margin: 16px 0 10px; }
.ess-card { padding: 15px; border: 1px solid #d9e5df; border-radius: 12px; background: #fff; margin: 0 0 12px; min-width: 0; overflow-wrap: anywhere; }
.ess-card p { margin: 6px 0; }
.ess-badge { padding: 3px 8px; border-radius: 20px; background: #e4f3ec; color: #184d37; font-weight: 600; }
.ess-facts, .ess-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 12px; }
.ess-facts { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #e0ebe5; }
.ess-facts dt { color: #496157; font-size: .88rem; }
.ess-facts dd { margin: 2px 0 0; font-weight: 600; }
.ess-form { display: grid; gap: 10px; margin-top: 8px; }
.ess-form label:not(.ess-check), [data-invite] label { display: grid; gap: 4px; }
.ess-form :is(input:not([type=checkbox]):not([type=radio]),textarea,select), [data-invite] input {
  width: 100%; min-width: 0; min-height: 40px; padding: 8px; border: 1px solid #aabdb2; border-radius: 7px;
  color: #172c23; background: #fff; font: inherit;
}
.ess-form textarea { min-height: 65px; resize: vertical; }
.ess-check { display: flex; align-items: baseline; gap: 8px; }
.ess-actions { justify-content: flex-start; }
.ess-message { color: #294d3a; min-height: 1.1em; }
.ess-message:empty { display: none; }
.ess-claim-part { margin-top: 12px; }
.ess-dialog { width: min(94vw,720px); max-height: 90vh; padding: 0; border: 1px solid #d9e5df; border-radius: 12px; color: #172c23; background: #f3f7f5; }
.ess-dialog::backdrop { background: rgb(16 35 27 / 60%); }
.ess-dialog > header { padding: 14px 18px; background: #fff; border-bottom: 1px solid #d9e5df; }
.ess-dialog-body { padding: 16px 18px; }
.ess-hr-tools { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
@media(max-width:620px) {
  .ess-layout { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 12px; }
  .ess-header { padding: 12px; }
  .ess-layout nav { flex-direction: row; flex-wrap: wrap; }
  .ess-layout nav button { min-height: 42px; }
}
