/* medicalneetpg: an Apple-style product page, matching engineering.icccbharat.org.
   Huge centred headlines, generous white space, a frosted sticky bar, rounded tiles. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --card: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --link: #0066cc;
  --bubble: #e9e9eb;
  --accent: #b64400;
  --lnav: rgba(255,255,255,.74);
  --stage: #000000;
  --stage-fg: #f5f5f7;
  --stage-muted: #86868b;
  --stage-input: #1d1d1f;
  --stage-line: #424245;
  --ok: #1a7f37;
  --err: #d70015;
  --shadow: 0 2px 8px rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.08);
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", "Nirmala UI", "Noto Sans", Roboto, "Helvetica Neue", sans-serif;
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", "Nirmala UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --alt: #101010; --card: #1d1d1f; --surface: #1d1d1f; --fg: #f5f5f7; --muted: #a1a1a6; --line: #424245;
    --link: #2997ff; --bubble: #3a3a3c; --accent: #ff9f0a; --lnav: rgba(22,22,23,.74);
    --stage: #161617; --stage-input: #2c2c2e; --ok: #3fb950; --err: #ff6961;
    --shadow: 0 2px 8px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --alt: #101010; --card: #1d1d1f; --surface: #1d1d1f; --fg: #f5f5f7; --muted: #a1a1a6; --line: #424245;
  --link: #2997ff; --bubble: #3a3a3c; --accent: #ff9f0a; --lnav: rgba(22,22,23,.74);
  --stage: #161617; --stage-input: #2c2c2e; --ok: #3fb950; --err: #ff6961;
  --shadow: 0 2px 8px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.4; }
.fine.center { margin-top: 24px; }

section { padding: 96px 0; }
section.alt { background: var(--alt); }
.big { font-size: clamp(36px, 6.2vw, 64px); line-height: 1.06; font-weight: 700; }
.mid { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; font-weight: 700; margin: 72px 0 28px; }
.sub { font-size: clamp(19px, 2.4vw, 28px); line-height: 1.2; color: var(--muted); margin: 14px auto 0; max-width: 680px; font-weight: 500; letter-spacing: -0.015em; }
.gap-top { margin-top: 110px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 17px; margin-bottom: 10px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; border: 0; border-radius: 980px; padding: 11px 22px; font-size: 17px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #0077ed; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.more { font-size: 19px; color: var(--link); }
.link-btn { background: none; border: 0; padding: 0 2px; color: var(--link); font-size: 13px; cursor: pointer; }
.round { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.round:hover { background: var(--line); }

/* Global nav */
.gnav { position: sticky; top: 0; z-index: 50; background: var(--lnav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.gnav-in { max-width: 1180px; margin: 0 auto; height: 56px; padding: 0 22px; display: flex; align-items: center; gap: 20px; }
.logo { font-family: var(--f-mono); font-size: 19px; color: var(--fg); letter-spacing: -0.03em; white-space: nowrap; }
.logo b { font-weight: 700; }
.logo:hover { text-decoration: none; }
.links { flex: 1; display: flex; justify-content: center; gap: 22px; }
.links a { color: var(--fg); opacity: .8; font-size: 13px; white-space: nowrap; }
.links a:hover { opacity: 1; text-decoration: none; }
.gnav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.theme { display: flex; background: var(--card); border-radius: 980px; padding: 3px; }
.theme button { width: 28px; height: 24px; border: 0; background: none; border-radius: 980px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.theme button svg { width: 14px; height: 14px; }
.theme button[aria-checked="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pill { background: var(--blue); color: #fff; font-size: 13px; padding: 5px 13px; border-radius: 980px; white-space: nowrap; }
.pill:hover { text-decoration: none; background: #0077ed; }
.menu-btn { display: none; background: none; border: 0; font-size: 14px; cursor: pointer; padding: 6px 2px; }
.mnav { display: flex; flex-direction: column; padding: 4px 22px 16px; }
.mnav a { color: var(--fg); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
@media (max-width: 1000px) {
  .links { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 520px) {
  .pill { display: none; }
}
@media (min-width: 1001px) { .mnav { display: none !important; } }

/* Hero */
.hero { max-width: 1040px; margin: 0 auto; padding: 56px 22px 80px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 15px; margin-bottom: 22px; color: var(--fg); }
.new { color: var(--accent); font-weight: 600; margin-right: 4px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.lede { font-size: clamp(21px, 2.5vw, 28px); line-height: 1.2; margin-top: 22px; letter-spacing: -0.015em; font-weight: 500; }
.cta-row { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
}

/* PG Pal */
.pal { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 600px; max-height: 78vh; min-height: 460px; overflow: hidden; }
.pal-head { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); gap: 1px; }
.pal-head strong { font-size: 14px; margin-top: 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(#a1a1a6, #6e6e73); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.pal-reset { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.pal-log { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg-b { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.38; overflow-wrap: anywhere; animation: pop .18s ease-out; }
.msg-b.bot { background: var(--bubble); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg-b.me { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg-b a { text-decoration: underline; }
.msg-b ul { margin: 6px 0 0; padding-left: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pal-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 6px 14px 4px; }
.pal-chips button { border: 1px solid var(--line); background: var(--surface); color: var(--link); border-radius: 980px; padding: 7px 15px; font-size: 15px; cursor: pointer; }
.pal-chips button:hover { border-color: var(--link); }
.pal-input { display: flex; gap: 8px; padding: 10px 14px 14px; }
.pal-input input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 980px; padding: 10px 16px; font-size: 16px; }
.pal-input button { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pal-input button svg { width: 16px; height: 16px; }
.pal-wrap .fine.center { margin-top: 18px; font-size: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.steps .n { display: block; font-size: 56px; font-weight: 600; color: var(--line); line-height: 1; margin-bottom: 18px; font-family: var(--f-display); }
.steps h3 { font-size: 21px; line-height: 1.15; margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Stories gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px max(22px, calc((100vw - 980px) / 2)) 8px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.story { flex: none; width: min(420px, 82vw); background: var(--card); border-radius: 28px; padding: 34px; scroll-snap-align: center; display: flex; flex-direction: column; }
.story .kicker { font-size: 15px; }
.story blockquote { margin: 0 0 22px; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; flex: 1; }
.story cite { font-style: normal; font-weight: 600; }
.story .muted { font-size: 15px; }
.gallery-ctl { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

/* Tiles */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.tile { background: var(--card); border-radius: 28px; padding: 40px 44px; display: flex; flex-direction: column; }
section.alt .tile { background: var(--surface); }
.tile h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; margin-bottom: 12px; }
.tile .more { margin-top: auto; padding-top: 22px; }
.tile.dark { background: #000; color: #f5f5f7; }
.tile.dark .muted { color: #a1a1a6; }
.tile.dark .more { color: #2997ff; }
:root[data-theme="dark"] .tile.dark { background: #1d1d1f; border: 1px solid #424245; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile.dark { border: 1px solid #424245; } }
.tile.wide { margin-top: 20px; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.list { padding-left: 20px; margin: 10px 0 0; }
.list li { margin: 6px 0; }
.list.num li { margin: 12px 0; }
.rows { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: flex; justify-content: space-between; padding: 12px 0; color: var(--fg); }
.rows a:hover { color: var(--link); text-decoration: none; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .tile { padding: 30px 26px; }
  .tile.wide { flex-direction: column; align-items: flex-start; }
}

/* State portals */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.portal { background: var(--surface); border-radius: 18px; padding: 18px 20px; color: var(--fg); display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; }
.portal:hover { text-decoration: none; border-color: var(--line); }
.portal b { font-size: 17px; }
.portal span { color: var(--muted); font-size: 14px; }
.portal i { font-style: normal; color: var(--link); font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }

/* Notices */
.filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 44px 0 24px; }
.filter button { border: 1px solid var(--line); background: var(--bg); border-radius: 980px; padding: 6px 15px; font-size: 14px; cursor: pointer; }
.filter button[aria-selected="true"], .filter button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.notices { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.notices li { border-bottom: 1px solid var(--line); }
.notices a { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: baseline; padding: 16px 4px; color: var(--fg); }
.notices a:hover { text-decoration: none; }
.notices a:hover .t { color: var(--link); }
.notices time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.notices .st { color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) {
  .notices a { grid-template-columns: 1fr; gap: 2px; }
  .notices .st { order: -1; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.stat { background: var(--surface); border-radius: 22px; padding: 26px 24px; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; display: block; margin-top: 8px; }
.stat.hl { background: var(--blue); color: #fff; }
.stat.hl span { color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Quota tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 44px auto 32px; background: var(--surface); border-radius: 980px; padding: 4px; width: fit-content; max-width: 100%; }
.tabs button { border: 0; background: none; border-radius: 980px; padding: 8px 18px; font-size: 15px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 600px) { .tabs { border-radius: 20px; } }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel-copy { padding: 8px 8px 0; }
.panel-copy h3 { font-size: 28px; margin-bottom: 10px; }
.panel-copy p { margin-top: 8px; }
.note { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--surface); font-size: 15px; }
.note p { color: var(--muted); margin-top: 4px; }
@media (max-width: 820px) { .panel { grid-template-columns: 1fr; } }

/* Forms */
.lead { background: var(--surface); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.lead h3 { font-size: 22px; margin-bottom: 4px; }
.lead label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.lead input:not([type=checkbox]), .lead select, .lead textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 14px; font-size: 16px; color: var(--fg); width: 100%; min-width: 0; }
.lead textarea { resize: vertical; }
.lead .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead .check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; }
.lead .check input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.lead .btn { align-self: flex-start; }
.lead [aria-invalid="true"] { border-color: var(--err) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { font-size: 14px; min-height: 1em; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--err); }
@media (max-width: 480px) { .lead { padding: 24px 20px; } .lead .two { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-size: 19px; font-weight: 600; position: relative; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Stage (call back) */
.stage { background: var(--stage); color: var(--stage-fg); }
.stage .sub { color: var(--stage-muted); }
.callback { background: none; box-shadow: none; padding: 0; margin-top: 40px; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
.callback input:not(.hp) { background: var(--stage-input) !important; border-color: var(--stage-line) !important; color: var(--stage-fg) !important; border-radius: 980px !important; width: 230px !important; flex: 1 1 200px; max-width: 280px; }
.callback .btn { align-self: center; }
.callback .msg { flex-basis: 100%; }
.stage .msg.ok { color: #3fb950; }
.stage .msg.bad { color: #ff6961; }

/* Contact */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.cards3 .tile { padding: 40px; }
.cards3 h3 { font-size: 21px; margin-bottom: 8px; }
.cards3 .phone { font-weight: 600; margin-bottom: 20px; }
.cards3 .phone a { color: var(--fg); }
.cards3 address { font-style: normal; line-height: 1.5; }
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 0 0 100px; }
.foot .wrap { border-top: 1px solid var(--line); padding-top: 18px; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.foot-row nav { display: flex; flex-wrap: wrap; }
.foot-row nav a { color: var(--fg); padding: 0 10px; border-left: 1px solid var(--line); }
.foot-row nav a:first-child { border-left: 0; padding-left: 0; }

/* Mobile dock */
.dock { display: none; }
@media (max-width: 700px) {
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--lnav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--line); border-radius: 980px; box-shadow: var(--shadow); overflow: hidden; }
  .dock a { text-align: center; padding: 13px 0; font-size: 15px; font-weight: 500; }
  .dock a + a { border-left: 1px solid var(--line); }
  section { padding: 72px 0; }
}

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--fg); color: var(--bg); padding: 9px 18px; border-radius: 980px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* PG Pal, AI mode */
.pal-status { color: var(--muted); font-style: italic; }
.msg-b.bot p + p, .msg-b.bot p + ul, .msg-b.bot ul + p, .msg-b.bot p + ol, .msg-b.bot ol + p { margin-top: 8px; }
.msg-b ol { margin: 6px 0 0; padding-left: 20px; }
.pal-sources { margin-top: 8px; }
.pal-sources a { color: inherit; }
.pal-cb form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pal-cb input { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; font-size: 16px; color: var(--fg); min-width: 0; }
.pal-cb .btn { align-self: flex-start; padding: 8px 18px; font-size: 15px; }
.pal-cb .fine { margin-top: 8px; }

/* PG Pal everywhere: after the first section it becomes a button at the bottom right,
   and opens as a floating panel holding the same conversation. */
.pal-min { display: none; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--card); color: var(--fg); cursor: pointer; place-items: center; }
.pal-min svg { width: 16px; height: 16px; }
.pal-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 1px solid var(--line); border-radius: 980px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: 15px; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none; transition: opacity .2s, transform .2s; }
.pal-fab .avatar { width: 40px; height: 40px; background: linear-gradient(#2997ff, #0071e3); }
.pal-fab:hover { border-color: var(--link); }
body.pal-away:not(.pal-open) .pal-fab { opacity: 1; transform: none; pointer-events: auto; }
.pal-wrap.floating { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 40px)); z-index: 55; visibility: hidden; opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.pal-wrap.floating.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.pal-wrap.floating .pal { height: min(620px, calc(100vh - 100px)); max-height: none; min-height: 0; }
.pal-wrap.floating .pal-min { display: grid; }
.pal-wrap.floating > .fine { display: none; }
@media (max-width: 700px) {
  .pal-fab { display: none; } /* the bottom bar's PG Pal button opens the panel on phones */
  .pal-wrap.floating { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .pal-wrap.floating .pal { height: calc(100vh - 16px - env(safe-area-inset-bottom, 0px)); height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)); border-radius: 22px; }
  body.pal-open .dock { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pal-fab, .pal-wrap.floating { transition: none; } }

/* Notice board: Counselling / Exam tabs above the state filter */
.notice-tabs { background: var(--card); margin: 40px auto 0; }
.notice-tabs + .filter { margin-top: 20px; }
