:root {
  color-scheme: light;
  font-family: "Avenir Next", "Trebuchet MS", system-ui, "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif;
  color: #241836;
  background: #f8f6fc;
  --ink: #241836;
  --muted: #625970;
  --violet: #633bd0;
  --violet-deep: #4d26ab;
  --border: #e6dfee;
  --card: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--violet-deep); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #744ce2; outline-offset: 3px; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.shell { max-width: 1112px; width: calc(100% - 48px); margin-inline: auto; }
.topbar .shell { min-height: 70px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.27rem; font-weight: 850; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: .6rem; }
.brand img { display: block; height: 39px; width: 39px; }
.brand b { color: var(--violet); font-weight: inherit; }
.portal-main { padding-block: 36px 60px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5.1vw, 3.4rem); font-weight: 860; }
h2 { font-size: 1.35rem; }
p { margin-block: .7em; }
.muted { color: var(--muted); line-height: 1.55; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 21px; }
.button, button { border: 1px solid transparent; padding: .65rem 1rem; border-radius: 10px; background: var(--violet); color: #fff; font-weight: 730; }
.button { display: inline-block; text-decoration: none; }
button:disabled { cursor: default; opacity: .55; }
.button.secondary, button.secondary { color: var(--violet-deep); background: #f1ebff; border-color: #e8dfff; }
.button.subtle, button.subtle { color: var(--violet-deep); background: transparent; border-color: var(--border); }
.button:hover, button:hover:not(:disabled) { filter: brightness(.95); }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #cec4dc; border-radius: 9px; padding: .55rem .65rem; color: var(--ink); background: #fff; }
label { display: grid; gap: .35rem; font-weight: 680; }
textarea { resize: vertical; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.form-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
.section-stack { display: grid; gap: 1rem; }
.status { color: var(--violet-deep); min-height: 1.45em; font-weight: 670; }
.status.error { color: #943354; }
@media (max-width: 660px) {
  .shell { width: calc(100% - 28px); }
  .topbar .shell { min-height: 62px; }
  .portal-main { padding-block: 22px 35px; }
  .panel { padding: 15px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
}
