/* app.intex.university: the few things the portal adds to site/style.css, which it serves beside this file.
 * Its text keeps the colour pairs site/style.css declares and tools/site/check measures.
 */
.account { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.25rem; margin: 0 0 1.5rem; }
.account dt { color: var(--muted); }
.account dd { margin: 0; overflow-wrap: anywhere; }

.errors { text-align: left; max-width: 34rem; margin: 0 auto 1.25rem; padding-left: 1.25rem; }
.errors li { margin: 0.3rem 0; }

.closing form.actions { margin-top: 1.5rem; }
.closing p.fine { font-size: 0.92rem; max-width: 34rem; margin: 1.4rem auto 0; }
.closing .kicker + h1 { margin-top: 0.5rem; }
.field-error { margin-top: 0.4rem; }

.notice { margin: 0 0 1.4rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--pass); background: #eef6f1; color: var(--ink); border-radius: 4px; }
.form.stacked { margin-top: 1.2rem; }

/* the documents page: the drop zone, the list as each count arrives, the running total */
.docs-grid { grid-template-columns: 1.45fr 0.75fr; }
.docs { padding: clamp(1.6rem, 3.5vw, 2.4rem); }
.drop { display: grid; justify-items: center; text-align: center; gap: 0.35rem; padding: 2.2rem 1.25rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--mist); transition: border-color 0.15s ease, background 0.15s ease; }
.drop.over { border-color: var(--focus); background: var(--sky-50); }
.drop[data-busy] { opacity: 0.75; }
.drop-mark { width: 2rem; height: 2rem; color: var(--ink-2); margin-bottom: 0.3rem; }
.drop-title { margin: 0; font: 400 1.35rem/1.25 var(--serif); color: var(--ink); }
.drop-hint { margin: 0; max-width: 30rem; color: var(--muted); font-size: 0.95rem; }
.drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0.9rem 0 0; }
.progress { height: 4px; margin: 1rem 0 0; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--ink); transition: width 0.2s ease; }
.upload-status { margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
.upload-status:empty { display: none; }

.entry-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.entry { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
.entry:first-child { border-top: 1px solid var(--hairline); }
.entry-text { display: grid; gap: 0.15rem; min-width: 0; }
.entry-name { font-weight: 600; overflow-wrap: anywhere; }
.entry-meta { color: var(--ink-2); font-size: 0.93rem; }
.entry-counting .entry-meta::after { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.5em; vertical-align: -0.1em; border: 2px solid var(--line-strong); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
.entry-attention .entry-meta { color: var(--danger); }
.entry-flag { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.entry-remove { flex: none; font: inherit; font-size: 0.88rem; color: var(--link); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.entry-remove:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .entry-counting .entry-meta::after { animation: none; } .progress-bar { transition: none; } }

.total { margin-top: 1.4rem; padding-top: 1.2rem; }
.quote { margin: 0 0 1.2rem; }
.quote > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; color: var(--ink-2); }
.quote dt, .quote dd { margin: 0; }
.quote dd { font-variant-numeric: tabular-nums; }
.quote .quote-total { margin-top: 0.4rem; padding-top: 0.7rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.total .btn { width: 100%; }
.btn.is-waiting { background: var(--white); color: var(--ink-2); border-color: var(--line-strong); cursor: progress; }
.total .fine { text-align: center; }

.history { margin-top: 2rem; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--hairline); font-size: 0.95rem; }
.history-status { color: var(--muted); }

/* checkout and billing */
.methods, .plan-box { border: 0; margin: 0 0 1.2rem; padding: 0; min-width: 0; }
.method, .plan-choice { position: relative; margin-bottom: 0.6rem; }
.method input, .plan-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.method label, .plan-choice label { display: grid; gap: 0.15rem; padding: 0.9rem 1rem 0.9rem 2.6rem; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; background: var(--white); transition: border-color 0.15s ease, background 0.15s ease; }
.method label::before, .plan-choice label::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1rem; height: 1rem; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--white); }
.method input:checked + label, .plan-choice input:checked + label { border-color: var(--ink); background: var(--mist); }
.method input:checked + label::before, .plan-choice input:checked + label::before { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--white); background: var(--ink); }
.method input:focus-visible + label, .plan-choice input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.method label span, .plan-choice label span { color: var(--ink-2); font-size: 0.93rem; }
.plan-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.plan-choices .plan-choice { margin: 0; }
.consent-row { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.6rem; margin-top: 0.9rem; font-size: 0.92rem; color: var(--ink-2); }
.consent-row input { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; accent-color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.card-box .label { font-weight: 600; font-size: 0.95rem; }
.card-frame { min-height: 89px; }
.summary-docs { list-style: none; margin: 1.2rem 0 0; padding: 0; font-size: 0.93rem; }
.summary-docs li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.summary-docs li span:first-child { overflow-wrap: anywhere; }
.schedule { width: 100%; border-collapse: collapse; margin: 0.4rem 0 0.6rem; font-size: 0.93rem; }
.schedule th, .schedule td { text-align: left; padding: 0.55rem 0.4rem 0.55rem 0; border-bottom: 1px solid var(--hairline); }
.schedule thead th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.schedule td { font-variant-numeric: tabular-nums; }
.schedule .state-paid { color: var(--pass); font-weight: 600; }
.schedule .state-failed { color: var(--danger); font-weight: 600; }
.plan-block + .plan-block { margin-top: 1.6rem; }
.card-now { font-weight: 600; margin: 0 0 1rem; }
.page-head .btn { margin-top: 0.4rem; }

@media (max-width: 860px) {
	.docs-grid { grid-template-columns: 1fr; }
	.plan-choices { grid-template-columns: 1fr; }
}
[hidden] { display: none !important; }
.aside .summary-docs li { display: flex; grid-template-columns: none; padding: 0.45rem 0; border-bottom: 1px solid var(--hairline); }
.aside .summary-docs li::before { content: none; }
.review-note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--hairline); }
.notice.test-mode { border-left-color: var(--danger); background: #fdf3f3; margin-top: 1.2rem; }

/* a second heading inside an aside, as on the sign-in page */
.aside .kicker.spaced-top { margin-top: 1.8rem; }

/* the referral panel in the account aside */
.refer { margin: 1.6rem 0 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--hairline); }
.refer p { color: var(--ink-2); }
.refer-link { display: flex; gap: 0.5rem; margin: 0.8rem 0 0.4rem; }
.refer-link input { flex: 1; min-width: 0; font: 0.88rem/1.4 var(--mono); color: var(--ink); padding: 0.55rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--mist); }

/* the checkout choice to delete files on delivery */
.keep-row { padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 6px; background: var(--mist); margin: 1.1rem 0 0.4rem; }
.keep-row b { color: var(--ink); font-weight: 600; }

/* sign-in: one form, the password tucked away until asked for */
.signin .pw { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline); }
.signin .pw summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--link); display: inline-flex; align-items: center; gap: 0.4rem; }
.signin .pw summary::-webkit-details-marker { display: none; }
.signin .pw summary::after { content: "\25BE"; font-size: 0.8em; transition: transform 0.15s ease; }
.signin .pw[open] summary::after { transform: rotate(180deg); }
.signin .pw[open] summary { margin-bottom: 1rem; }
.signin .pw .btn { width: 100%; }

/* the account panel: each label above its value, so long addresses and notes read cleanly in a narrow column */
.aside .account { grid-template-columns: minmax(0, 1fr); gap: 0; }
.aside .account dt { font: 600 0.7rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.95rem; }
.aside .account dt:first-child { margin-top: 0; }
.aside .account dd { margin: 0.25rem 0 0; color: var(--ink); }
/* a section inside the aside is not a page section: none of its page spacing */
.aside section.refer { padding: 1.4rem 0 0; margin: 1.4rem 0 1.4rem; }
.refer-link { flex-direction: column; align-items: stretch; }
.refer-link .btn { align-self: flex-start; }
/* short pages keep the footer at the foot of the window */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
