.portal-wrap { width: min(1060px, calc(100% - 36px)); margin: 0 auto; }
.portal-header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 0; }
.portal-header { border-bottom: 1px solid var(--stroke); }
.portal-header > span, footer { color: var(--muted); font-size: .83rem; }
main.portal-wrap { padding-block: clamp(25px, 5vw, 64px); min-height: 75vh; }
footer { margin-top: 1rem; border-top: 1px solid var(--stroke); }
[hidden] { display: none !important; }
.portal-wrap h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); }
.portal-wrap h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 0 0 .65rem; }
.portal-wrap h3 { font-size: 1.25rem; margin: .75rem 0 .35rem; }
.portal-wrap p, .portal-wrap li { overflow-wrap: anywhere; }
.overline { text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: bold; color: var(--terra); margin-bottom: .55rem; }
.test-note { font-size: .84rem; color: var(--muted); margin: 0 0 1.2rem; }
.panel { border: 1px solid var(--stroke); background: var(--cream); padding: clamp(20px,4vw,36px); border-radius: 12px; }
.action, .link, #portal-nav a { min-height: 44px; cursor: pointer; font: inherit; font-size: .94rem; font-weight: 650; }
.action { display: inline-flex; align-items: center; justify-content: center; padding: 10px 19px; border-radius: 6px; border: 1px solid var(--terra); background: var(--terra); color: #fff; text-decoration: none; }
.action.secondary { background: var(--cream); color: var(--terra); }
.link { border: 0; background: none; color: var(--terra); padding: 7px 0; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; text-align: left; }
button:disabled { opacity: .65; cursor: wait; }
.sign-in-grid, .cards { display: grid; gap: 1rem; align-items: start; }
.welcome p, .section-title p, .panel p, .item small { color: var(--muted); }
.welcome img { display: none; }
.auth-panel label,.editor label, .panel form label { display: grid; gap: 5px; font-weight: 600; font-size: .91rem; }
.portal-wrap form { display: grid; gap: 13px; }
.auth-panel form, .auth-panel .recovery { margin-top: 1rem; }
.auth-panel .recovery { font-size: .85rem; }
.auth-panel .action { width: 100%; }
.portal-wrap input:not([type=checkbox]), .portal-wrap select, .portal-wrap textarea { min-width: 0; width: 100%; border: 1px solid #89978b; border-radius: 5px; padding: .6rem .7rem; color: var(--ink); background: white; font-size: 1rem; }
.portal-wrap textarea { resize: vertical; }
.portal-wrap label small { font-weight: normal; }
.notice:not(:empty), .problem:not(:empty) { padding: 10px 14px; border-left: 3px solid #526e51; background: #e6eddf; margin-bottom: 1rem; }
.problem:not(:empty) { border-color: #994d35; background: #f5e4db; }
.dashboard-title, .item-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dashboard-title h1 { margin: 0; }
#portal-nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 24px 0; border-bottom: 1px solid var(--stroke); }
#portal-nav a { display: inline-flex; align-items: center; justify-content: center; padding: 8px clamp(7px,1.6vw,19px); text-decoration: none; border-bottom: 3px solid transparent; }
#portal-nav a[aria-current=page] { color: var(--terra); border-color: var(--terra); }
.spotlight { background: #e4ecdf; border-color: #bdcabb; margin-bottom: 1rem; }
.panel > :last-child, .panel p:last-child, .item > :last-child { margin-bottom: 0; }
.item { padding: 13px 0; border-top: 1px solid var(--stroke); overflow-wrap: anywhere; }
.item p { margin: 0 0 .35rem; }
.actions { display: flex; flex-wrap: wrap; gap: 7px 19px; align-items: center; }
.editor { max-width: 700px; }
.editor fieldset { margin: 0 0 8px; padding: 0; border: none; display: grid; gap: 14px; min-width: 0; }
.editor legend { font: 1.3rem Georgia, serif; padding: 0; margin: .4rem 0 .7rem; }
.editor fieldset fieldset legend { font: 600 .91rem var(--font); }
.choices, .field-pair { display: grid; gap: 9px 16px; }
.choices { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
.choices label, .panel form label.check { display: flex; align-items: center; gap: .55rem; min-height: 42px; }
.portal-wrap input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--terra); }
.section-title { margin: 12px 0 22px; }
.section-title h1 { margin-bottom: 12px; }
.photo { max-width: 220px; max-height: 180px; object-fit: contain; }
.confirm { border-left: 3px solid var(--terra); padding-left: 12px; }
.service-area-info { font-size: .85rem; margin: 1rem 0; }
.service-area-info a { color: inherit; text-decoration: underline; }
@media (min-width: 670px) {
  .portal-wrap { width: min(1060px, calc(100% - 72px)); }
  .sign-in-grid { grid-template-columns: 1fr minmax(330px,.9fr); gap: clamp(34px,7vw,88px); }
  .welcome img { display: block; width: min(100%, 400px); height: auto; border-radius: 130px 130px 6px 6px; margin-top: 22px; }
  .cards, .field-pair { grid-template-columns: 1fr 1fr; }
}
