@font-face {
  font-family: Portal Sans;
  src: url('/static/fonts/inter-400-700-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

.agent-standalone {
  font-family: Portal Sans, system-ui, sans-serif;
  margin: 0;
  line-height: 1.5;
}
.agent-standalone *, .agent-standalone *::before, .agent-standalone *::after { box-sizing: border-box; }
.agent-standalone [hidden] { display: none !important; }
.agent-standalone a { color: inherit; }
.agent-standalone :focus-visible { outline: 2px solid #8b6b37; outline-offset: 4px; }
.agent-standalone .skip { position: absolute; top: 8px; left: 8px; padding: 8px 12px; background: white; z-index: 2; }
.agent-standalone .skip:not(:focus) { clip-path: inset(50%); }
.portal-split .agent-portal-header { justify-content: space-between; align-items: center; }
.agent-standalone .portal-brand span { font-size: .95rem; }
.agent-standalone .portal-brand img { height: 36px; }
.agent-standalone .agent-company { text-underline-offset: 3px; }
.agent-standalone .agent-entry-card h1 { margin: 0; }
.agent-standalone .agent-entry-card > p { color: #496258; margin: .6em 0 0; }
.agent-standalone .agent-entry-card input {
  border: 1px solid #bdb8a9;
  border-radius: 6px;
  background: #fff;
  color: #16332b;
  min-height: 46px;
  padding: 9px 11px;
  font: inherit;
}
.agent-standalone .agent-entry-card form label { font-weight: 600; }
.agent-field-hint { color: #4b6459; margin-top: -9px; }
.agent-standalone .agent-entry-card button, .agent-primary, .agent-signout {
  min-height: 44px;
  background: #174a3b;
  color: white;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
}
.agent-standalone .agent-entry-links { grid-template-columns: 1fr auto; gap: 14px; }
.agent-standalone .agent-entry-links a { text-underline-offset: 4px; font-size: .9rem; }
.portal-split [data-portal-account] .agent-signout { min-height: 36px; padding: 5px 9px; font-size: .85rem; }
.agent-register-languages { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.agent-loading, .agent-standalone #notice {
  width: min(100% - 36px, 1090px);
  margin: 24px auto;
}
.agent-standalone #notice:empty { display: none; }
.agent-standalone #notice:not(:empty) {
  border: 1px solid #bdb8a9;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fffefa;
}

.agent-home { width: min(100% - 48px, 1090px); margin: 32px auto 72px; }
.agent-home-heading {
  padding: clamp(24px, 5vw, 52px);
  margin-bottom: 22px;
  background: #173d32;
  color: #fffaf0;
  border: 1px solid #315849;
  border-radius: 16px;
}
.agent-home-heading p { margin: 0 0 8px; color: #e7cca2; font-size: .88rem; font-weight: 600; }
.agent-home-heading span { color: #e4ebe2; font-size: .95rem; }
.agent-home h1 { margin: 0 0 8px; font: 550 clamp(2.3rem, 5vw, 3.6rem)/1.12 Portal Serif, Georgia, serif; }
.agent-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.agent-standalone .agent-module-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 102px;
  padding: 19px;
  border: 1px solid #dbd6c8;
  border-radius: 12px;
  background: #fffefa;
  box-shadow: 0 5px 16px #142b2110;
  text-decoration: none;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.agent-module-card:hover { border-color: #a38857; background: #fffaf0; box-shadow: 0 8px 22px #142b211a; }
.agent-module-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  border: 1px solid #ddd3bf;
  border-radius: 9px;
  color: #245345;
  background: #f4f1e7;
}
.agent-module-icon svg { width: 21px; height: 21px; }
.agent-module-label { display: grid; gap: 5px; min-width: 0; }
.agent-module-label strong { font-size: .98rem; font-weight: 650; }
.agent-module-label small { color: #465e52; line-height: 1.4; font-size: .82rem; }
.agent-module-arrow { margin-left: auto; color: #765e38; font-size: 1.05rem; }
.agent-section h1 { margin-top: 14px; }
.agent-list { display: grid; gap: 10px; margin-top: 22px; }
.agent-list a { display: grid; background: #fffefa; border: 1px solid #dbd6c8; padding: 12px 16px; border-radius: 8px; text-underline-offset: 3px; }
.agent-list small { margin-top: 3px; color: #4b6459; }
.agent-list-pager { display: flex; gap: 16px; margin-top: 20px; }

@media (max-width: 840px) { .agent-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 550px) {
  .agent-home { width: calc(100% - 24px); margin-top: 18px; }
  .agent-module-grid { grid-template-columns: 1fr; gap: 9px; }
  .agent-standalone .agent-module-card { min-height: 74px; padding: 13px; }
  .portal-split .agent-header-links { gap: 8px; justify-content: flex-start; }
  .agent-standalone .agent-entry-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .agent-module-card { transition: none; } }
