/* assessments */
.ax-scroll { background: var(--bg-soft); }
.ax-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 28px 60px; display: flex; flex-direction: column; gap: 28px; }
.ax-panel { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20, 30, 45, .06); }
.ax-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0 28px; height: 64px; border-bottom: 1px solid var(--line); }
.ax-panel-title { font-size: 24px; color: var(--navy); }
.ax-panel-body { padding: 22px 28px 28px; }
.ax-note { margin: 0 0 22px; color: var(--text-2); font-size: 15px; }
.ax-note b { color: var(--text); }

/* Quick Ax grid */
.ax-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ax-card { background: #eef1f3; border: 1px solid #e0e5e9; border-radius: 3px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.ax-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ax-card-title { font-size: 19px; color: var(--navy); font-weight: 600; }
.ax-assess-link { border: 0; background: none; color: var(--blue-link); font-size: 16px; font-weight: 600; cursor: pointer; padding: 4px 2px; display: inline-flex; align-items: center; gap: 6px; }
.ax-assess-link:hover { text-decoration: underline; }
.ax-raquo { font-size: 20px; line-height: 1; }
.ax-card-pills { display: flex; flex-direction: column; gap: 10px; }
.ax-card-pills .pill { width: 100%; min-width: 0; height: 48px; font-size: 17px; }
.ax-card-abn { border-color: #f1b8b1; background: #fbf1f0; }
.ax-card-findings { color: var(--red); font-size: 14px; }
.ax-card-count { font-weight: 700; font-size: 15px; }
.ax-card-list { color: #b03a2e; margin-top: 2px; }

/* exam list */
.ax-add { min-height: 40px; padding: 8px 18px; }
.ax-exam-list { padding: 0; }
.ax-exam { display: flex; align-items: center; gap: 18px; padding: 16px 28px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ax-exam:last-child { border-bottom: 0; }
.ax-exam:hover { background: #f3f9fd; }
.ax-exam-icon { width: 34px !important; height: 34px !important; color: var(--blue-link); }
.ax-exam-main { flex: 1; min-width: 0; }
.ax-exam-title { font-size: 18px; color: var(--navy); font-weight: 600; }
.ax-exam-sub { font-size: 14px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-exam-abn { color: var(--red); font-weight: 600; }
.ax-exam-actions { display: flex; gap: 4px; }
.ax-exam-view { color: var(--blue-link); font-weight: 600; }
.ax-icon-btn { border: 0; background: none; color: var(--blue-link); cursor: pointer; padding: 6px; border-radius: 3px; display: inline-flex; }
.ax-icon-btn .ico { width: 22px; height: 22px; }
.ax-icon-btn:hover { background: #e8f3fa; }
.ax-del { color: var(--red); }
.ax-del .ico svg { stroke-width: 2.4; }
.ax-del:hover { background: #fdecea; }
.ax-exam-empty { padding: 28px; color: var(--muted); text-align: center; font-size: 16px; }

/* detailed editor */
.ax-editor .modal-title { display: none; }
.ax-ed-title { flex: 1; font-size: 24px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-ed-body { flex: 1; min-height: 0; padding: 0 !important; display: grid; grid-template-columns: 250px 1fr; overflow: hidden !important; }
.ax-ed-nav { background: var(--bg-nav); border-right: 1px solid var(--line); overflow-y: auto; padding-top: 24px; }
.ax-ed-nav-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 17px 28px; font-size: 14px; font-weight: 600; letter-spacing: 1.2px; color: #5b6b78; cursor: pointer; }
.ax-ed-nav-item:hover { background: #e6eaee; }
.ax-ed-nav-item.active { background: var(--green); color: #fff; }
.ax-ed-content { overflow-y: auto; padding: 0 0 40px; position: relative; }
.ax-ed-time { max-width: 900px; margin: 24px auto 0; padding: 0 36px; }
.ax-ed-time .f { max-width: 360px; margin-bottom: 8px; }
.ax-ed-spacer { height: 45vh; }

.ax-sec { margin-top: 22px; }
.ax-sec-head { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px max(24px, calc((100% - 900px) / 2 + 36px)); flex-wrap: wrap; }
.ax-sec-head.st-abnormal { border-left: 4px solid var(--red); }
.ax-sec-toggle { border: 0; background: none; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; padding: 0; font-size: 22px; color: var(--navy); }
.ax-chev { width: 26px !important; height: 26px !important; color: var(--text-2); }
.ax-sec-pills { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ax-sec-pills .pill { height: 46px; min-width: 150px; font-size: 16px; }
.ax-abn-tag { color: #fff; background: var(--red); font-weight: 700; font-size: 13px; border-radius: 3px; padding: 4px 10px; }
.ax-sec-body { max-width: 900px; margin: 0 auto; padding: 26px 36px 6px; }
.ax-sec.collapsed .ax-sec-head { border-bottom: 1px solid var(--line); }

/* orientation */
.ax-orient { margin: 4px 0 26px; }
.ax-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; color: var(--navy); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ax-sub-head .pill { height: 44px; font-size: 16px; }
.ax-orient-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ax-orient-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ax-orient-label { font-size: 15px; color: #5c6b77; }
.ax-switch { position: relative; width: 112px; height: 44px; border-radius: 22px; background: #dfe4e8; border: 1px solid #c9d1d7; display: flex; overflow: hidden; transition: background .15s; }
.ax-switch.yes { background: var(--green); border-color: var(--green-2); }
.ax-switch.no { background: var(--red); border-color: #d84333; }
.ax-sw-half { flex: 1; border: 0; background: none; cursor: pointer; font-size: 20px; font-weight: 700; color: #8795a1; z-index: 1; position: relative; }
.ax-sw-half:disabled { cursor: default; }
.ax-switch.yes .ax-sw-half, .ax-switch.no .ax-sw-half { color: rgba(255, 255, 255, .9); }
.ax-sw-knob { position: absolute; top: 3px; left: calc(50% - 18px); width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; pointer-events: none; z-index: 2; }
.ax-switch.yes .ax-sw-knob { left: calc(100% - 39px); }
.ax-switch.no .ax-sw-knob { left: 3px; }
.ax-switch.unset .ax-sw-knob { opacity: .95; }

.ax-comments { width: 100%; border: 1px solid #c4ccd3; border-radius: 3px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--text); min-height: 120px; resize: vertical; }
.ax-comments:focus { outline: none; border-color: var(--green); }

@media (max-width: 1000px) {
  .ax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-ed-body { grid-template-columns: 1fr; }
  .ax-ed-nav { display: none; }
}
@media (max-width: 640px) {
  .ax-wrap { padding: 16px; }
  .ax-grid { grid-template-columns: 1fr; }
  .ax-orient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-sec-body, .ax-ed-time { padding-left: 16px; padding-right: 16px; }
}
.ax-sec-body > .f { margin-bottom: 20px; }
