/* ===== Fonts (SAP "72" + theme) ===== */
@font-face { font-family: "72"; src: url(assets/fonts/72-Regular.woff2) format("woff2"); font-weight: 400; }
@font-face { font-family: "72"; src: url(assets/fonts/72-Bold.woff2) format("woff2"); font-weight: 700; }
@font-face { font-family: "72-Bold"; src: url(assets/fonts/72-Bold.woff2) format("woff2"); }
@font-face { font-family: "72-Semibold"; src: url(assets/fonts/72-Semibold.woff2) format("woff2"); }
@font-face { font-family: "72-SemiboldDuplex"; src: url(assets/fonts/72-SemiboldDuplex.woff2) format("woff2"); }
@font-face { font-family: "72-Black"; src: url(assets/fonts/72-Black.woff2) format("woff2"); }

:root {
  --brand: #27367b;
  --brand-light: #c8cfee;
  --text: #131e29;
  --text-2: #556b82;
  --link: #27367b;
  --info: #0057d2;
  --info-bg: #e1f4ff;
  --page-bg: #f5f6f7;
  --shell-bg: #eff1f2;
  --border: #e5e5e5;
  --border-2: #d9d9d9;
  --field-border: #556b82;
  --hover: #eaecee;
  --card-shadow: 0 0 0 1px rgba(34, 53, 72, .1), 0 2px 8px 0 rgba(34, 53, 72, .1);
  --chevron: #758ca4;
  --negative: #aa0808;
  --critical: #e76500;
  --font: "72", "72full", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 16px; color: var(--text);
  background: #fff; -webkit-font-smoothing: antialiased; overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }
svg.i { width: 1rem; height: 1rem; fill: currentColor; flex: none; display: block; }

/* ===== Shell background ===== */
.shell-bg {
  position: fixed; inset: 0; z-index: 0;
  background: var(--shell-bg) url(assets/background.jpeg) 50% 50% / cover no-repeat;
  opacity: .4;
}

/* ===== Shell header ===== */
.shell-header {
  position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 20;
  background: #fff; padding: 0 48px 0 44px; display: flex; align-items: center; gap: 0;
}
.sh-btn {
  width: 36px; height: 36px; border-radius: 6px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); cursor: pointer; padding: 0;
}
.sh-btn:hover { background: var(--hover); }
.sh-btn.back { margin-left: 8px; margin-right: 12px; }
.sh-logo { display: flex; align-items: center; height: 36px; padding: 0 5px; border-radius: 6px; margin-left: 15px; }
.has-back .sh-logo { margin-left: 0; }
.sh-logo img { height: 54px; width: auto; display: block; margin-top: -2px; }
.sh-title {
  margin-left: 12px; height: 36px; padding: 0 10px; border-radius: 6px;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--text);
}
.sh-title:hover { background: var(--hover); }
.sh-title.open, .sh-title:focus-visible { border: 2px solid var(--brand); outline: none; }
.sh-title svg { width: 12px; height: 12px; }
.sh-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.sh-search { display: flex; align-items: center; gap: 4px; }
.sh-sfield { display: none; position: relative; }
.sh-search.open .sh-sfield { display: block; }
.sh-search.open #searchBtn { display: none; }
.sh-sfield input {
  width: 560px; height: 26px; border-radius: 13px; border: 1px solid var(--brand); box-shadow: 0 0 0 1px var(--brand);
  padding: 0 36px 0 14px; font: italic 14px var(--font); color: var(--text); outline: 0; background: #fff;
}
.sh-sfield input:not(:placeholder-shown) { font-style: normal; }
.sh-sfield #sIcon { position: absolute; right: 10px; top: 5px; color: var(--text); }
.sh-sfield #sIcon svg { width: 16px; height: 16px; }
.search-dim { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; background: rgba(34,53,72,.2); z-index: 15; display: none; }
.search-dim.open { display: block; }
.notif-tabs { display: flex; gap: 6px; padding: 10px 12px 8px; border-bottom: 1px solid var(--border-2); }
.notif-tabs a { font-family: "72-Bold", var(--font); font-size: 14px; color: var(--text); padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.notif-tabs a.on { color: var(--brand); outline: 1px solid var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.notif-empty { padding: 8px 16px 14px; text-align: center; font-size: 14px; }
.user-pop { min-width: 0 !important; width: 175px; padding-bottom: 6px; }
.user-pop .up-name { font-family: "72-Bold", var(--font); font-size: 16px; padding: 18px 16px 10px; }
.up-list { padding: 0 8px; }
.up-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; font-size: 14px; cursor: pointer; border-radius: 4px; border: 1px solid transparent; }
.up-item:hover { background: var(--hover); }
.up-item:first-child { border-color: var(--text); }
.up-item svg { width: 14px; height: 14px; color: var(--text-2); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #d1efff; color: #0057d2;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; margin-left: -4px;
}
.avatar:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d1efff; }

/* ===== Popovers ===== */
.popover {
  position: fixed; z-index: 50; background: #fff; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(34,53,72,.15), 0 10px 30px 0 rgba(34,53,72,.25);
  display: none; min-width: 320px; overflow: hidden;
}
.popover.open { display: block; }
.pop-head { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 44px; font-size: 16px; font-weight: 700; }
.pop-head svg { width: 14px; height: 14px; }
.pop-list { border-top: 1px solid var(--border); padding: 6px 8px; }
.pop-item {
  display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: 8px;
  font-size: 14px; cursor: pointer; border: 1px solid transparent;
}
.pop-item:hover { background: var(--hover); }
.pop-item.sel { border: 2px solid var(--brand); }
.pop-foot { border-top: 1px solid var(--border); height: 36px; display: flex; align-items: center; justify-content: center; }
.pop-foot a { color: var(--link); font-size: 14px; font-weight: 700; }
.pop-empty { padding: 32px 16px; text-align: center; color: var(--text-2); font-size: 14px; }

/* ===== Main scroll area ===== */
.main { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; z-index: 1; }
.view { min-height: 100%; }
.dp, .lb, .op { min-height: calc(100vh - 52px) !important; }

/* ===== Overview (home) ===== */
.ovp { padding: 26px 8px 40px; display: flex; gap: 16px; width: 1376px; margin: 0 auto; }
.ovp-col { display: flex; flex-direction: column; gap: 24px; width: 328px; flex: none; }
.ovp-left { display: flex; flex-direction: column; gap: 24px; width: 672px; flex: none; }
.ovp-left .row { display: flex; gap: 16px; align-items: flex-start; }
.card {
  position: relative; will-change: transform;
  background: #fff; border-radius: 12px; box-shadow: var(--card-shadow);
  width: 328px; overflow: hidden; border: 1px solid transparent;
}
.card.wide { width: 672px; }
.card-head { height: 53px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px 0 16px; }
.card-head .t { font-size: 18px; }
.card-head .c { font-size: 14px; }
.links { border-top: 1px solid var(--border-2); }
.links.min { min-height: 196px; }
.link-item {
  height: 80px; display: flex; align-items: center; padding: 0 0 0 16px; cursor: pointer;
  border-bottom: 1px solid var(--border); background: #fff;
}
.link-item:hover { background: var(--hover); }
.link-item:active { background: #dee2e5; }
.link-item img { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover; }
.link-item .lbl { flex: 1; margin-left: 12px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-item .chev { width: 44px; display: flex; justify-content: center; color: var(--chevron); }
.link-item .chev svg { width: 12px; height: 12px; }

.course { padding: 22px 8px 16px 24px; border-top: 1px solid var(--border); position: relative; height: 125px; cursor: pointer; }
.course:hover { background: var(--hover); }
.course .ct { font-family: "72-Bold", var(--font); font-size: 16px; line-height: 18px; margin-top: 3px; }
.course .cu { position: absolute; right: 8px; top: 24px; text-align: right; }
.course .cu b { font-family: "72-Bold", var(--font); font-weight: 400; font-size: 20px; line-height: 22px; display: block; }
.course .cu span { font-size: 14px; line-height: 16px; display: block; }
.course .cc { font-size: 14px; color: var(--text-2); margin-top: 28px; }
.course .cq { font-size: 14px; color: var(--text-2); margin-top: 9px; }

.contact { padding: 13px 16px 20px; }
.contact .top { display: flex; gap: 10px; align-items: center; }
.contact .ph {
  width: 56px; height: 56px; border-radius: 8px; border: 2px solid var(--brand); padding: 2px;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.contact .ph .inner { width: 100%; height: 100%; border-radius: 5px; background: #e8ebee; color: #8396a8; display: flex; align-items: center; justify-content: center; }
.contact .ph svg { width: 26px; height: 26px; }
.contact .nm { font-size: 18px; font-weight: 700; color: var(--link); text-decoration: underline; }
.contact .id { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.contact .clb { font-size: 14px; color: var(--text-2); margin-top: 18px; }
.contact .clb + * { margin-top: 3px; }
.contact .em { font-size: 14px; font-weight: 700; color: var(--link); text-decoration: underline; display: inline-block; }
.contact .ad { font-size: 14px; line-height: 16px; }

.cal { padding: 0 24px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-top: 28px; }
.cal-nav button { height: 32px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--brand); font-family: "72-Bold", var(--font); font-size: 14px; }
.cal-nav button:hover { background: var(--hover); }
.cal-nav .arrow { width: 32px; display: flex; align-items: center; justify-content: center; }
.cal-nav .arrow svg { width: 14px; height: 14px; }
.cal-nav .mid { display: flex; }
.cal-nav .mid button { width: 92px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 37px); margin-top: 2px; }
.cal-grid .wd { text-align: center; font-size: 12px; color: var(--text-2); height: 32px; line-height: 30px; }
.cal-grid .d {
  height: 32px; border: 1px solid #fff; border-radius: 8px; position: relative; cursor: pointer;
  text-align: center; font-size: 14px; line-height: 30px; overflow: hidden;
}
.cal-grid .d:hover { background: var(--hover); }
.cal-grid .d.we { background: #ebebeb; }
.cal-grid .d.oth { color: var(--text-2); }
.cal-grid .d.today { box-shadow: inset 0 0 0 2px #a100c2; border-color: #a100c2; }
.cal-grid .d .bar { position: absolute; left: 3px; right: 3px; bottom: 0; height: 4px; border-radius: 2px 2px 0 0; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 26px 24px 0; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.legend i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.appts { margin-top: 24px; padding: 0 16px; }
.appt { padding: 12px 0 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.appt:last-child { border-bottom: 0; }
.appt .tm { line-height: 20px; }
.appt .tt { margin-top: 10px; }
.appt .loc { margin-top: 10px; color: var(--text-2); }
.appt .loc a { color: var(--link); }
.nocls { display: flex; flex-direction: column; align-items: center; padding: 40px 16px 20px; }
.nocls .ill { width: 128px; height: 128px; border-radius: 50%; background: #d1efff; display: flex; align-items: center; justify-content: center; color: #1b90ff; }
.nocls .ill svg { width: 64px; height: 64px; }
.nocls h4 { margin: 14px 0 4px; font-family: "72-Bold", var(--font); font-weight: 400; font-size: 16px; }
.nocls p { margin: 0; font-size: 14px; }
.card-foot { display: flex; justify-content: flex-end; padding: 8px 16px 16px; }

/* ===== Buttons ===== */
.btn {
  height: 26px; min-width: 26px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--brand); font-size: 14px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.emph { background: var(--brand); color: #fff; font-weight: 700; }
.btn.emph:hover { background: #1f2c63; }
.btn.def { border-color: #bcc3ca; background: #fff; font-weight: 700; color: var(--text); }
.btn.def:hover { background: var(--hover); }
.btn.cozy { height: 36px; padding: 0 12px; }
.btn.dis { opacity: .4; cursor: default; }
.btn.neg-dis { color: var(--negative); opacity: .4; cursor: default; }
.btn svg { width: 14px; height: 14px; }
.btn.icon { padding: 0; width: 26px; }
.seg { display: inline-flex; border: 1px solid #bcc3ca; border-radius: 8px; overflow: hidden; }
.seg button { height: 24px; min-width: 92px; border: 0; background: #fff; color: var(--brand); font-size: 14px; cursor: pointer; padding: 0 10px; }
.seg button + button { border-left: 1px solid #bcc3ca; }
.seg button.on { background: var(--brand-light); }
.seg button.dis { color: #a9b4be; cursor: default; }
.seg.icons button { min-width: 30px; padding: 0 7px; }
.seg.icons svg { width: 14px; height: 14px; fill: var(--brand); }

/* ===== Form fields (compact) ===== */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field label .req { color: #ba066c; font-weight: 700; margin-left: 2px; }
.inp {
  height: 26px; border: 0; border-radius: 4px; background: #fff;
  display: flex; align-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(85,107,129,.25), inset 0 -1px 0 #556b81;
}
.inp:hover { background: #fafcfe; }
.inp.focus { box-shadow: inset 0 0 0 2px var(--brand); }
.inp input, .inp select {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: 14px var(--font); color: var(--text); padding: 0 8px; appearance: none;
}
.inp input::placeholder { color: var(--text-2); font-style: italic; }
.inp .ib { width: 32px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
.inp .ib svg { width: 14px; height: 14px; }
.inp .ib:hover { background: var(--hover); }
.slider { height: 26px; display: flex; align-items: center; position: relative; padding: 0 2px; }
.slider .track { position: absolute; left: 10px; right: 10px; height: 4px; background: var(--brand); border-radius: 2px; }
.slider .ticks { position: absolute; left: 10px; right: 10px; display: flex; justify-content: space-between; }
.slider .ticks i { width: 1px; height: 8px; background: var(--brand); }
.slider .h { position: absolute; width: 24px; height: 18px; border: 1px solid #8a9ad8; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; color: var(--brand); }
.slider .h.l { left: 2px; } .slider .h.r { right: 2px; }

.chk { width: 16px; height: 16px; border: 1px solid var(--field-border); border-radius: 4px; background: #fff; display: inline-block; flex: none; cursor: pointer; position: relative; }
.chk.on { border-color: var(--brand); background: var(--brand); }
.chk.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk.ro { cursor: default; }

/* ===== Dynamic page / List report ===== */
.dp { min-height: 100%; background: var(--page-bg); display: flex; flex-direction: column; }
.dp-title { background: #fff; padding: 8px 48px; display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.dp-title h1 { margin: 0; font-family: "72-Black", var(--font); font-weight: 400; font-size: 20px; }
.dp-title h1.vm { display: flex; align-items: center; gap: 6px; color: var(--brand); cursor: pointer; }
.dp-title h1.vm svg { width: 12px; height: 12px; }
.dp-header { background: #fff; padding: 16px 48px; position: relative; box-shadow: 0 2px 2px rgba(34,53,72,.05), inset 0 -1px 0 #d9d9d9; }
.dp-header.collapsed { display: none; }
.dp-toggle { display: flex; justify-content: center; gap: 4px; position: relative; height: 0; z-index: 2; }
.dp-toggle::before { content: ""; position: absolute; left: 50%; top: 0; width: 240px; margin-left: -120px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2) 30%, var(--border-2) 70%, transparent); }
.dp-toggle button {
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 1px solid #bcc3ca; background: #fff;
  color: var(--brand); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; position: relative;
}
.dp-toggle button:hover { background: var(--hover); }
.dp-toggle svg { width: 10px; height: 10px; }
.dp-shadow { box-shadow: 0 2px 4px rgba(34,53,72,.08); position: relative; z-index: 1; }
.dp-content { padding: 16px 48px 32px; flex: 1; }
.dp-header.collapsed + .dp-toggle { margin-top: 0; }
.filterbar { display: grid; grid-template-columns: repeat(6, 213px); gap: 11px 16px; padding-top: 8px; }
.filterbar.four { grid-template-columns: repeat(4, 185px); gap: 10px 22px; padding-top: 0; }
.fb-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: -26px; }
.fb-actions .btn:not(.emph) { color: var(--brand); }
.btn, .seg button { font-family: "72-SemiboldDuplex", var(--font); }
.btn.emph, .btn.def { font-weight: 400; }
.vm-row { display: flex; align-items: center; gap: 6px; color: var(--brand); font-size: 14px; font-weight: 700; margin-bottom: 14px; cursor: pointer; }
.vm-row svg { width: 12px; height: 12px; }
.fb-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fb-search { width: 450px; }

.tbl-wrap { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); overflow: hidden; }
.tbl-toolbar { height: 44px; display: flex; align-items: center; padding: 0 8px 0 16px; gap: 8px; }
.tbl-toolbar h2 { margin: 0; font-size: 20px; font-weight: 400; font-family: "72-Bold", var(--font); }
.tbl-toolbar .sp { flex: 1; }
.tbl-toolbar .vm { display: flex; align-items: center; gap: 4px; color: var(--brand); font-size: 14px; font-weight: 700; cursor: pointer; }
.tbl-toolbar .vm svg { width: 12px; height: 12px; }
.tbl-toolbar .sep { width: 1px; height: 16px; background: var(--border-2); }
.exp { display: inline-flex; align-items: center; gap: 2px; color: #a9b4be; }
.exp svg { width: 14px; height: 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th {
  text-align: left; font-weight: 400; font-family: "72-SemiboldDuplex", var(--font); color: var(--text); height: 37px; padding: 0 8px; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-2); border-right: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff;
}
table.t th:last-child { border-right: 0; }
table.t td { height: 32px; padding: 0 8px; border-bottom: 1px solid var(--border); }
table.t td.empty { text-align: center; color: var(--text); height: 48px; }
table.t tr.alt td { background: #f5f6f7; }
table.t .chkcol { width: 40px; text-align: center; padding: 0; }
table.t .r { text-align: right; }
.grid-like table.t th { border-right: 1px solid var(--border); }

/* ===== Letterboxed apps (Appointment Times, Personal Details, Privacy, Bank) ===== */
.lb { width: 1280px; max-width: 100%; margin: 0 0 0 max(0px, calc((100vw - 1280px) / 2)); min-height: 100%; background: var(--page-bg); position: relative; display: flex; flex-direction: column; }
.lb-title { background: #fff; height: 40px; padding: 0 16px 0 4px; display: flex; align-items: center; font-family: "72-Bold", var(--font); font-size: 16px; border-bottom: 1px solid var(--border); }
.lb-filters { background: #fff; padding: 18px 16px 18px; display: flex; gap: 20px; border-bottom: 1px solid var(--border); box-shadow: 0 2px 4px rgba(34,53,72,.06); }
.lb-filters .field { width: 380px; }
.lb-footer { position: sticky; bottom: 0; margin-top: auto; height: 44px; background: #fff; box-shadow: 0 -1px 0 var(--border), 0 -2px 6px rgba(34,53,72,.06); display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 8px; }
.lb-footer .btn { font-weight: 700; }

.appt-cards { display: flex; gap: 42px; padding: 32px 16px; flex-wrap: wrap; }
.acard { width: 384px; background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 16px 20px 40px; }
.acard .h { display: flex; align-items: center; gap: 10px; font-family: "72-Bold", var(--font); font-size: 16px; }
.acard .h svg { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-family: "72-Bold", var(--font); color: #fff; margin: 20px 0 16px; }
.badge.neg { background: #d20a0a; }
.badge.crit { background: #e76500; }
.badge.pos { background: #188918; }
.acard .g { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.acard .kv { display: flex; gap: 10px; font-size: 14px; }
.acard .kv svg { width: 14px; height: 14px; margin-top: 1px; color: var(--text); }
.acard .kv .k { color: var(--text-2); }
.acard .kv .v { margin-top: 2px; line-height: 16px; }

/* ===== Object page (Academic History / Personal Details) ===== */
.op { min-height: 100%; background: var(--page-bg); }
.op.lbox { width: 1280px; max-width: 100%; margin: 0 0 0 max(0px, calc((100vw - 1280px) / 2)); }
.op-title {
  background: #fff; padding: 10px 48px 8px; display: flex; justify-content: space-between; align-items: flex-start;
  border: 2px solid transparent; position: sticky; top: 0; z-index: 5;
}
.op-title.focus { border-color: var(--brand); }
.op-title h1 { margin: 0; font-family: "72-Black", var(--font); font-weight: 400; font-size: 24px; line-height: 32px; }
.op-title .sub { font-size: 14px; margin-top: 6px; margin-bottom: 4px; }
.op-title .acts { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.op-title .acts .btn { font-size: 14px; }
.op-title .acts .btn svg { width: 14px; height: 14px; }
.op-head { background: #fff; padding: 12px 48px 32px; display: flex; gap: 32px; }
.op-head.collapsed { display: none; }
.op-photo { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--border-2); background: #e8ebee; color: #8396a8; display: flex; align-items: center; justify-content: center; flex: none; }
.op-photo svg { width: 64px; height: 64px; }
.op-photo.round { width: 80px; height: 80px; border-radius: 50%; }
.op-photo.round svg { width: 36px; height: 36px; }
.op-hcol h3 { margin: 0 0 12px; font-family: "72-Bold", var(--font); font-weight: 400; font-size: 16px; }
.op-hcol .kv { font-size: 14px; line-height: 19px; white-space: nowrap; }
.op-hcol .kv .k { color: var(--text-2); }
.op-hcol .kv a { color: var(--link); font-weight: 700; text-decoration: underline; }
.op-hcol .big { font-size: 20px; margin-top: 4px; }
.anchor {
  background: #fff; display: flex; gap: 0; padding: 0 32px; height: 44px; align-items: stretch;
  box-shadow: 0 1px 0 var(--border-2), 0 2px 4px rgba(34,53,72,.06); position: sticky; z-index: 4;
}
.anchor a { display: flex; align-items: center; padding: 0 16px; font-family: "72-Semibold", "72-Bold", var(--font); font-size: 16px; color: var(--text-2); cursor: pointer; position: relative; }
.anchor a:hover { color: var(--text); }
.anchor a.on { color: var(--brand); }
.anchor a.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; background: var(--brand); border-radius: 2px 2px 0 0; }
.anchor.caps a { font-size: 14px; text-transform: uppercase; letter-spacing: .2px; }
.op-sections { padding: 0 0 48px; }
.sect { margin: 16px 48px 0; }
.sect.boxed { border: 1px solid var(--border-2); background: #fff; border-radius: 0; }
.sect > h2 { margin: 0; height: 44px; display: flex; align-items: flex-end; padding-bottom: 4px; font-size: 20px; font-weight: 400; }
.sect.plain { background: transparent; }
.panel { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); }
.strip { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 16px; background: #e1f4ff; border: 1px solid #7bcfff; border-radius: 8px; font-size: 14px; color: var(--text); margin: 8px 0 12px; }
.strip svg { width: 14px; height: 14px; color: #0070f2; }
.subtabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-2); margin-bottom: 12px; }
.subtabs a { padding: 10px 16px 9px; font-family: "72-Bold", var(--font); font-size: 14px; color: var(--brand); position: relative; }
.subtabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.info-lbl { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: #e1f4ff; color: var(--info); font-family: "72-Bold", var(--font); font-size: 14px; line-height: 20px; }
.link-u { color: var(--link); font-weight: 700; text-decoration: underline; cursor: pointer; }
.booking { margin: 0 0 16px; }
.booking table.t th { border-right: 0; }
.op-head { padding-bottom: 44px !important; }
.booking .bh { display: flex; align-items: center; gap: 10px; height: 40px; }
.booking .bh .tt { font-family: "72-Bold", var(--font); font-size: 16px; flex: 1; }
.term { border: 1px solid var(--border-2); border-radius: 12px; background: #fff; padding: 12px 16px 16px; margin-bottom: 16px; min-height: 316px; }
.term .th { display: flex; justify-content: space-between; }
.term .th b { font-family: "72-Bold", var(--font); font-weight: 400; font-size: 16px; }
.term .th .dt { font-size: 14px; color: var(--text-2); text-align: right; line-height: 20px; }
.term .st { display: flex; align-items: center; gap: 4px; font-size: 14px; margin: 2px 0 6px; }
.term .st svg { width: 14px; height: 14px; }
.term table.t th { border-top: 0; border-right: 0; height: 26px; }
.term table.t td { height: 26px; }
.term table.t { margin-bottom: 0; }
.term .spacer { height: 0; }

/* Personal details */
.addr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; padding: 20px 32px 32px; }
.addr h4 { margin: 0 0 12px; font-family: "72-Bold", var(--font); font-weight: 400; font-size: 14px; }
.addr div { font-size: 14px; line-height: 24px; }
.sect-acts { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 0 4px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 40px; padding: 20px 32px; }
.form-grid .ro { font-size: 14px; min-height: 18px; }
.rp { border-bottom: 1px solid var(--border); position: relative; }
.rp .sect-acts { position: absolute; right: 16px; top: 8px; }
.para { font-size: 14px; line-height: 20px; padding: 0 32px; }
.para p { margin: 14px 0; }
.para a { color: var(--link); text-decoration: underline; font-weight: 700; }
.chk-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 0 32px 20px; }

/* Privacy */
.priv-intro { font-size: 14px; line-height: 18px; padding: 8px 32px 24px; }
.priv-intro p:first-child { margin-top: 16px; }
.priv-intro p { margin: 0 0 12px; }
.priv-box { margin: 0 32px 32px; background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); }
.priv-box h3 { margin: 0; padding: 14px 16px; font-family: "72-Bold", var(--font); font-weight: 400; font-size: 18px; border-bottom: 1px solid var(--border-2); }
.priv-item { padding: 8px 16px 10px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.priv-item:last-child { border-bottom: 0; }
.priv-item .h { display: flex; gap: 8px; align-items: center; color: var(--brand); font-family: "72-Bold", var(--font); }
.priv-item .h .chk { border-color: #a9b4be; }
.priv-item .d { margin: 4px 0 0 24px; line-height: 17px; }

/* Bank */
.bank { display: flex; flex: 1; background: #fff; }
.bank .mlist { width: 320px; border-right: 1px solid var(--border-2); display: flex; flex-direction: column; }
.bank .mh { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; font-family: "72-Bold", var(--font); font-size: 16px; border-bottom: 1px solid var(--border); }
.bank .mh .sp { flex: 1; }
.bank .mh .bx { width: 26px; height: 26px; border: 1px solid var(--brand); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--brand); cursor: pointer; }
.bank .mh .bx svg, .bank .mh .q svg { width: 14px; height: 14px; }
.bank .mh .q { color: var(--brand); cursor: pointer; }
.bank .none { font-size: 14px; text-align: center; padding: 12px; }
.bank .mfoot { margin-top: auto; height: 44px; display: flex; align-items: center; justify-content: flex-end; padding: 0 16px; border-top: 1px solid var(--border); }
.bank .detail { flex: 1; display: flex; flex-direction: column; background: var(--page-bg); }
.bank .dh { height: 40px; display: flex; align-items: center; padding: 0 6px; font-family: "72-Bold", var(--font); font-size: 16px; background: #fff; border-bottom: 1px solid var(--border); }
.bank .ill { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 60px; }
.bank .ill h2 { font-family: "72-Bold", var(--font); font-weight: 400; font-size: 32px; line-height: 38px; margin: 24px 0 10px; }
.bank .ill p { font-size: 14px; line-height: 18px; margin: 0; max-width: 470px; }
.bank .dfoot { height: 44px; background: #fff; border-top: 1px solid var(--border); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); background: rgba(34,53,72,.9); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 8px; z-index: 99; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

.card.lk { transition: box-shadow .2s; }

/* ===== Prank finale ===== */
#finale { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .5s; }
#finale.f-out { opacity: 0; }
#finale.f-503 { background: #f5f6f7; font-family: var(--font); color: var(--text); }
.f-box { width: 560px; background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 40px 48px; }
.f-code { font-family: "72-Black", var(--font); font-size: 72px; line-height: 1; color: var(--negative); }
.f-box h1 { font-family: "72-Bold", var(--font); font-weight: 400; font-size: 24px; margin: 12px 0 10px; }
.f-box p { font-size: 14px; line-height: 20px; color: var(--text-2); margin: 0 0 24px; }
.f-meta { font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 12px; }

#finale.f-rude { flex-direction: column; font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; animation: f-flash .28s steps(1) infinite; }
@keyframes f-flash { 0% { background: #ff00d4; } 25% { background: #fff200; } 50% { background: #00f0ff; } 75% { background: #39ff14; } }
.f-finger { font-size: 300px; line-height: 1; animation: f-spin .7s linear infinite, f-pulse .5s ease-in-out infinite alternate; filter: drop-shadow(0 12px 0 rgba(0,0,0,.35)); }
@keyframes f-spin { to { rotate: 360deg; } }
@keyframes f-pulse { from { scale: .8; } to { scale: 1.25; } }
.f-fu { font-size: 120px; font-weight: 900; color: #ff0000; -webkit-text-stroke: 4px #fff200; text-shadow: 6px 6px 0 #0000ff, 12px 12px 0 #000; letter-spacing: 4px; animation: f-blink .3s steps(1) infinite, f-wig .25s ease-in-out infinite alternate; }
@keyframes f-blink { 50% { color: #00ff2a; -webkit-text-stroke-color: #ff00d4; } }
@keyframes f-wig { from { transform: rotate(-4deg) scale(1); } to { transform: rotate(4deg) scale(1.1); } }
.f-mini { position: absolute; animation: f-spin 1s linear infinite; }
.f-marq { position: absolute; bottom: 0; left: 0; width: 100%; background: #000; color: #fff200; font-size: 34px; font-weight: 900; padding: 8px 0; }

#finale.f-welcome { background: #eff1f2; font-family: var(--font); color: var(--text); }
#finale.f-welcome::before { content: ""; position: absolute; inset: 0; background: url(assets/background.jpeg) 50% 50% / cover no-repeat; opacity: .4; }
.f-card { position: relative; width: 480px; background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 28px 40px 36px; text-align: center; animation: f-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes f-in { from { opacity: 0; transform: translateY(16px); } }
.f-card img { height: 72px; }
.f-card h1 { font-family: "72-Black", var(--font); font-weight: 400; font-size: 28px; margin: 8px 0 6px; }
.f-sub { font-size: 16px; color: var(--text-2); }
.f-load { height: 4px; background: #e5e5e5; border-radius: 2px; margin-top: 28px; overflow: hidden; }
.f-load i { display: block; height: 100%; width: 0; background: var(--brand); animation: f-bar 3.2s ease-in-out forwards; }
@keyframes f-bar { to { width: 100%; } }

/* ===== Message dialog (hold alert) ===== */
.dlg-block { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; animation: dlg-fade .15s ease-out; }
@keyframes dlg-fade { from { opacity: 0; } }
.dlg { width: 440px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(34,53,72,.15), 0 20px 80px 0 rgba(34,53,72,.3); overflow: hidden; animation: dlg-pop .2s cubic-bezier(.2,.8,.2,1); }
@keyframes dlg-pop { from { transform: scale(.94); opacity: 0; } }
.dlg-head { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-family: "72-Bold", var(--font); font-size: 16px; box-shadow: inset 0 -1px 0 var(--border-2), inset 0 -3px 0 -1px #e76500; border-bottom: 2px solid #e76500; }
.dlg-ic { color: #e76500; display: flex; }
.dlg-ic svg { width: 16px; height: 16px; }
.dlg-body { padding: 16px; font-size: 14px; line-height: 20px; }
.dlg-body p { margin: 0 0 12px; }
.dlg-hold { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 12px; background: #fff8d6; border: 1px solid #ffdf72; border-radius: 8px; }
.dlg-hold b { font-family: "72-Bold", var(--font); font-weight: 400; }
.dlg-hold span { color: var(--text-2); }
.dlg-note { color: var(--text-2); margin-bottom: 0 !important; }
.dlg-foot { height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 16px; border-top: 1px solid var(--border-2); }
.dlg-reason span { color: var(--text-2); }

/* ===== Messages from the administration ===== */
.sh-btn { position: relative; }
.bell-n { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #aa0808; color: #fff; font: 11px/16px "72-Bold", var(--font); text-align: center; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--hover); }
.notif .nt { font-family: "72-Bold", var(--font); font-size: 14px; }
.notif .nb { font-size: 14px; line-height: 18px; margin-top: 4px; }
.notif .nw { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.rude-foot { font-size: 14px; line-height: 18px; color: var(--text-2); padding: 12px 16px 0; margin: 0; }
.strip { height: auto; padding-top: 6px; padding-bottom: 6px; line-height: 18px; }

/* ===== Error dialogs from the administration ===== */
#errDlg { z-index: 70; }
.dlg-err .dlg-head { border-bottom-color: #aa0808; }
.dlg-err .dlg-ic { color: #aa0808; }
.err-from { font-family: "72-Bold", var(--font); font-size: 14px; margin-bottom: 6px; }
.err-code { font: 12px/16px Menlo, Consolas, monospace; color: var(--text-2); background: #f5f6f7; border-radius: 4px; padding: 6px 8px; }
.f-from { font-size: 44px; font-weight: 900; color: #fff; -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; letter-spacing: 2px; text-align: center; margin-bottom: 10px; animation: f-wig .3s ease-in-out infinite alternate; z-index: 1; }
.f-fu { font-size: min(84px, 6.2vw) !important; white-space: nowrap; text-align: center; z-index: 1; margin-bottom: 60px; }
.f-finger { z-index: 1; font-size: 240px; }
.f-sub2 { font-size: 13px; color: var(--text-2); margin-top: 10px; }

/* ===== Anonymous message form ===== */
.fb-card { width: 560px; max-width: calc(100vw - 32px); text-align: left; padding: 28px 32px 24px; }
.fb-card h1 { margin-top: 0; }
.fb-p { font-size: 14px; line-height: 20px; margin: 0 0 16px; }
.fb-to { font-size: 14px; line-height: 22px; display: flex; }
.fb-to > span { color: var(--text-2); flex: 0 0 48px; }
.fb-rcp span { color: var(--text-2); margin-left: 8px; }
.fb-tally { margin-top: 14px; padding: 8px 12px; border-radius: 8px; background: #eff1f2; font: 14px/20px "72-Bold", var(--font); color: var(--brand); text-align: center; }
.fb-tally:empty { display: none; }
.fb-tally.off { font-family: var(--font); color: var(--text-2); font-size: 12px; }
#fbLink { position: fixed; right: 16px; bottom: 14px; z-index: 40; border: 0; cursor: pointer; padding: 6px 12px; border-radius: 8px; background: #fff; color: var(--brand); font: 13px/18px var(--font); box-shadow: 0 0 0 1px rgba(34,53,72,.1), 0 2px 8px 0 rgba(34,53,72,.1); }
#fbLink:hover { text-decoration: underline; }
.fb-card textarea { width: 100%; height: 150px; margin-top: 12px; resize: vertical; border: 0; border-radius: 4px; padding: 8px 10px; font: 14px/20px var(--font); color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px rgba(85,107,129,.25), inset 0 -1px 0 #556b81; outline: 0; }
.fb-card textarea:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.fb-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.fb-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#fbDlg { z-index: 80; }

.fb-count { white-space: nowrap; margin-left: 12px; }

.fb-rh { margin-top: 16px; font: 14px/20px "72-Bold", var(--font); color: var(--text); }
.fb-none { font-size: 13px; line-height: 18px; color: var(--text-2); }
.fb-rlist { max-height: 180px; overflow-y: auto; margin-top: 6px; }
.fb-reply { padding: 8px 12px; border-left: 3px solid var(--brand); background: #f5f6f7; border-radius: 0 6px 6px 0; margin-bottom: 8px; }
.fb-rmeta { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--text-2); }
.fb-rmeta b { font-family: "72-Bold", var(--font); font-weight: normal; color: var(--text); }
.fb-reply p { margin: 4px 0 0; font-size: 13px; line-height: 18px; white-space: pre-wrap; }
