:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --text: #231815;
  --muted: #74777c;
  --line: #e4e7eb;
  --line-soft: #eef0f2;
  --nav: #ffffff;
  --nav-soft: #f4f7fb;
  --brand: #00388b;
  --brand-soft: #eaf2fc;
  --brand-dark: #002762;
  --cyan: #3bbee7;
  --cyan-soft: #eaf8fc;
  --rose: #e84091;
  --rose-soft: #fff0f7;
  --green: #3ab1a1;
  --green-soft: #eaf8f5;
  --green-dark: #176f63;
  --red: #d63b44;
  --red-soft: #fff1f2;
  --red-dark: #991b1b;
  --amber: #c88b21;
  --amber-soft: #fff7e8;
  --amber-dark: #85570d;
  --shadow: 0 10px 30px rgba(35, 24, 21, 0.045);
  --shadow-lg: 0 28px 80px rgba(20, 35, 55, 0.14);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c8ccd2 transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #c8ccd2;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button {
  min-height: 38px;
  border-radius: 4px;
  padding: 0 16px;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(59, 190, 231, 0.45);
  outline-offset: 2px;
}

/* Brand-led login */
.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
  gap: 0;
  place-content: stretch;
  padding: 0;
  background: #fff;
}

.login-copy {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 7vw, 112px);
  color: var(--text);
  background: #ffffff;
}

.login-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--brand);
}

.login-copy::after {
  content: "CHANGHANG";
  position: absolute;
  right: -24px;
  bottom: -18px;
  color: rgba(0, 56, 139, 0.035);
  font-size: clamp(88px, 11vw, 176px);
  font-weight: 800;
  line-height: 0.8;
  pointer-events: none;
}

.login-copy-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.login-logo {
  display: flex;
  width: 230px;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 46px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.login-brand-logo {
  width: 220px;
  max-height: 154px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-eyebrow,
.page-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-copy h1 {
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(38px, 3.5vw, 56px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
}

.login-copy .login-lead {
  max-width: 590px;
  margin: 0 0 54px;
  color: #68737a;
  font-size: 16px;
  line-height: 1.9;
}

.login-feature-grid {
  display: grid;
  max-width: 650px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(0, 56, 139, 0.15);
}

.login-feature-grid span {
  display: grid;
  gap: 10px;
  padding: 22px 20px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #41494f;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.login-feature-grid b {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.login-feature-grid span:nth-child(2) b { color: var(--rose); }
.login-feature-grid span:nth-child(3) b { color: var(--green); }
.login-feature-grid span:nth-child(4) b { color: var(--amber-dark); }

.login-panel {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 112px);
  border: 0;
  border-left: 1px solid #e2e9ed;
  border-radius: 0;
  background: #f5f7f9;
  box-shadow: none;
}

.login-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 78px;
  height: 5px;
  background: var(--rose);
}

.login-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 74px;
}

.login-panel-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.login-panel-head strong,
.login-panel-head small {
  display: block;
}

.login-panel-head strong {
  font-size: 17px;
  font-weight: 700;
}

.login-panel-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.login-panel > .brand-eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
}

.login-panel h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
}

.login-panel > p:not(.brand-eyebrow):not(.login-security) {
  margin: 0 0 34px;
  color: var(--muted);
}

.login-panel .form-grid {
  gap: 20px;
}

.login-panel label {
  gap: 9px;
  color: #414348;
  font-size: 13px;
}

.login-panel input {
  min-height: 50px;
  padding: 0 15px;
  border-color: #d9dde2;
  border-radius: 4px;
  background: #ffffff;
}

.login-submit {
  min-height: 50px;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 4px;
}

.login-submit span {
  font-size: 18px;
  font-weight: 400;
}

.login-security {
  margin: 24px 0 0;
  color: #a1a5aa;
  font-size: 11px;
  text-align: center;
}

/* Application shell */
.app {
  grid-template-columns: 252px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  z-index: 10;
  border-right: 1px solid #e6e8eb;
  background: #fff;
}

.brand.small {
  position: relative;
  display: grid;
  min-height: 126px;
  place-items: center;
  gap: 7px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.brand.small::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 2px;
  background: var(--cyan);
}

.sidebar-brand-logo {
  width: 124px;
  max-height: 82px;
  object-fit: contain;
}

.sidebar-brand-caption {
  color: #8a8d91;
  font-size: 9px;
  font-weight: 700;
}

nav {
  gap: 0;
  padding: 20px 13px 28px;
}

.nav-group {
  gap: 4px;
  padding: 8px 0 12px;
}

.nav-group-title {
  padding: 8px 12px 7px;
  color: #9a9da2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-btn {
  position: relative;
  min-height: 42px;
  gap: 10px;
  padding: 0 10px;
  border-radius: 4px;
  color: #565a61;
  font-size: 13px;
}

.nav-btn::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -13px;
  width: 3px;
  background: transparent;
}

.nav-btn > span:nth-child(2) {
  flex: 1;
}

.nav-btn > i {
  color: #b4b7bb;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-btn:hover {
  background: #f5f7f9;
  color: var(--text);
}

.nav-btn:hover > i,
.nav-btn.active > i {
  opacity: 1;
  transform: translateX(0);
}

.nav-btn.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.nav-btn.active::before {
  background: var(--brand);
}

.nav-icon {
  width: 25px;
  height: 25px;
  border: 1px solid #dfe3e8;
  border-radius: 3px;
  background: #fff;
  color: #747980;
  font-size: 12px;
}

.nav-btn.active .nav-icon {
  border-color: rgba(0, 56, 139, 0.16);
  background: var(--brand);
  color: #fff;
}

#logoutBtn {
  min-height: 42px;
  margin: auto 16px 20px;
  border-color: #e1e4e8;
  border-radius: 4px;
  background: #fafbfc;
  color: #6d7075;
}

.main {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 104px;
  padding: 18px 34px;
  border-bottom: 1px solid rgba(228, 231, 235, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.page-eyebrow {
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 10px;
}

.topbar h1 {
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
}

.topbar p {
  margin-top: 4px;
  color: #85898e;
  font-size: 12px;
}

.user-box {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 11px;
  padding: 7px 12px 7px 8px;
  border-color: #e4e7eb;
  border-radius: 4px;
  text-align: left;
}

.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.user-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-meta strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta small {
  color: var(--muted);
  font-size: 10px;
}

#content {
  width: 100%;
  max-width: 1920px;
  padding: 28px 34px 52px;
}

/* Buttons */
.primary {
  border: 1px solid var(--brand);
  border-radius: 4px;
  background: var(--brand);
  box-shadow: 0 5px 14px rgba(0, 56, 139, 0.16);
  color: #fff;
}

.primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  box-shadow: 0 7px 18px rgba(0, 56, 139, 0.2);
}

.ghost {
  border: 1px solid #dde1e6;
  border-radius: 4px;
  background: #fff;
  color: #464a50;
}

.ghost:hover {
  border-color: #aeb7c2;
  background: #f7f9fb;
  color: var(--brand);
}

.danger {
  border-color: #f2c6ca;
  border-radius: 4px;
  background: var(--red-soft);
  color: var(--red);
}

.danger:hover {
  border-color: #e9a8ae;
  background: #ffe5e8;
}

/* Panels, cards and dashboard */
.panel {
  margin-bottom: 22px;
  border-color: #e2e5e9;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0 72px, var(--cyan) 72px 116px, transparent 116px);
}

.panel-head {
  min-height: 74px;
  padding: 17px 22px;
  border-bottom-color: var(--line-soft);
}

.panel-head.compact {
  min-height: 66px;
  padding: 14px 20px;
}

.panel h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.panel p {
  margin-top: 5px;
  color: #85898e;
  font-size: 12px;
}

.cards {
  gap: 16px;
  margin-bottom: 22px;
}

.stat {
  min-height: 144px;
  justify-content: center;
  padding: 22px;
  border-color: #e2e5e9;
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 3px;
  background: var(--brand);
}

.stat.blue::after { background: var(--brand); }
.stat.purple::after { background: var(--rose); }
.stat.orange::after { background: var(--amber); }
.stat.red::after { background: var(--red); }

.stat i {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 3px;
  font-size: 14px;
}

.stat.blue i {
  background: var(--brand-soft);
  color: var(--brand);
}

.stat.purple i {
  background: var(--rose-soft);
  color: var(--rose);
}

.stat.orange i {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.stat.red i {
  background: var(--red-soft);
  color: var(--red);
}

.stat span {
  color: #74787e;
  font-size: 12px;
}

.stat strong {
  margin-top: 12px;
  color: var(--text);
  font-size: 31px;
  font-weight: 600;
}

.stat small {
  margin-top: 8px;
  color: #9a9da2;
}

.dashboard-grid {
  gap: 16px;
  margin-bottom: 22px;
}

.list-panel {
  padding: 6px 20px 16px;
}

.todo-row,
.feedback-row {
  padding: 13px 0;
}

.avatar-dot,
.face-dot {
  border-radius: 3px;
}

.avatar-dot {
  background: var(--brand-soft);
  color: var(--brand);
}

.face-dot {
  background: var(--green-soft);
  color: var(--green-dark);
}

.panel-link {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e0e4e8;
  border-radius: 3px;
  color: #656a70;
  font-size: 11px;
}

.panel-link:hover {
  border-color: #aebbd0;
  background: var(--brand-soft);
  color: var(--brand);
}

.status,
.pill {
  display: inline-flex;
  min-width: 52px;
  min-height: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #d7e5f7;
  border-radius: 3px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}

.status.warn {
  border-color: #f1ddb5;
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.status.done {
  border-color: #c8ebe4;
  background: var(--green-soft);
  color: var(--green-dark);
}

.ai-metrics {
  padding: 18px 14px;
  background: #fbfcfd;
}

.ai-metrics strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
}

.trend-chart {
  margin: 0 20px 20px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fbfcfd;
}

.trend-line-svg {
  display: block;
  width: 100%;
  height: 132px;
  overflow: visible;
}

.trend-grid {
  stroke: #e6e9ed;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-baseline {
  stroke: #cfd5dc;
}

.trend-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trend-point {
  fill: #ffffff;
  stroke: var(--rose);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.trend-y-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.trend-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10px;
}

.study-grid {
  grid-template-columns: 210px 1fr 260px;
}

.ring-card {
  background: conic-gradient(var(--brand) 0 35%, var(--green) 35% 68%, var(--amber) 68% 86%, var(--rose) 86% 100%);
  box-shadow: none;
}

.bar-row i {
  background: var(--brand);
}

.warning-list {
  border-radius: 4px;
}

/* Data tables */
.table-wrap {
  background: #fff;
}

table {
  min-width: 840px;
}

th,
td {
  padding: 14px 18px;
  border-bottom-color: #eceef1;
  font-size: 13px;
}

th {
  top: 0;
  color: #666a70;
  background: #f7f8fa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

td {
  color: #3c4046;
}

tbody tr:hover {
  background: #f8fbff;
}

.cell-actions {
  gap: 6px;
  white-space: nowrap;
}

.cell-actions button {
  min-height: 30px;
  border-radius: 3px;
}

.pagination {
  padding: 15px 20px;
  background: #fbfcfd;
}

.pagination button {
  min-height: 32px;
}

/* Forms and dialogs */
dialog {
  width: min(800px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(22, 28, 36, 0.5);
  backdrop-filter: blur(5px);
}

.modal-head {
  position: relative;
  min-height: 72px;
  padding: 18px 24px;
}

.modal-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 52px;
  height: 3px;
  background: var(--cyan);
}

.modal-head h2 {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}

.icon {
  width: 34px;
  min-height: 34px;
  border-radius: 3px;
}

#modalFields {
  max-height: min(68vh, 650px);
  gap: 18px;
  padding: 24px;
}

label {
  gap: 7px;
  color: #484c52;
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  min-height: 42px;
  padding: 9px 12px;
  border-color: #d8dce1;
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aeb6c0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 56, 139, 0.09);
}

textarea {
  min-height: 104px;
}

.form-note,
.checkbox-group {
  border-radius: 4px;
  background: #f8fbff;
}

.checkbox-grid {
  gap: 8px;
}

.check-card {
  border-radius: 4px;
}

.check-card:hover {
  border-color: #9cb5d5;
  background: #f8fbff;
}

.actions {
  padding: 16px 24px 20px;
  background: #fbfcfd;
}

.message-dialog {
  width: min(540px, calc(100vw - 32px));
}

.message-body {
  padding: 26px 24px;
  color: #41454b;
}

.error {
  border-radius: 4px;
}

.image-link img {
  border-radius: 4px;
}

/* Review workspace */
.review-body {
  background: #eef1f4;
  color: var(--text);
}

.review-header {
  height: 82px;
  border-bottom-color: #e1e4e8;
  background: #fff;
}

.review-brand {
  gap: 12px;
}

.review-brand img {
  width: 58px;
  height: 58px;
}

.review-brand strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
}

.review-brand span {
  color: var(--muted);
  font-size: 12px;
}

.review-shell {
  height: calc(100vh - 82px);
  grid-template-columns: 330px minmax(0, 1fr);
}

.review-sidebar {
  padding: 16px;
  border-right-color: #dfe3e8;
  background: #f7f8fa;
}

.review-panel {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(35, 24, 21, 0.035);
}

.review-panel h2 {
  font-size: 16px;
  font-weight: 650;
}

.tool-grid button,
.tool-btn {
  min-height: 40px;
}

.tool-btn.active,
.page-list button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.page-list button,
.reference-list a,
.page-list img,
.reference-list img,
.empty-reference {
  border-radius: 4px;
}

.reference-list a.active {
  border-color: var(--rose);
  background: var(--rose-soft);
  color: #a51d61;
}

.review-workspace {
  background: #e7ebef;
}

.review-toolbar-status {
  color: #70747a;
  background: #fff;
}

/* Motion */
#content > * {
  animation: yc-rise 280ms ease both;
}

#content > *:nth-child(2) { animation-delay: 30ms; }
#content > *:nth-child(3) { animation-delay: 60ms; }
#content > *:nth-child(4) { animation-delay: 90ms; }

@keyframes yc-rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid > :last-child {
    grid-column: 1 / -1;
  }

  .study-grid {
    grid-template-columns: 190px 1fr;
  }

  .warning-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .login-view {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
  }

  .login-copy {
    display: flex;
    min-height: 42vh;
    padding: 52px 9vw;
  }

  .login-copy::after {
    font-size: 120px;
  }

  .login-logo {
    width: 176px;
    min-height: 0;
    margin-bottom: 30px;
    padding: 0;
  }

  .login-brand-logo { width: 168px; max-height: 116px; }

  .login-copy h1 {
    font-size: 40px;
  }

  .login-copy .login-lead,
  .login-feature-grid {
    display: none;
  }

  .login-panel {
    min-height: 58vh;
    padding: 56px 9vw;
  }

  .login-panel-head {
    margin-bottom: 42px;
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
  }

  .brand.small {
    min-height: 96px;
  }

  .sidebar-brand-logo {
    width: 106px;
    max-height: 64px;
  }

  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .nav-btn::before,
  .brand.small::after {
    display: none;
  }

  #logoutBtn {
    width: calc(100% - 24px);
    margin: 0 12px 14px;
  }

  .topbar {
    position: static;
  }

  #content {
    padding: 24px;
  }
}

@media (max-width: 700px) {
  .login-copy {
    min-height: 32vh;
    padding: 34px 28px;
  }

  .login-logo {
    width: 128px;
    min-height: 0;
    margin-bottom: 18px;
    padding: 0;
  }

  .login-brand-logo {
    width: 124px;
    max-height: 86px;
  }

  .login-copy .brand-eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .login-copy h1 {
    margin: 0;
    font-size: 28px;
  }

  .login-panel {
    min-height: 68vh;
    padding: 40px 28px;
  }

  .login-panel-head {
    margin-bottom: 30px;
  }

  .topbar {
    padding: 16px 20px;
  }

  .user-box {
    width: 100%;
  }

  #content {
    padding: 18px 14px 36px;
  }

  .cards,
  .dashboard-grid,
  .study-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > :last-child,
  .warning-list {
    grid-column: auto;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head .primary,
  .panel-head .add-btn {
    width: 100%;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination > div,
  .pagination button {
    width: 100%;
  }

  #modalFields {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .review-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .review-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .review-shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .review-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .canvas-scroll {
    min-height: 70vh;
  }
}
