:root {
  --navy: #212a5f;
  --navy-dark: #182049;
  --ink: #1d2443;
  --muted: #4c5674;
  --line: #dce1ed;
  --canvas: #f5f6fa;
  --lavender: #eaedf8;
  --periwinkle: #e7ebff;
  --serif: 'Instrument Serif','Iowan Old Style','Georgia','Times New Roman',serif;
  --sans: 'DM Sans','Avenir Next',Avenir,'Segoe UI',Arial,sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button,input,select,textarea { font: inherit; color: inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color: transparent; }
button,a { touch-action: manipulation; }
a { color: var(--navy); text-underline-offset: .22em; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity:.52; }
:focus-visible { outline: 3px solid #3e62b3; outline-offset: 3px; }
::selection { background: #e0e7ff; color: #212a5f; }
h1,h2,h3,p,dl,dt,dd { margin: 0; }
h1,h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
h1 { line-height: 1.05; }
h2 { font-size: 2rem; line-height: 1.12; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { line-height: 1.58; }
svg { flex-shrink: 0; }
input:not([type='radio']), select, textarea { border: 1px solid #b5bfd6; border-radius: 7px; background-color: #fff; padding: .72rem .83rem; width: 100%; }
input::placeholder, textarea::placeholder { color: #646e87; }
select { appearance: none; padding-inline-end: 2.4rem; background-image: linear-gradient(45deg,transparent 50%,#4e61a3 51%),linear-gradient(135deg,#4e61a3 50%,transparent 51%); background-position: calc(100% - 17px) 52%,calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 104px; }
label, .field-label { font-size: .9rem; font-weight: 620; }
.field-label { display: block; margin: 1rem 0 .45rem; }
.skip-link { position:fixed; z-index:50; inset-inline-start:8px; top:8px; transform:translateY(-155%); background:white; padding:.7rem; border-radius:6px; }
.skip-link:focus { transform:none; }
.loading-screen,.standalone { min-height:100dvh; display:grid; align-content:center; justify-items:center; gap:1rem; padding:2rem; }
.loader { display:inline-block; width:22px; height:22px; border:2px solid #d5ddf1; border-top-color:var(--navy); border-radius:50%; animation:spin 800ms linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .loader { animation:none; } }
.inline-loader { display:flex; align-items:center; gap:.7rem; padding:2rem; color:var(--muted); }
.button,.icon-button { border:0; display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:7px; line-height:1.3; }
.button { padding:.73rem 1rem; font-size:.91rem; font-weight:630; min-height:42px; text-decoration:none; white-space:nowrap; }
.button.primary { background: var(--navy); color: #fff; }
.button.primary:hover:enabled { background:#303d7a; }
.button.light { background: white; color:var(--navy); border:1px solid #b5bfd6; }
.button.light:hover:enabled,.icon-button:hover:enabled { background:var(--lavender); }
.button.compact { padding:.45rem .72rem; min-height:35px; font-size:.875rem; }
.icon-button { width:38px; height:38px; padding:0; color:var(--navy); background:transparent; }
.text-link,.record-id { color:#2f487e; font-size:.89rem; font-weight:630; }
.text-link:hover,.record-id:hover { color:#212a5f; }
.notice { padding:.8rem .95rem; display:flex; align-items:flex-start; gap:.6rem; border:1px solid; border-radius:6px; margin: .75rem 0; font-size:.9rem; line-height:1.5; overflow-wrap:anywhere; white-space:pre-line; }
.notice svg { margin-top:.1rem; }
.notice.error { color:#842d25; background:#fff3ee; border-color:#ecc7ba; }
.notice.success { color:#245045; background:#edf7f3; border-color:#c8e0d5; }
.brand {
  display:block; position:relative; flex:none; width:clamp(96px, 11vw, 150px);
  aspect-ratio:2008 / 1710; overflow:hidden; border-radius:8px; background:white;
}
/* The image extends beyond the frame only in the original blank margins. */
.brand img {
  position:absolute; width:113.35%; height:auto;
  left:50%; top:-16.96%; transform:translateX(-50%);
}
.login-art .brand { align-self:flex-start; width:clamp(118px, 15vw, 170px); }
.sidebar .brand { width:132px; }
.mobile-top .brand,.public-header .brand { width:112px; }

.eyebrow,.nav-caption { font-family:var(--sans); text-transform:uppercase; font-weight:630; letter-spacing:.14em; font-size:.76rem; }
.login-page { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,1fr); min-height:100dvh; background:#fbfbff; }
.login-art { isolation:isolate; background:var(--navy); color:#fff; position:relative; display:flex; flex-direction:column; overflow:hidden; padding:clamp(2rem,5vw,5.75rem); min-height:100%; }
.login-art .brand,.login-title { position:relative; z-index:2; }

.login-title { margin:auto 0; padding:5rem 0 8rem; }
.login-title h1 { font-size:clamp(4rem,7.2vw,8rem); letter-spacing:-.065em; line-height:.92; }
.login-title em { color:var(--periwinkle); font-weight:400; }
.login-title p { margin-top:1.6rem; color:#e2e6f8; font-size:1rem; }
.art { position:absolute; overflow:hidden; pointer-events:none; inset:0; z-index:0; }
.arc { position:absolute; width:440px; height:440px; bottom:-175px; inset-inline-end:-110px; transform:rotate(-25deg); }
.arc i { position:absolute; inset:calc(var(--n) * 9px); border:1px solid #8190c3; border-bottom-color:transparent; border-radius:50% 50% 3% 3%; }
.arc i:nth-child(1){--n:0}.arc i:nth-child(2){--n:1}.arc i:nth-child(3){--n:2}.arc i:nth-child(4){--n:3}.arc i:nth-child(5){--n:4}.arc i:nth-child(6){--n:5}.arc i:nth-child(7){--n:6}.arc i:nth-child(8){--n:7}.arc i:nth-child(9){--n:8}.arc i:nth-child(10){--n:9}.arc i:nth-child(11){--n:10}.arc i:nth-child(12){--n:11}.arc i:nth-child(13){--n:12}
.arc-two { inset-inline-end:100px; bottom:-277px; transform:rotate(27deg); }
.arc-two i { border-color:#5366a0; border-bottom-color:transparent; }
.login-panel { display:grid; align-content:center; justify-items:center; padding:3rem clamp(2rem,6vw,6rem); }
.login-form-wrap { width:100%; max-width:390px; }
.login-icon,.finish-icon { width:54px; height:54px; display:inline-grid; place-items:center; border-radius:15px; color:var(--navy); background:#e8ecf9; }
.login-form-wrap h2 { margin:1.35rem 0 .5rem; font-size:clamp(2.4rem,4vw,3.5rem); }
.login-form-wrap>p { color:var(--muted); margin-bottom:1.75rem; }
.login-form-wrap form>label { display:block; margin:1.1rem 0 .45rem; }
.login-form-wrap form>.button { width:100%; margin-top:1.35rem; }
.password-control { position:relative; }
.password-control input { padding-inline-end:3rem; }
.password-control button { position:absolute; inset-inline-end:4px; top:50%; transform:translateY(-50%); }
.patient-link { display:inline-flex; align-items:center; gap:.5rem; margin-top:2rem; font-size:.9rem; font-weight:600; }
.workspace { min-height:100dvh; }
.sidebar { width:242px; background:var(--navy-dark); color:#f1f3fa; display:flex; flex-direction:column; padding:1.8rem 1.1rem 1.2rem; position:fixed; inset-block:0; inset-inline-start:0; z-index:4; }
.side-top { display:flex; align-items:center; justify-content:space-between; }

.nav-caption { margin:3rem .75rem .7rem; color:#b3beda; }
.sidebar nav,.side-secondary { display:grid; gap:.28rem; }
.sidebar a { display:flex; align-items:center; gap:.75rem; padding:.75rem; text-decoration:none; font-size:.93rem; font-weight:540; color:#e3e8ff; border-radius:7px; }
.sidebar a:hover { background:#293766; }
.sidebar nav a[aria-current="page"] { background:#e4eaff; color:var(--navy-dark); font-weight:650; }
.side-secondary { margin-top:1.2rem; border-top:1px solid #424f80; padding-top:1rem; }
.side-secondary a { color:#cfdaff; font-size:.87rem; }
.side-secondary a svg:last-child { margin-inline-start:auto; }
.side-user { display:flex; align-items:center; gap:.65rem; margin-top:auto; border-top:1px solid #424f80; padding-top:1.2rem; }
.avatar { width:38px; height:38px; background:#3e4c81; border:1px solid #707faf; border-radius:50%; display:grid; place-items:center; font-size:.93rem; }
.side-user>div { display:grid; gap:.15rem; min-width:0; }
.side-user>div span { font-size:.77rem; color:#c1ccec; }
.side-user>div strong { font-size:.9rem; font-weight:600; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.side-user .icon-button,.mobile-close { color:#e4eaff; margin-inline-start:auto; }
.side-user .icon-button:hover:enabled,.mobile-close:hover:enabled { background:#314073; }
.mobile-top,.mobile-close,.scrim { display:none; }
.content-wrap { margin-inline-start:242px; }
.workspace-top { display:flex; align-items:center; justify-content:space-between; min-height:64px; gap:1rem; padding:0 clamp(1.6rem,4vw,4.5rem); border-bottom:1px solid var(--line); background:#fcfcff; }
.workspace-id { font-size:.92rem; font-weight:600; }
.top-date { display:flex; align-items:center; gap:.4rem; color:var(--muted); font-size:.85rem; }
.content-wrap main { padding:clamp(1.45rem,2.8vw,3rem) clamp(1.6rem,4vw,4.5rem) 4rem; max-width:1650px; margin:auto; }
.overview-hero { position:relative; isolation:isolate; overflow:hidden; padding:clamp(1.5rem,2.5vw,2.6rem); border-radius:12px; background:#e6eafa; }
.overview-hero>div:first-child { position:relative; z-index:1; max-width:75%; }
.overview-hero h1,.page-head h1 { font-size:clamp(2.7rem,4.4vw,4.85rem); }
.overview-hero p,.page-head p { color:#414f76; margin-top:.5rem; }
.overview-analytics { margin-top:1rem; }
.overview-hero .art { inset-inline-start:67%; }
.overview-hero .arc { width:330px; height:330px; inset-inline-end:-65px; bottom:-172px; }
.overview-hero .arc i { inset:calc(var(--n) * 7px); border-color:#a2afd8; }
.overview-hero .arc-two { inset-inline-end:90px; bottom:-223px; }
.overview-hero .arc-two i { border-color:#bdc8e9; }
.metrics,.department-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.9rem; }
.metrics { margin:1rem 0 1.9rem; }
.metric,.department-card,.card { background:#fff; border:1px solid var(--line); border-radius:10px; }
.metric { padding:1.1rem 1.15rem; display:flex; align-items:flex-start; gap:.8rem; min-width:0; }
.metric-icon { width:37px; height:37px; display:grid; place-items:center; flex-shrink:0; color:#495e90; background:#eef1fa; border-radius:10px; }
.metric>div { display:grid; min-width:0; }
.metric>div>span,.department-card dt { font-size:.875rem; color:var(--muted); line-height:1.45; }
.metric strong { font-family:var(--serif); font-size:2.25rem; font-weight:500; letter-spacing:-.065em; line-height:1.12; margin-top:.12rem; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
.section-head h2,.sheet-heading h2 { font-size:1.95rem; }
.section-head .button { min-height:37px; padding:.55rem .8rem; }
.department-card { padding:1.15rem; }
.department-title,.sheet-heading { display:flex; align-items:center; gap:.7rem; }
.dept-icon { display:inline-grid; place-items:center; width:39px; height:39px; flex-shrink:0; border-radius:10px; }
.dept-icon.opd { background:#ebe8f8; color:#5c4785; }
.dept-icon.ipd { background:#e3ebf8; color:#405f87; }
.dept-icon.ed { background:#f7e8d9; color:#8a5836; }
.department-card dl { display:grid; gap:.45rem; margin:1.1rem 0 .95rem; }
.department-card dl>div { display:flex; align-items:baseline; justify-content:space-between; gap:.35rem; }
.department-card dd { white-space:nowrap; font-weight:650; font-variant-numeric:tabular-nums; }
.department-card dd small { font-size:.78rem; font-weight:500; margin-inline-start:.12rem; }
.department-card>.text-link { display:block; padding-top:.72rem; border-top:1px solid var(--line); }
.records-section { margin-top:2rem; }
.empty-state { min-height:150px; text-align:center; display:grid; align-content:center; justify-items:center; padding:1.4rem; }
.empty-state>span { width:41px; height:41px; background:#eef1fa; color:#4c608d; display:grid; place-items:center; border-radius:11px; margin-bottom:.55rem; }
.empty-state strong { font-size:1rem; }
.empty-state p { color:var(--muted); font-size:.9rem; margin-top:.18rem; }
.page-head { display:flex; justify-content:space-between; align-items:center; gap:1.2rem; margin:.45rem 0 1.9rem; }
.page-head p { color:var(--muted); }
.filters { display:flex; align-items:flex-end; gap:.8rem; padding:1.15rem; border-bottom:1px solid var(--line); }
.filters label { display:block; margin-bottom:.4rem; }
.filters .search-wrap { flex:1; }
.filters input,.filters select { min-height:42px; padding-block:.55rem; }
.response-filters { flex-wrap:wrap; }
.response-filters .search-wrap { flex:2 1 14rem; min-width:0; }
.response-department { flex:1 1 10rem; min-width:0; }
.response-date { flex:0 1 9.5rem; min-width:8rem; }
.response-date input { min-width:0; direction:ltr; }
.response-filter-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.response-filter-actions [hidden] { display:none; }
#response-date-message:not(:empty) { padding-inline:1.15rem; }
.search-wrap>div { position:relative; }
.search-wrap svg { position:absolute; top:50%; inset-inline-start:.7rem; transform:translateY(-50%); color:var(--muted); }
.search-wrap input { padding-inline-start:2.25rem; }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.88rem; }
th { color:var(--muted); text-align:start; font-size:.8rem; font-weight:630; background:#f2f4fa; white-space:nowrap; }
th,td { padding:.75rem 1rem; border-bottom:1px solid var(--line); }
th span { font-weight:450; }
tr:last-child td { border:0; }
td { vertical-align:middle; }
td small { color:var(--muted); margin-inline-start:.45rem; white-space:nowrap; }
.dept-tag { white-space:nowrap; display:inline-flex; align-items:center; gap:.42rem; }
.dept-tag i { width:8px; height:8px; border-radius:2px; }
.dept-tag .opd { background:#856daf; }.dept-tag .ipd { background:#759bc8; }.dept-tag .ed { background:#c59564; }
.record-id { border:0; background:transparent; text-decoration:underline; text-underline-offset:.2em; padding:.3rem 0; font-family:'IBM Plex Mono',monospace; font-size:.84rem; }
.pagination { display:flex; justify-content:space-between; align-items:center; gap:.7rem; padding:.85rem 1.1rem; border-top:1px solid var(--line); color:var(--muted); font-size:.88rem; }
.pagination>div,.download-row { display:flex; gap:.5rem; flex-wrap:wrap; }
.sheet-grid { display:grid; grid-template-columns:1.1fr 1fr; align-items:start; gap:1rem; }
.sheet-stack { display:grid; gap:1rem; }
.sheet-card { padding:clamp(1.25rem,2vw,1.9rem); }
.sheet-heading h2 { font-size:1.75rem; }
.sheet-card>p { margin:.95rem 0 1.15rem; color:var(--muted); font-size:.95rem; }
.sheet-card input[type=file] { background:#f5f7fd; border:1px dashed #99a8ca; padding:1.1rem .85rem; font-size:.92rem; }
input::file-selector-button { font:inherit; border:1px solid #b8c3de; border-radius:5px; color:var(--navy); background:white; cursor:pointer; padding:.4rem .55rem; margin-inline-end:.6rem; }
.sheet-card small { display:block; color:var(--muted); margin-top:.4rem; font-size:.81rem; }
.sheet-card form>.button { margin-top:1.1rem; }
.modal { border:1px solid var(--line); border-radius:12px; padding:0; width:min(565px,calc(100% - 2rem)); max-height:85dvh; color:var(--ink); box-shadow:0 20px 90px #10183c33; }
.modal::backdrop { background:#151c436e; }
.dialog-head { position:sticky; top:0; z-index:1; background:#fff; display:flex; align-items:center; justify-content:space-between; padding:1.1rem 1.4rem; border-bottom:1px solid var(--line); }
.dialog-head h2 { font-size:1.8rem; }
.dialog-body { padding:1.15rem 1.4rem 1.5rem; }
.dialog-intro,.detail-meta span,.detail-prompt,.muted { color:var(--muted); }
.share-row { display:flex; align-items:center; gap:.8rem; padding:.85rem 0; border-bottom:1px solid var(--line); }
.share-row>div { display:flex; gap:.55rem; align-items:center; margin-inline-end:auto; }
.share-row .dept-icon { width:31px; height:31px; border-radius:7px; }
.detail-meta { display:grid; gap:.35rem; padding:.85rem; border-radius:8px; background:#f0f3fb; }
.detail-meta span,.detail-meta code { font-size:.83rem; }
.detail-meta code,.survey-finish code { overflow-wrap:anywhere; }
.detail-list>div { padding:1rem 0; border-bottom:1px solid var(--line); }
.detail-list dt { font-weight:650; }
.detail-prompt { margin:.3rem 0 .5rem; font-size:.9rem; }
.detail-answer { overflow-wrap:anywhere; white-space:pre-wrap; line-height:1.5; }
.public-page { background:var(--canvas); min-height:100dvh; }
.public-header { background:#fff; padding:.9rem max(1.2rem,calc((100% - 940px)/2)); border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }

.survey-main { width:min(800px,100%); padding:2.3rem 1.2rem 1rem; margin:0 auto; }
.survey-intro { padding:clamp(1.4rem,3.2vw,2.25rem); background:#e9edfa; border-radius:12px; }
.survey-intro h1,.survey-finish h1 { font-size:clamp(2.25rem,4.1vw,3.3rem); margin:.55rem 0 .65rem; }
.survey-intro p,.survey-finish p { color:#435175; }
.survey-intro .text-link { display:inline-block; margin-top:.75rem; }
.survey-intro .eyebrow { color:#42517b; }
.survey-progress { margin:1.2rem 0; border-radius:8px; padding:.2rem .1rem; }
.survey-progress>div { display:flex; justify-content:space-between; gap:1rem; font-size:.9rem; color:var(--muted); }
.survey-progress progress { appearance:none; display:block; border:0; border-radius:4px; width:100%; height:5px; margin-top:.5rem; background:#dee4f4; }
progress::-webkit-progress-bar { background:#dee4f4; border-radius:4px; }
progress::-webkit-progress-value { background:#3d548d; border-radius:4px; }
progress::-moz-progress-bar { background:#3d548d; border-radius:4px; }
.question { min-inline-size:0; margin:0 0 1rem; padding:1.2rem; border:1px solid var(--line); background:#fff; border-radius:10px; }
.question legend { float:inline-start; width:100%; display:flex; align-items:baseline; gap:.55rem; line-height:1.45; font-size:1.1rem; font-weight:650; padding:0; }
.question>p { clear:both; padding-top:.45rem; margin-bottom:1rem; color:#364467; }
.q-no { font-family:'IBM Plex Mono',monospace; font-size:.78rem; color:#51618e; border-inline-end:1px solid #c4cde4; padding-inline-end:.55rem; }
.question legend small { margin-inline-start:auto; font-weight:500; font-size:.8rem; color:var(--muted); }
.answers { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.answer { position:relative; text-align:center; cursor:pointer; font-size:.92rem; font-weight:550; }
.answer input { opacity:0; position:absolute; width:1px; height:1px; inset-inline-start:50%; bottom:2px; }
.answer span { display:block; border-radius:6px; min-height:42px; align-content:center; background:#fafbfe; border:1px solid #b7c3df; padding:.6rem .83rem; }
.answer input:checked+span { background:var(--navy); color:white; border-color:var(--navy); }
.answer input:focus-visible+span { outline:3px solid #456aba; outline-offset:2px; }
.answer:hover input:not(:checked)+span { border-color:var(--navy); background:#f0f3fc; }
.score-scale { gap:.35rem; }
.score-scale .answer { flex:1 1 36px; }
.score-scale .answer span { padding:.6rem .28rem; }
.scale-key { display:flex; flex-wrap:wrap; gap:.4rem 1rem; margin-top:.65rem; font-size:.78rem; color:var(--muted); }
.submit-row { display:flex; justify-content:flex-end; }
.public-footer { text-align:center; padding:1.5rem; font-size:.84rem; }
.dept-picker { display:grid; gap:.7rem; padding:1rem 0; }
.picker-card { background:#fff; border:1px solid var(--line); display:flex; align-items:center; gap:.9rem; border-radius:9px; padding:1rem; text-decoration:none; }
.picker-card:hover { border-color:#98aad0; }
.survey-finish { text-align:center; background:white; border:1px solid var(--line); border-radius:12px; padding:clamp(2rem,5vw,4rem) 1.2rem; }
.survey-finish small { display:block; margin:1.3rem 0 .3rem; color:var(--muted); }
.survey-finish code { color:var(--muted); }
html[lang=ar] { font-family:Tahoma,'Arial',sans-serif; }
html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] .eyebrow { font-family:inherit; letter-spacing:normal; line-height:1.55; }

@media (min-width:1600px) { .metrics { gap:1.2rem; } .metric,.department-card { padding:1.45rem; } }
@media (max-width:1150px) {
  .sidebar { width:208px; padding-inline:.8rem; }
  .content-wrap { margin-inline-start:208px; }
  .workspace-top { padding-inline:1.5rem; } .content-wrap main { padding-inline:1.5rem; }
  .metrics,.department-grid { gap:.6rem; }
  .metric,.department-card { padding:.9rem; }
  .metric { gap:.6rem; }
  .metric-icon { width:31px; height:31px; border-radius:7px; }
}
@media (max-width:880px) {
  .mobile-top { display:flex; justify-content:space-between; align-items:center; gap:.5rem; background:#fff; padding:.65rem 1.2rem; border-bottom:1px solid var(--line); }

  .sidebar { display:none; width:260px; height:100dvh; padding:1.2rem; }
  .mobile-close,.nav-open .sidebar { display:flex; }
  .nav-open .scrim { display:block; position:fixed; inset:0; border:0; z-index:3; background:#151d4770; cursor:default; }
  .content-wrap { margin:0; }
  .workspace-top { min-height:43px; padding-inline:1.2rem; }
  .content-wrap main { padding:1.2rem 1.2rem 3rem; }
  .login-page { grid-template-columns:.85fr 1fr; }
  .login-art { padding:2.2rem; }
  .login-panel { padding:2.4rem; }
  .sheet-card { padding:1.1rem; }
}
@media (max-width:620px) {
  .login-page { display:flex; flex-direction:column; }
  .login-art { padding:1rem 1.35rem 1.3rem; min-height:0; }

  .login-title { padding:1.5rem 0 .2rem; margin:0; }
  .login-title h1 { font-size:clamp(2.5rem,9vw,3.4rem); line-height:1; }
  .login-title br { display:none; }
  .login-title em::before { content:' '; }
  .login-title p { margin-top:.55rem; font-size:.88rem; }
  .login-art .art { inset-inline-start:60%; opacity:.55; }
  .login-art .arc { width:230px; height:230px; inset-inline-end:-110px; bottom:-117px; }
  .login-art .arc i { inset:calc(var(--n)*5px); }
  .login-panel { padding:2rem 1.35rem; }
  .login-icon { display:none; }
  .login-form-wrap h2 { margin:0 0 .4rem; }
  .login-form-wrap>p { margin-bottom:1rem; }
  .mobile-top,.workspace-top { padding-inline:1rem; }
  .content-wrap main { padding:1rem .85rem 2.2rem; }
  .overview-hero { padding:1.1rem; }
  .overview-hero>div:first-child { max-width:88%; }
  .overview-hero h1,.page-head h1 { font-size:2.55rem; }
  .overview-hero p,.page-head p { font-size:.9rem; }
  .overview-hero .art { inset-inline-start:78%; opacity:.6; }
  .metrics { gap:.4rem; margin:.55rem 0 1.5rem; }
  .metric { padding:.68rem .6rem; flex-direction:column; gap:.4rem; }
  .metric>div { display:flex; flex-direction:column-reverse; gap:.22rem; }
  .metric>div>span { font-size:.79rem; line-height:1.3; }
  .metric strong { font-size:1.85rem; }
  .metric-icon { width:27px; height:27px; }
  .metric-icon svg { width:16px; height:16px; }
  .department-grid,.sheet-grid { grid-template-columns:1fr; }
  .department-card { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:.5rem .9rem; padding: .8rem .9rem; }
  .department-title { gap:.5rem; }
  .department-title h3 { font-size:1rem; }
  .dept-icon { width:34px; height:34px; }
  .department-card dl { grid-row:1 / 3; grid-column:2; margin:0; gap:.3rem; }
  .department-card dt { font-size:.8rem; }
  .department-card>.text-link { border:0; padding-top:0; font-size:.82rem; }
  h2,.section-head h2 { font-size:1.65rem; }
  .section-head { margin-bottom:.6rem; gap:.5rem; }
  .section-head .button { font-size:.82rem; }
  .records-section { margin-top:1.5rem; }
  .page-head { flex-direction:column; align-items:start; gap:.7rem; margin-bottom:1.3rem; }
  .filters { flex-wrap:wrap; padding:.85rem; }
  .filters .search-wrap { flex-basis:100%; }
  .response-date { flex:1 1 min(40%, 9.5rem); }
  th,td { padding:.65rem .75rem; }
  .pagination { padding:.8rem; font-size:.8rem; }
  .share-row { gap:.45rem; }
  .share-row .dept-icon { display:none; }
  .share-row button { font-size:.78rem; }
  .survey-main { padding:1rem .85rem; }
  .public-header { padding:.65rem .9rem; }

  .survey-intro h1 { font-size:2rem; }
  .survey-intro { padding:1.15rem; }
  .question { padding:1rem; }
  .question legend { font-size:1rem; }
  .score-scale .answer { flex:0 0 calc((100% - 1.75rem)/6); }
  .answers:not(.score-scale) .answer { flex:1 1 calc(50% - .5rem); }
  .submit-row>.button { width:100%; }
}
.comment-limit { display:block; margin-top:.3rem; color:var(--muted); font-size:.82rem; }

.login-controls,.workspace-controls { display:flex; align-items:center; justify-content:space-between; gap:.7rem; }
.login-controls .language-toggle { margin-inline-start:auto; }
.language-toggle { min-height:39px; }
.dataset-control { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem .8rem; padding:.85rem 1rem; background:white; border:1px solid var(--line); border-radius:8px; margin:1rem 0; }
.dataset-control select { width:auto; min-width:10rem; min-height:40px; padding-block:.5rem; }
.demo-label,.dataset-file-note { display:flex; align-items:center; gap:.5rem; color:#674215; font-size:.9rem; }
.demo-label { margin-inline-start:auto; }
.demo-source { display:inline-block; color:#674215; background:#fff2d9; border-radius:5px; padding:.2rem .45rem; white-space:nowrap; }
.detail-meta .demo-source { color:#674215; }
.detail-meta code { justify-self:start; }
.dataset-file-note { margin:-.6rem 0 1.1rem; color:var(--muted); }
html[dir=rtl] select { background-image:linear-gradient(45deg,#4e61a3 50%,transparent 51%),linear-gradient(135deg,transparent 50%,#4e61a3 51%); background-position:12px 52%,17px 52%; }
html[dir=rtl] .password-control input { padding-left:3rem; padding-right:.83rem; }
html[lang=ar] :is(.nav-caption,.metric strong,.login-title h1) { font-family:inherit; letter-spacing:normal; }
html[lang=ar] .login-title h1 { font-size:clamp(2.9rem,6vw,6.5rem); line-height:1.2; }
html[lang=ar] .login-title em { font-style:normal; }
html[lang=ar] :is(.overview-hero,.page-head) h1 { font-size:clamp(2rem,4vw,4rem); line-height:1.3; }
html[lang=ar] .login-form-wrap h2 { font-size:clamp(1.8rem,3.6vw,2.7rem); }
@media (max-width:620px) {
  .login-form-wrap h2 { margin-block-start:.85rem; }
  .workspace-top { padding-block:.35rem; gap:.5rem; }
  .workspace-controls { gap:.4rem; }
  .demo-label { margin-inline-start:0; }
  .dataset-control { padding:.7rem; }
  .dataset-control select { min-width:0; }
}
@media (max-width:620px) {
  .login-art .brand { width:114px; }
  .mobile-top .brand,.public-header .brand { width:96px; }
}
