:root {
  color-scheme: light;
  --teal: #00717a;
  --teal-dark: #005d65;
  --teal-light: #e9f4f3;
  --teal-pale: #f3f9f8;
  --ink: #1a272b;
  --muted: #627176;
  --subtle: #77858a;
  --page: #f5f7f7;
  --white: #fff;
  --line: #dce4e4;
  --line-light: #eaf0ef;
  --amber: #9b5b09;
  --amber-soft: #fff6e8;
  --red: #a82f31;
  --red-soft: #fff1f0;
  --green: #257247;
  --green-soft: #edf6ef;
  --blue: #315b91;
  --blue-soft: #edf3fc;
  --shadow: 0 10px 36px rgb(24 50 53 / 4%);
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-display: "Outfit", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
a { color: var(--teal); text-underline-offset: .2em; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
button:disabled { opacity: .48; }
input, select, textarea, button { min-width: 0; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
::selection { background: var(--teal); color: var(--white); }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
img { display: block; max-width: 100%; height: auto; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.honeypot { left: -10000px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 20; padding: .75rem 1.25rem; border-radius: .5rem; background: var(--teal); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1184px; min-height: 91px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; gap: 25px; }
.brand-link { display: block; flex-shrink: 0; }
.brand-link img { width: 154px; }
.header-divider { width: 1px; height: 30px; background: var(--line); }
.header-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.back-link { display: inline-flex; gap: 7px; align-items: center; margin-left: auto; font-size: 12px; font-weight: 700; text-decoration: none; }
.back-link .icon { width: 17px; height: 17px; }
.back-link:hover { color: var(--teal-dark); text-decoration: underline; }
.portal-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 43px 0 0; }
.portal-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 31px; }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--teal); font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { display: block; width: 19px; height: 2px; background: var(--teal); }
h1 { margin-top: 11px; font-size: clamp(30px, 3.6vw, 43px); letter-spacing: -.035em; }
.mobile-break { display: none; }
.intro-description { margin-top: 9px; font-size: 13px; color: var(--muted); }
.connection-status { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; margin-bottom: 4px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.connection-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-light); }
.portal-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px; gap: 6px; margin-bottom: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.portal-tab { display: flex; justify-content: flex-start; align-items: center; gap: 10px; padding: 13px 18px; min-height: 49px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.portal-tab .icon { width: 18px; height: 18px; }
.portal-tab:hover { background: var(--teal-pale); color: var(--teal); }
.portal-tab[aria-selected="true"] { color: var(--white); background: var(--teal); }
.portal-tab:focus-visible { outline-offset: 1px; }
.tab-index { margin-left: auto; font-size: 10px; font-weight: 500; opacity: .6; }
.view-panel { background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: clip; }
.view-panel:focus-visible { outline-offset: 5px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.form-area { min-width: 0; padding: 33px 35px 29px; }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.section-marker { display: inline-flex; justify-content: center; align-items: center; width: 41px; height: 41px; flex: 0 0 auto; background: var(--teal-light); color: var(--teal); border-radius: 11px; }
.section-heading h2 { font-size: 25px; letter-spacing: -.025em; }
.section-heading p { margin-top: 6px; color: var(--muted); font-size: 11px; }
.form-section-label { display: flex; align-items: center; gap: 9px; margin: 26px 0 17px; padding-bottom: 10px; border-bottom: 1px solid var(--line-light); font-weight: 700; font-size: 11px; color: var(--ink); }
.form-section-label:first-of-type { margin-top: 0; }
.form-section-label > span { color: var(--teal); font-family: var(--font-display); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 17px; }
.field { min-width: 0; }
.field > label, .urgency-fieldset > legend { display: block; margin-bottom: 7px; color: var(--ink); font-size: 11px; font-weight: 700; }
.required-mark { margin-left: 2px; color: var(--teal); }
input:not([type="radio"]), select, textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; background: var(--white); color: var(--ink); font-size: 12px; line-height: 1.5; transition: border-color .15s ease, box-shadow .15s ease; }
input:not([type="radio"]), select { min-height: 44px; }
select { padding-right: 34px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23627176' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--subtle); opacity: 1; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: var(--subtle); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal-light); outline-offset: 1px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
textarea { resize: vertical; min-height: 105px; }
.form-fields:disabled input, .form-fields:disabled select, .form-fields:disabled textarea { background-color: var(--page); }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.urgency-fieldset { margin: 19px 0; }
.urgency-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.urgency-option { position: relative; display: block; cursor: pointer; }
.urgency-option input { position: absolute; top: 15px; right: 11px; margin: 0; width: 13px; height: 13px; accent-color: var(--teal); }
.urgency-choice { display: flex; flex-direction: column; height: 100%; padding: 12px 10px 11px; border: 1px solid var(--line); border-radius: 7px; transition: background-color .15s ease, border-color .15s ease; }
.urgency-option input:checked + .urgency-choice { background: var(--teal-pale); border-color: var(--teal); }
.urgency-option input:focus-visible { outline: 0; }
.urgency-option input:focus-visible + .urgency-choice { outline: 3px solid var(--teal); outline-offset: 3px; }
.urgency-option-title { display: flex; align-items: center; gap: 6px; padding-right: 13px; font-size: 11px; font-weight: 700; }
.priority-dot, .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.priority-normal { background: var(--teal); }
.priority-high, .status-dot-pending { background: var(--amber); }
.priority-urgent { background: var(--red); }
.urgency-caption { display: block; margin-top: 4px; font-size: 9px; line-height: 1.5; color: var(--muted); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.required-note { color: var(--muted); font-size: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--teal); color: var(--white); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); }
.button-secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.button-secondary:hover:not(:disabled) { background: var(--teal-pale); border-color: var(--teal); color: var(--teal); }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover:not(:disabled) { background: var(--page); color: var(--ink); }
.button-danger { background: var(--red); color: var(--white); }
.button-danger:hover:not(:disabled) { background: var(--ink); }
.button-small { padding: 8px 12px; min-height: 38px; font-size: 10px; }
.button-full { width: 100%; }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line-light); font-size: 9px; line-height: 1.6; color: var(--muted); }
.privacy-note .icon { width: 13px; height: 13px; margin-top: 1px; color: var(--teal); }
.service-aside { position: relative; padding: 34px 28px; background: var(--teal-pale); border-left: 1px solid var(--line-light); }
.aside-symbol { position: relative; display: flex; align-items: center; width: 61px; height: 61px; margin-bottom: 32px; border: 1px solid var(--teal); border-radius: 17px; color: var(--teal); justify-content: center; }
.aside-symbol > .icon { width: 29px; height: 29px; stroke-width: 1.4; }
.aside-symbol > span { position: absolute; right: -5px; bottom: -5px; width: 14px; height: 14px; background: var(--teal); border: 3px solid var(--teal-pale); border-radius: 50%; }
.service-aside .eyebrow { font-size: 9px; letter-spacing: .1em; }
.service-aside h2 { margin: 12px 0 13px; font-size: 31px; letter-spacing: -.025em; }
.aside-intro { font-size: 11px; color: var(--muted); line-height: 1.9; }
.service-steps { list-style: none; margin: 30px 0 0; padding: 0; }
.service-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 26px; }
.service-steps li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 29px; bottom: 5px; width: 1px; background: var(--line); }
.step-number { display: flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 25px; height: 25px; color: var(--teal); border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-family: var(--font-display); font-size: 11px; font-weight: 500; }
.service-steps h3 { padding-top: 3px; font-family: var(--font-body); font-size: 11px; font-weight: 700; }
.service-steps p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.aside-contact { display: flex; gap: 11px; padding-top: 20px; margin-top: 13px; border-top: 1px solid var(--line); }
.aside-contact > .icon { color: var(--teal); width: 19px; height: 19px; }
.aside-contact p { color: var(--muted); font-size: 10px; }
.aside-contact a { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11px; font-weight: 700; text-decoration: none; }
.aside-contact a:hover { text-decoration: underline; }
.aside-contact a .icon { width: 14px; height: 14px; }
.feedback { margin: 0 0 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--teal-light); color: var(--teal-dark); font-size: 12px; overflow-wrap: anywhere; }
.feedback-error, .feedback.error { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.feedback-success, .feedback.success { background: var(--green-soft); color: var(--green); border-color: var(--green); }
form .feedback { margin-top: 17px; margin-bottom: 0; }
.success-panel { padding: 30px 7px; text-align: center; }
.success-icon { display: flex; justify-content: center; align-items: center; margin: 0 auto 21px; width: 62px; height: 62px; color: var(--teal); background: var(--teal-light); border-radius: 50%; }
.success-icon .icon { width: 29px; height: 29px; }
.success-panel .eyebrow { justify-content: center; }
.success-panel h2 { margin-top: 10px; font-size: 34px; letter-spacing: -.03em; }
.success-panel > p:not(.eyebrow) { max-width: 390px; margin: 12px auto; color: var(--muted); font-size: 12px; }
.folio-receipt { display: flex; align-items: center; flex-direction: column; gap: 11px; margin: 27px auto 17px; padding: 24px; max-width: 430px; background: var(--teal-pale); border: 1px dashed var(--teal); border-radius: 9px; }
.receipt-label { color: var(--muted); font-size: 10px; }
.folio-receipt strong { max-width: 100%; font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: .02em; overflow-wrap: anywhere; }
.receipt-date { color: var(--muted); font-size: 10px; }
.success-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 23px; }
.tracking-layout, .admin-gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; padding: 49px 56px; }
.tracking-heading, .admin-gate-heading { max-width: 370px; }
.tracking-heading .section-marker, .admin-gate-heading .section-marker { margin-bottom: 25px; }
.tracking-heading h2, .admin-gate-heading h2 { margin: 12px 0 16px; font-size: 36px; letter-spacing: -.025em; }
.tracking-heading > p:not(.eyebrow), .admin-gate-heading > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.9; }
.privacy-caption, .access-note { display: flex; align-items: flex-start; gap: 9px; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.privacy-caption .icon, .access-note .icon { width: 16px; height: 16px; color: var(--teal); }
.tracking-form, .login-form { align-self: center; }
.tracking-form > .field, .login-form > .field { margin-bottom: 19px; }
.tracking-form .button, .login-form .button { margin-top: 7px; }
.tracking-form .feedback, .login-form .feedback { margin-bottom: 15px; }
.login-form h3 { margin-bottom: 24px; font-size: 23px; letter-spacing: -.02em; }
.login-form > .field-hint { margin-top: 14px; text-align: center; }
.tracking-result { padding: 0 56px 42px; }
.tracking-result > .ticket-card { border: 1px solid var(--line); border-radius: 9px; }
.admin-dashboard { padding: 30px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; }
.dashboard-heading h2 { margin-top: 7px; font-size: 29px; letter-spacing: -.025em; }
.admin-session { margin-top: 8px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 27px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.metric { padding: 18px 21px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric:first-child { background: var(--teal-pale); }
.metric dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.metric dd { margin-top: 6px; font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.2; }
.metric:first-child dd { color: var(--teal); }
.status-dot-progress { background: var(--blue); }
.status-dot-resolved { background: var(--green); }
.filters { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 16px; padding: 20px 0 23px; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.search-input { position: relative; }
.search-input > .icon { position: absolute; top: 13px; left: 12px; width: 17px; height: 17px; color: var(--subtle); pointer-events: none; }
.search-input input { padding-left: 36px; }
.list-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 23px 0 17px; }
.list-heading h3 { font-size: 20px; }
.list-count { color: var(--muted); font-size: 10px; }
.ticket-list { display: grid; gap: 12px; }
.ticket-card { min-width: 0; padding: 21px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.ticket-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.ticket-folio { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--teal); }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 9px 0; color: var(--muted); font-size: 11px; }
.ticket-meta strong { font-weight: 600; color: var(--ink); }
.ticket-description { margin-top: 13px; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.ticket-detail { margin: 15px 0; font-size: 11px; }
dl.ticket-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; }
details.ticket-detail { padding-top: 14px; border-top: 1px solid var(--line-light); }
details.ticket-detail > summary { color: var(--teal); font-weight: 700; }
.ticket-card h4, .tracking-result h4 { margin: 16px 0 9px; font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.ticket-top > h4 { margin: 0; }
.tracking-result > .ticket-top { padding-top: 24px; border-top: 1px solid var(--line); }
.ticket-detail dt { color: var(--muted); font-size: 10px; }
.ticket-detail dd { margin-top: 3px; font-weight: 600; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-light); }
.status-badge, .urgency-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; font-size: 9px; font-weight: 700; line-height: 1.5; }
.status-badge { color: var(--muted); background: var(--page); }
.status-pendiente { color: var(--amber); background: var(--amber-soft); }
.status-en_proceso { color: var(--blue); background: var(--blue-soft); }
.status-resuelto { color: var(--green); background: var(--green-soft); }
.urgency-normal { color: var(--teal); background: var(--teal-light); }
.urgency-alta { color: var(--amber); background: var(--amber-soft); }
.urgency-urgente { color: var(--red); background: var(--red-soft); }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; }
.timeline-item { position: relative; padding: 0 0 24px 24px; border-left: 1px solid var(--line); margin-left: 5px; }
.timeline-item::before { content: ""; position: absolute; top: 5px; left: -5px; width: 9px; height: 9px; border: 2px solid var(--white); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-date { display: block; margin: 6px 0; color: var(--muted); font-size: 10px; }
.timeline-note { font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.empty-state { padding: 46px 25px; border: 1px dashed var(--line); border-radius: 9px; background: var(--page); color: var(--muted); text-align: center; font-size: 12px; }
.empty-state h3 { margin-bottom: 9px; color: var(--ink); font-size: 23px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 21px; }
.page-label { font-size: 10px; color: var(--muted); }
.properties-management { margin-top: 33px; border-top: 1px solid var(--line); }
.properties-management summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 0 0; list-style: none; font-size: 12px; font-weight: 700; }
.properties-management summary::-webkit-details-marker { display: none; }
.properties-management summary > span:first-child { display: flex; align-items: center; gap: 9px; }
.properties-management summary .icon { width: 17px; height: 17px; color: var(--teal); }
.summary-caption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 500; }
.summary-caption > span { font-size: 19px; font-weight: 400; transition: transform .15s ease; }
.properties-management[open] .summary-caption > span { transform: rotate(45deg); }
.properties-content { padding-top: 25px; }
.properties-content h3 { font-size: 21px; }
.properties-content > div > p { margin-top: 7px; color: var(--muted); font-size: 11px; }
.properties-form { display: flex; align-items: flex-end; gap: 12px; margin: 21px 0; }
.properties-form .field { flex: 1; }
.properties-list { border-top: 1px solid var(--line-light); }
.property-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 12px; }
.property-name { font-weight: 600; overflow-wrap: anywhere; }
.portal-signoff { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 27px 0 32px; color: var(--muted); font-size: 10px; }
.portal-signoff .icon { width: 14px; height: 14px; color: var(--teal); }
.portal-signoff > span { margin-left: auto; color: var(--subtle); font-size: 9px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 17px; max-width: 1120px; margin: 0 auto; padding: 21px 0; font-size: 9px; color: var(--muted); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.privacy-details { max-width: 1120px; margin: 0 auto; padding-bottom: 22px; color: var(--muted); font-size: 10px; }
.privacy-details summary { width: fit-content; }
.privacy-details p { max-width: 800px; margin-top: 10px; line-height: 1.8; }
.portal-dialog { max-width: 530px; width: calc(100% - 32px); max-height: calc(100dvh - 40px); margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 24px 90px rgb(0 0 0 / 18%); }
.portal-dialog::backdrop { background: rgb(15 34 38 / 55%); }
.portal-dialog .section-marker { margin-bottom: 20px; }
.portal-dialog .eyebrow { margin-bottom: 9px; overflow-wrap: anywhere; }
.portal-dialog h2 { font-size: 29px; letter-spacing: -.025em; }
.dialog-description { margin: 12px 0 24px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.portal-dialog .field + .field { margin-top: 18px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.portal-dialog-small { max-width: 465px; }

@media (max-width: 1100px) {
  .report-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .form-area { padding: 28px; }
  .service-aside { padding: 31px 23px; }
  .tracking-layout, .admin-gate { gap: 45px; padding: 40px; }
  .tracking-result { padding: 0 40px 35px; }
  .footer-inner, .privacy-details { width: calc(100% - 64px); }
}

@media (max-width: 900px) {
  .report-layout { grid-template-columns: minmax(0, 1fr) 235px; }
  .form-area { padding: 25px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 10px; }
  .service-aside { padding: 28px 19px; }
  .service-aside h2 { font-size: 28px; }
  .urgency-options { gap: 7px; }
  .urgency-choice { padding: 11px 8px; }
  .urgency-option input { right: 8px; top: 13px; width: 12px; height: 12px; }
  .urgency-caption { font-size: 8px; }
  .portal-tab { padding-inline: 12px; }
  .tracking-layout, .admin-gate { gap: 32px; padding: 32px; }
  .tracking-heading h2, .admin-gate-heading h2 { font-size: 32px; }
  .tracking-result { padding: 0 32px 32px; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 80px; padding: 17px 24px; gap: 17px; }
  .brand-link img { width: 132px; }
  .portal-shell { width: calc(100% - 40px); padding-top: 29px; }
  .portal-intro { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 24px; }
  .connection-status { max-width: none; }
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .service-aside { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; padding: 28px; border-left: 0; border-top: 1px solid var(--line-light); }
  .aside-symbol { display: none; }
  .service-aside > .eyebrow, .service-aside > h2, .aside-intro { grid-column: 1; }
  .service-aside h2 { font-size: 30px; }
  .aside-intro { align-self: start; }
  .service-steps { grid-column: 2; grid-row: 1 / 5; margin-top: 0; }
  .service-steps li { padding-bottom: 20px; }
  .aside-contact { grid-column: 1; margin-top: 18px; }
  .form-area { padding: 28px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading p { font-size: 11px; }
  .urgency-caption { font-size: 10px; }
  .urgency-choice { padding: 12px; }
  .urgency-option input { right: 12px; top: 15px; }
  .portal-tab { justify-content: center; padding-inline: 8px; font-size: 10px; gap: 7px; }
  .portal-tab .icon { width: 16px; height: 16px; }
  .tab-index { display: none; }
  .tracking-layout, .admin-gate { padding: 31px; gap: 29px; }
  .tracking-heading h2, .admin-gate-heading h2 { font-size: 30px; }
  .admin-dashboard { padding: 24px; }
  .dashboard-heading h2 { font-size: 26px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .metric { padding: 16px 13px; }
  .metric dt { font-size: 9px; }
  .metric dd { font-size: 30px; }
  .footer-inner, .privacy-details { width: calc(100% - 40px); }
  .portal-signoff > span { display: none; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 74px; padding: 15px 20px; }
  .brand-link img { width: 123px; }
  .header-divider, .header-label { display: none; }
  .back-link { font-size: 10px; }
  .portal-shell { width: calc(100% - 28px); padding-top: 25px; }
  .portal-intro { padding-inline: 5px; gap: 15px; }
  h1 { font-size: 33px; line-height: 1.1; }
  .mobile-break { display: inline; }
  .intro-description { max-width: 265px; font-size: 11px; line-height: 1.8; }
  .eyebrow { font-size: 9px; }
  .connection-status { font-size: 9px; }
  .portal-tabs { padding: 4px; gap: 3px; border-radius: 10px; margin-bottom: 12px; }
  .portal-tab { flex-direction: column; gap: 5px; padding: 11px 3px; min-height: 63px; border-radius: 6px; font-size: 9px; line-height: 1.5; }
  .portal-tab .icon { width: 17px; height: 17px; }
  .view-panel { border-radius: 11px; }
  .form-area { padding: 23px 20px; }
  .section-heading { gap: 11px; margin-bottom: 24px; align-items: flex-start; }
  .section-marker { width: 36px; height: 36px; border-radius: 9px; }
  .section-marker .icon { width: 18px; height: 18px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 10px; line-height: 1.7; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .field > label, .urgency-fieldset > legend { font-size: 11px; }
  input:not([type="radio"]), select, textarea { font-size: 16px; padding: 11px 12px; }
  input:not([type="radio"])::placeholder, textarea::placeholder { font-size: 13px; }
  select { padding-right: 32px; }
  .field-hint { font-size: 10px; }
  .urgency-options { gap: 7px; }
  .urgency-choice { padding: 11px 8px; }
  .urgency-option input { top: 13px; right: 7px; width: 11px; height: 11px; }
  .urgency-option-title { gap: 4px; font-size: 10px; padding-right: 10px; }
  .priority-dot { width: 5px; height: 5px; }
  .urgency-caption { font-size: 8px; line-height: 1.6; margin-top: 7px; }
  .form-submit-row { flex-direction: column; gap: 13px; align-items: stretch; margin-top: 20px; }
  .required-note { text-align: center; }
  .form-submit-row .button { min-height: 48px; font-size: 12px; }
  .privacy-note { margin-top: 18px; font-size: 9px; }
  .service-aside { display: block; padding: 27px 23px; }
  .service-aside h2 { font-size: 28px; }
  .service-aside h2 br { display: none; }
  .aside-intro { max-width: 330px; }
  .service-steps { margin-top: 26px; }
  .service-steps li { padding-bottom: 21px; }
  .service-steps h3 { font-size: 11px; }
  .service-steps p { font-size: 10px; }
  .aside-contact { margin-top: 2px; }
  .tracking-layout, .admin-gate { grid-template-columns: minmax(0, 1fr); padding: 26px 23px; gap: 29px; }
  .tracking-heading, .admin-gate-heading { max-width: none; }
  .tracking-heading .section-marker, .admin-gate-heading .section-marker { margin-bottom: 18px; }
  .tracking-heading h2, .admin-gate-heading h2 { font-size: 30px; }
  .tracking-heading > p:not(.eyebrow), .admin-gate-heading > p:not(.eyebrow) { font-size: 11px; }
  .privacy-caption, .access-note { margin-top: 19px; padding-top: 17px; }
  .login-form { border-top: 1px solid var(--line); padding-top: 26px; }
  .tracking-result { padding: 0 20px 25px; }
  .admin-dashboard { padding: 23px 19px; }
  .dashboard-heading { gap: 17px; }
  .dashboard-heading h2 { font-size: 27px; }
  .dashboard-actions { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 16px; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric dt { font-size: 10px; }
  .metric dd { font-size: 33px; }
  .filters { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .field-search { grid-column: auto; }
  .search-input > .icon { top: 16px; }
  .search-input input { padding-left: 38px; }
  .list-heading h3 { font-size: 22px; }
  .ticket-card { padding: 17px; }
  dl.ticket-detail { grid-template-columns: minmax(0, 1fr); }
  .ticket-actions > .button { flex: 1; }
  .ticket-meta { gap: 6px 12px; font-size: 10px; }
  .ticket-description { font-size: 11px; }
  .pagination { gap: 10px; }
  .pagination .button { padding-inline: 9px; }
  .pagination .icon { width: 14px; height: 14px; }
  .page-label { font-size: 9px; }
  .properties-form { align-items: stretch; flex-direction: column; }
  .summary-caption { font-size: 9px; gap: 7px; }
  .success-panel { padding: 20px 0; }
  .success-panel h2 { font-size: 31px; }
  .folio-receipt { padding: 21px 15px; }
  .folio-receipt strong { font-size: 21px; }
  .success-actions { flex-direction: column; }
  .success-actions .button { width: 100%; }
  .portal-signoff { padding: 24px 4px; gap: 7px; font-size: 9px; }
  .footer-inner, .privacy-details { width: calc(100% - 40px); font-size: 9px; }
  .footer-inner { padding-top: 23px; gap: 15px; }
  .footer-links { gap: 11px 17px; }
  .portal-dialog { padding: 25px 21px; }
  .portal-dialog h2 { font-size: 27px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .button { flex: 1; }
}

@media (max-width: 350px) {
  .form-area { padding: 22px 16px; }
  .section-heading .section-marker { display: none; }
  .urgency-options { grid-template-columns: minmax(0, 1fr); }
  .urgency-choice { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 27px 13px 11px; }
  .urgency-option input { right: 11px; top: 15px; }
  .urgency-option-title { padding-right: 0; }
  .urgency-caption { margin-top: 0; font-size: 9px; }
  .summary-caption { font-size: 0; }
  .summary-caption > span { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
