:root {
  --brand-navy: #2b4162;
  --brand-teal: #385f71;
  --brand-gold: #d7b377;
  --brand-bronze: #8f754f;
  --brand-paper: #f5f0f6;
  --brand-base: url("../img/base-pattern.webp");
  --brand-triangles: url("../img/brand-triangles.svg");
}

@font-face {
  font-family: Expo;
  src: url("../fonts/expo-arabic-book.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: DIN;
  src: url("../fonts/din-next-arabic-regular.woff2") format("woff2");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--brand-navy);
  background: var(--brand-paper) var(--brand-base) center / cover no-repeat fixed;
  font:
    16px DIN,
    Tahoma,
    sans-serif;
}
h1,
h2,
h3,
strong,
.primary,
.brand {
  font-family: Expo, Tahoma, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
a {
  transition: background 0.15s;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  margin: 8px 0 0;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.8;
  color: #6d7b89;
}
svg.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.hidden {
  display: none !important;
}
.overline {
  font-size: 12px;
  color: #8f754f;
}
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 254px;
  background: rgb(255 255 255 / 90%);
  border-left: 1px solid #eae7e6;
  padding: 28px 21px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}
.brand img {
  width: 55px;
  height: 70px;
  object-fit: contain;
}
.brand strong {
  font-size: 16px;
}
.brand small {
  display: block;
  font: 11px DIN;
  margin-top: 7px;
  color: #8d97a0;
}
.nav-caption {
  color: #9b9fa6;
  font-size: 12px;
  margin: 0 15px 14px;
}
nav button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: #74818e;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 6px;
  text-align: right;
}
nav button.active {
  background: #2b4162;
  color: white;
  box-shadow: 0 7px 16px #2b416219;
}
nav button:hover:not(.active) {
  background: #f5f0f6;
}
.side-bottom {
  margin-top: auto;
}
.profile {
  display: flex;
  gap: 11px;
  padding: 18px 0;
  border-top: 1px solid #ece9e7;
  overflow: hidden;
}
.profile > div { min-width: 0; }
.profile strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 10px;
  color: #8a939b;
  margin-top: 6px;
}
.avatar {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5efe4;
  color: #8f754f;
  flex-shrink: 0;
}
.logout {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  color: #8a939b;
  padding: 13px;
  font-size: 12px;
}
main {
  margin-right: 254px;
  padding: 31px 40px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 33px;
}
.header-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  color: #83909b;
}
.status {
  border: 1px solid #d8e5df;
  background: #f1f7f4;
  padding: 6px 12px;
  border-radius: 20px;
  color: #4e8065;
  font-size: 11px;
}
.status.offline {
  color: #9e4d3c;
  background: #fff1ec;
  border-color: #edd3ca;
}
#workspace {
  flex: 1;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.page-intro h2 {
  margin: 0;
  font-size: 20px;
}
.page-intro p {
  font-size: 13px;
  margin: 9px 0 0;
}
.page-intro p:first-child {
  margin-top: 0;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  min-height: 44px;
  padding: 11px 20px;
  font-size: 13px;
}
.primary {
  background: #2b4162;
  color: white;
}
.primary:hover {
  background: #385f71;
}
.secondary {
  background: white;
  color: var(--brand-teal);
  border: 1px solid #dedfe2;
}
.secondary:hover {
  background: #f5f0f6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid #ebe7e5;
  border-radius: 15px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat small {
  display: block;
  color: #8a9199;
  font-size: 13px;
}
.stat strong {
  display: block;
  font: 34px Expo;
  margin-top: 8px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 12px;
  background: #f4eee3;
  color: #a18249;
}
.stat:nth-child(2) .stat-icon {
  background: #edf3f2;
  color: var(--brand-teal);
}
.stat:nth-child(3) .stat-icon {
  background: #eff1f6;
  color: var(--brand-navy);
}
.grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 23px;
}
.card {
  background: white;
  border: 1px solid #e8e5e4;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 23px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.card-head h3 {
  margin: 0;
}
.card-head small {
  color: #939ba2;
  font-size: 11px;
}
.card-head .text-button {
  padding: 0;
}
.accent-card {
  background: #2b4162;
  color: white;
  position: relative;
  overflow: hidden;
  border: 0;
}
.accent-card p {
  color: #d0d7df;
}
.accent-card::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: min(35%, 124px);
  aspect-ratio: 264 / 186;
  background: var(--brand-triangles) center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
  transform: scaleX(-1);
}
.accent-card .primary {
  background: #d7b377;
  color: var(--brand-navy);
}
.accent-card .overline {
  color: #d7b377;
}
.accent-card h2 {
  font-size: 26px;
  margin: 18px 0;
}
.quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quicklinks button {
  padding: 16px 9px;
  border-radius: 10px;
  background: #f8f7f8;
  color: var(--brand-teal);
  font-size: 12px;
}
.quicklinks svg {
  display: block;
  margin: 0 auto 10px;
}
.program {
  display: flex;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid #efeded;
}
.program:last-child {
  border-bottom: 0;
}
.program-time {
  min-width: 67px;
  color: #8f754f;
  font-size: 14px;
  direction: ltr;
}
.program h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.program p {
  font-size: 12px;
  white-space: pre-wrap;
  margin: 0;
}
.program .tags {
  margin-top: 10px;
}
.tag {
  display: inline-block;
  background: #f1f4f2;
  color: #517864;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}
.tag.gold {
  color: #94713b;
  background: #f8f1e5;
}
.tag.off {
  background: #f8ece8;
  color: #a05d4c;
}
.empty {
  padding: 37px 15px;
  text-align: center;
  color: #9aa1a8;
  font-size: 13px;
  line-height: 1.8;
}
.empty svg {
  display: block;
  width: 35px;
  height: 35px;
  margin: 0 auto 13px;
  color: #c7b998;
}
.recent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0eeee;
}
.recent strong {
  font-size: 12px;
}
.recent small {
  display: block;
  color: #9a9fa6;
  font-size: 11px;
  margin-top: 5px;
}
.recent time {
  margin-right: auto;
  direction: ltr;
  font-size: 12px;
  color: #8a939c;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar input[type="search"] {
  flex: 1;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  white-space: nowrap;
}
th {
  background: #f8f7f8;
  color: #8b949e;
  font-size: 12px;
  font-weight: normal;
  padding: 14px;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid #efeeee;
  font-size: 13px;
}
td .text-button {
  padding: 0 6px;
}
.text-button {
  background: none;
  color: #8f754f;
  padding: 13px;
  font-size: 13px;
}
.text-button:hover {
  color: var(--brand-navy);
}
.empty-note {
  font-size: 12px;
  color: #8f98a2;
}
.child-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f0ece4;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.child-bar label {
  margin: 0;
}
.child-bar select {
  width: auto;
  min-width: 190px;
  background: white;
}
label {
  display: block;
  font-size: 13px;
  color: #6f7b86;
  margin-bottom: 17px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dedfe3;
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--brand-navy);
  background: white;
  margin-top: 7px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #d7b37755;
  border-color: #d7b377;
}
input::placeholder {
  color: #a3a9b1;
}
.checkin-input {
  font-size: 30px;
  text-align: center;
  height: 77px;
  letter-spacing: 6px;
  background: #faf9fa;
}
.checkin-input::placeholder {
  font-size: 16px;
  letter-spacing: 0;
}
.checkin-form .primary {
  width: 100%;
  margin-top: 5px;
}
.hint {
  font-size: 12px;
  text-align: center;
  color: #959ca4;
  margin: 12px 0 21px;
}
.message {
  border-radius: 10px;
  padding: 15px 18px;
  line-height: 1.8;
  font-size: 13px;
  margin: 16px 0;
  background: #f1f3f5;
  color: var(--brand-teal);
}
.message.success {
  background: #edf5ef;
  color: #3f7454;
}
.message.error {
  background: #fbefeb;
  color: #a55440;
}
.message.warning {
  background: #fbf4e5;
  color: #8f754f;
}
.points-number {
  font: 55px Expo;
  color: #8f754f;
}
.ledger-plus {
  color: #4e8065;
}
.ledger-minus {
  color: #a95c48;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 17px;
}
.span-all {
  grid-column: 1/-1;
}
dialog {
  border: 0;
  border-radius: 18px;
  width: min(580px, calc(100% - 30px));
  padding: 28px;
  max-height: 90vh;
  color: var(--brand-navy);
  box-shadow: 0 20px 80px #2b416230;
}
dialog::backdrop {
  background: #243a56a0;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.dialog-top h2 {
  font-size: 20px;
  margin: 0;
}
.icon-button {
  display: grid;
  place-items: center;
  background: #f4f1f4;
  color: var(--brand-teal);
  border-radius: 8px;
  padding: 8px;
}
#editor-save {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #2b4162;
  color: white;
  padding: 16px 22px;
  max-width: 450px;
  border-radius: 12px;
  z-index: 1000;
  border-right: 4px solid #d7b377;
  line-height: 1.7;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: linear-gradient(rgb(43 65 98 / 90%), rgb(43 65 98 / 94%)), var(--brand-base) center / cover;
  position: relative;
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-art > img {
  width: 130px;
  height: 160px;
  object-fit: contain;
  background: white;
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 50px;
  z-index: 1;
}
.auth-art h1 {
  font-size: 40px;
  margin: 15px 0 20px;
}
.auth-art p {
  color: #c9d0da;
}
.auth-art .overline {
  color: #d7b377;
}
.triangles {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  width: min(55%, 350px);
  aspect-ratio: 264 / 186;
  background: var(--brand-triangles) center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
  transform: rotate(180deg);
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
  background: rgb(245 240 246 / 64%);
}
.auth-panel form {
  width: 360px;
}
.auth-panel h2 {
  font-size: 27px;
  margin: 13px 0;
}
.auth-panel p {
  font-size: 14px;
}
.auth-panel .primary {
  width: 100%;
  margin-top: 10px;
}
.auth-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 25px;
  padding: 5px;
  border: 1px solid #ded7df;
  border-radius: 12px;
  background: #ebe5ed;
}
.auth-modes button {
  min-height: 44px;
  padding: 8px 5px;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-teal);
  font-size: 14px;
}
.auth-modes button:hover {
  background: #f5f0f6;
}
.auth-modes button[aria-pressed="true"] {
  background: #2b4162;
  color: #fff;
}
.fine {
  font-size: 11px !important;
  color: #95949b !important;
}
.auth-credit {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  color: #98959d;
}
footer {
  margin: 35px -40px 0;
  line-height: 0;
}
footer img {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 1500px) {
  main {
    padding: 40px 60px 0;
  }
  footer {
    margin-right: -60px;
    margin-left: -60px;
  }
  .grid {
    grid-template-columns: 1.65fr 1fr;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 220px;
    padding: 24px 15px;
  }
  main {
    margin-right: 220px;
    padding: 26px 25px 0;
  }
  footer {
    margin-right: -25px;
    margin-left: -25px;
  }
  .brand strong {
    font-size: 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-art h1 {
    font-size: 32px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #e9e5e5;
  }
  .brand {
    margin-bottom: 15px;
  }
  .brand img {
    height: 50px;
    width: 40px;
  }
  .nav-caption,
  .profile {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  nav button {
    width: auto;
    flex-shrink: 0;
    padding: 10px;
    font-size: 12px;
    gap: 6px;
  }
  nav button .icon {
    width: 16px;
  }
  .side-bottom {
    position: absolute;
    top: 22px;
    left: 15px;
  }
  .logout {
    font-size: 11px;
    gap: 10px;
  }
  .logout svg {
    display: none;
  }
  main {
    margin: 0;
    padding: 23px 16px 0;
  }
  header {
    gap: 10px;
    margin-bottom: 25px;
  }
  .header-meta {
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
  }
  h1 {
    font-size: 22px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 14px 11px;
    align-items: flex-start;
  }
  .stat small {
    font-size: 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat-icon {
    width: 27px;
    height: 30px;
    border-radius: 7px;
  }
  .stat-icon svg {
    width: 17px;
  }
  .card {
    padding: 20px;
  }
  .page-intro h2 {
    font-size: 17px;
  }
  .page-intro .primary {
    font-size: 11px;
    padding: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 24px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .auth-art > img {
    width: 65px;
    height: 80px;
    margin: 0;
    padding: 8px;
    border-radius: 10px;
  }
  .auth-art h1 {
    font-size: 24px;
    margin: 5px 0;
  }
  .auth-art p {
    display: none;
  }
  .auth-art .overline {
    font-size: 10px;
  }
  .auth-panel {
    padding: 35px 25px 70px;
  }
  .auth-panel form {
    width: 100%;
    max-width: 400px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .secondary {
    font-size: 11px;
    padding: 10px;
  }
  footer {
    margin-right: -16px;
    margin-left: -16px;
  }
  .child-bar select {
    min-width: 0;
    flex: 1;
  }
  .quicklinks {
    gap: 5px;
  }
  .quicklinks button {
    font-size: 10px;
  }
}

/* Keep sign-out visible, including on short laptop screens. */
.sidebar .brand,
.sidebar .nav-caption {
  flex-shrink: 0;
}
.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.sidebar .side-bottom {
  flex-shrink: 0;
  padding-top: 12px;
  background: white;
}
.logout {
  min-height: 44px;
  border: 1px solid #d8c4a2;
  border-radius: 10px;
  background: #f7f1e7;
  color: var(--brand-navy);
  font-family: Expo, Tahoma, sans-serif;
  font-size: 13px;
  align-items: center;
}
.logout:hover {
  background: #eee2ce;
}
@media (max-width: 700px) {
  .sidebar nav {
    flex: none;
    overflow-y: visible;
    overflow-x: auto;
  }
  .sidebar .side-bottom {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee8df;
  }
  .logout {
    width: auto;
    min-width: 148px;
    gap: 18px;
    font-size: 12px;
  }
  .logout svg {
    display: block;
  }
}

/* The identity guide uses a gold rule and diamond beneath section titles. */
#page-title::after,
#auth-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 7px;
  margin-top: 12px;
  background:
    linear-gradient(var(--brand-bronze), var(--brand-bronze)) right center / 31px 1px no-repeat,
    linear-gradient(var(--brand-bronze), var(--brand-bronze)) left center / 31px 1px no-repeat,
    conic-gradient(from 45deg at 50% 50%, var(--brand-gold) 0deg 360deg) center / 7px 7px no-repeat;
}
#page-title::after,
#auth-title::after {
  clip-path: polygon(0 44%, 43% 44%, 50% 0, 57% 44%, 100% 44%, 100% 57%, 57% 57%, 50% 100%, 43% 57%, 0 57%);
}
.auth-panel form,
.auth-art > div:not(.triangles) {
  position: relative;
  z-index: 1;
}
.auth-panel form {
  max-width: 100%;
  padding: clamp(18px, 3vw, 30px);
  box-sizing: border-box;
  border: 1px solid rgb(143 117 79 / 22%);
  border-radius: 16px;
  background: rgb(255 255 255 / 85%);
}
.sidebar .side-bottom {
  background: transparent;
}
@media (max-width: 700px) {
  body {
    background-attachment: scroll;
  }
  .auth-art .triangles {
    width: 110px;
    height: auto;
  }
}
.text-button.delete-student {
  color: #a33934;
}
.text-button.delete-student:hover {
  color: #79251f;
  text-decoration: underline;
}

#action-dialog {
  width: min(440px, calc(100% - 28px));
  padding: clamp(20px, 4vw, 28px);
  border-top: 3px solid var(--brand-gold);
}
.action-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.action-heading h2 {
  font-size: 20px;
  margin: 0;
}
.action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 11px;
  background: #fbefeb;
  color: #a33934;
}
#action-description {
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
#action-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #ede9e4;
}
#action-submit {
  background: #a33934;
}
#action-submit:hover {
  background: #79251f;
}

.profile.profile-trigger {
  width: 100%;
  align-items: center;
  padding: 12px 8px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--brand-navy);
  text-align: start;
}
.profile-trigger:hover,
.profile-trigger[aria-current="page"] {
  background: #f7f1e7;
  border-color: #e9dbc2;
}
.profile-trigger .profile-identity {
  min-width: 0;
  flex: 1;
}
.profile-trigger > [data-icon] {
  display: flex;
  color: var(--brand-bronze);
}
.avatar {
  overflow: hidden;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#profile-settings {
  flex: 1;
}
.profile-settings-grid {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(0, 1.4fr);
  align-items: stretch;
  max-width: 1120px;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e0da;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgb(43 65 98 / 5%);
}
.profile-settings-grid > .card {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: none;
}
.profile-settings-grid .profile-summary {
  background: linear-gradient(160deg, #faf8f5, #fff);
  border-inline-end: 1px solid #ece7df;
}
.profile-section-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border: 1px solid #e9dbc2;
  border-radius: 11px;
  background: #f7f1e7;
  color: var(--brand-bronze);
}
.profile-settings-grid h2 { margin: 0 0 26px; font-size: 20px; }
.profile-details { margin: 0; }
.profile-details > div { padding: 14px 0; border-bottom: 1px solid #ece7df; }
.profile-details > div:first-child { padding-top: 0; }
.profile-details dt, .profile-photo-controls small, .profile-note {
  color: #6d7b89;
  font-size: 13px;
}
.profile-details dd {
  margin: 6px 0 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.profile-details dd[dir="ltr"] { text-align: right; }
.profile-note { margin: 20px 0 0; line-height: 1.8; }
#profile-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid #ece7df;
}
.avatar.profile-preview {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  font-size: 32px;
  border: 4px solid white;
  outline: 1px solid #d7b377;
  outline-offset: 0;
  box-shadow: 0 4px 16px rgb(43 65 98 / 8%);
}
.profile-photo-controls { min-width: 0; flex: 1; }
.profile-photo-title { display: block; margin-bottom: 12px; font-size: 14px; }
.profile-photo-controls small { display: block; margin-top: 10px; font-size: 12px; }
#profile-choose-photo { padding: 9px 16px; border-color: #d6c4a6; color: var(--brand-navy); }
#profile-photo[hidden] { display: none; }
#profile-remove-photo { padding: 8px 0 0; font-size: 12px; }
#profile-phone { max-width: 100%; background: #fdfcfd; height: 50px; }
.profile-save-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ece7df;
}
#profile-save { margin: 0; min-width: 160px; }
#profile-feedback { margin-bottom: 0; }
#profile-fields:disabled { opacity: .6; }
.profile-trigger .profile-identity { text-align: start; }
.profile-trigger .profile-identity strong { display: block; text-align: start; }
.profile-trigger > [data-icon] .icon { width: 19px; height: 19px; }
@media (max-width: 960px) {
  .profile-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-settings-grid .profile-summary { border-inline-end: 0; border-bottom: 1px solid #ece7df; }
  .profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .profile-details > div:first-child { padding-top: 14px; }
}
@media (max-width: 480px) {
  .profile-details { grid-template-columns: minmax(0, 1fr); }
  .profile-photo-row { gap: 16px; }
  .avatar.profile-preview { width: 68px; height: 68px; flex-basis: 68px; }
  #profile-save { width: 100%; }
}
@media (max-width: 700px) {
  .sidebar .side-bottom {
    align-items: center;
    gap: 8px;
  }
  .profile.profile-trigger {
    display: flex;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-block: 6px;
  }
  .side-bottom .logout {
    min-width: 0;
    flex-shrink: 0;
    gap: 6px;
    padding-inline: 8px;
  }
}

.gate-identity { margin-top: 24px; padding: 24px; border: 1px solid #e9dbc2; border-radius: 16px; background: #faf8f5; }
.gate-person { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.avatar.gate-photo { width: 120px; height: 120px; flex: 0 0 120px; border: 3px solid white; outline: 1px solid #d7b377; font-size: 40px; }
.gate-person h3 { margin: 12px 0; font-size: 21px; }
.gate-person p { margin: 0; font-size: 14px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media(max-width: 600px) { .gate-person { flex-direction: column; text-align: center; } .gate-actions button { width: 100%; } }
.digital-student-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--brand-gold);
  border-radius: 22px;
  color: white;
  background: var(--brand-triangles) left top / 200px auto no-repeat, linear-gradient(120deg, var(--brand-teal), var(--brand-navy) 65%);
  box-shadow: 0 12px 30px rgb(43 65 98 / 12%);
}
.digital-card-top, .digital-card-body, .digital-card-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.digital-card-top { padding-bottom: 24px; border-bottom: 1px solid rgb(215 179 119 / 30%); }
.digital-card-eyebrow { font-size: 13px; color: #e9d3af; }
.digital-card-top h2 { margin: 8px 0 0; font-size: 21px; }
.digital-card-logo { width: 66px; height: 78px; object-fit: contain; padding: 6px; background: white; border-radius: 10px; }
.digital-card-body { padding: 28px 0; }
.digital-card-person { justify-content: flex-start; }
.digital-card-person .avatar { width: 96px; height: 96px; flex: 0 0 96px; font-size: 36px; border: 3px solid #e9d3af; }
.digital-card-person h3 { font-size: clamp(20px, 2vw, 26px); margin: 8px 0 12px; }
.digital-card-status { font-size: 13px; padding: 5px 12px; border-radius: 30px; background: rgb(255 255 255 / 12%); }
.digital-card-code { min-width: 180px; padding: 16px 24px; border: 1px solid rgb(215 179 119 / 50%); border-radius: 14px; background: rgb(0 0 0 / 8%); text-align: center; }
.digital-card-code span { display: block; font-size: 13px; color: #e9d3af; }
.digital-card-code strong { display: block; font-size: 32px; letter-spacing: 5px; margin-top: 6px; }
.digital-card-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding-top: 22px; border-top: 1px solid rgb(215 179 119 / 30%); }
.digital-card-details dt { font-size: 12px; color: #e9d3af; margin-bottom: 8px; }
.digital-card-details dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-size: 15px; }
@media(max-width: 1000px) { .digital-card-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 600px) {
  .digital-card-body { align-items: stretch; flex-direction: column; }
  .digital-card-person { gap: 16px; }
  .digital-card-person .avatar { width: 76px; height: 76px; flex-basis: 76px; }
  .digital-card-details { grid-template-columns: minmax(0, 1fr); }
}
#admin-account-settings { margin-top: 24px; }
.admin-setting { border-top: 1px solid #e5e0da; padding: 16px 0; }
.admin-setting summary { cursor: pointer; color: var(--brand-navy); font-family: Expo, Tahoma, sans-serif; font-size: 14px; }
.admin-setting form { padding-top: 20px; }
.admin-setting label { display: block; margin-bottom: 16px; }
.admin-setting button { margin-top: 4px; }
.admin-setting .message { font-size: 13px; }
/* Responsive navigation and content sizing. */
.mobile-menu-toggle { display: none; }
main, #workspace, #content, .grid > *, .stats > *, .card, .profile-settings-grid > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
dialog { overscroll-behavior: contain; max-height: calc(100dvh - 32px); }
.recent > div, .program > div { min-width: 0; overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; overscroll-behavior-inline: contain; }
button { touch-action: manipulation; }
@media (min-width: 901px) and (max-width: 1200px) {
  .stats { gap: 12px; }
  .stat { padding: 18px 14px; gap: 8px; }
  .stat-icon { width: 34px; height: 38px; flex-shrink: 0; }
  .header-meta { gap: 12px; }
  .digital-card-body { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 14px max(18px, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid #e5e0da;
    background: #fff;
  }
  .sidebar .brand { margin: 0; gap: 10px; }
  .sidebar .brand img { width: 40px; height: 50px; }
  .sidebar .brand strong { font-size: 14px; }
  .sidebar .brand small { font-size: 11px; margin-top: 4px; }
  .mobile-menu-toggle { display: inline-flex; align-self: center; min-height: 44px; padding: 10px 14px; }
  .sidebar .nav-caption { display: none; }
  .sidebar #nav, .sidebar .side-bottom { display: none; }
  .sidebar.mobile-menu-open #nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    grid-column: 1 / -1;
    overflow: visible;
    padding-top: 12px;
    border-top: 1px solid #eee8df;
  }
  .sidebar nav button { width: 100%; min-height: 48px; margin: 0; font-size: 13px; white-space: normal; }
  .sidebar nav button .icon { width: 20px; flex-shrink: 0; }
  .sidebar.mobile-menu-open .side-bottom {
    display: flex;
    grid-column: 1 / -1;
    position: static;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid #eee8df;
  }
  .sidebar .profile-trigger { display: flex; flex: 1; margin: 0; min-width: 0; }
  .sidebar .logout { width: auto; min-height: 44px; flex-shrink: 0; }
  .sidebar .logout svg { display: block; }
  main { margin: 0; padding: 24px 24px 0; min-height: calc(100dvh - 78px); }
  footer { margin-inline: -24px; padding-bottom: env(safe-area-inset-bottom); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  header { align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .header-meta { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .card { padding: 24px; }
  .toolbar input[type="search"] { flex-basis: 100%; }
  .toolbar { gap: 10px; }
  .toolbar .secondary { flex: 1 1 auto; min-height: 44px; }
  .auth-screen { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 24px; flex-direction: row; align-items: center; gap: 20px; }
  .auth-art > img { width: 65px; height: 80px; margin: 0; }
  .auth-art h1 { font-size: 24px; }
  .auth-art p { display: none; }
  .auth-panel { padding: 28px 20px 40px; }
}
@media (max-width: 600px) {
  main { padding: 22px 16px 0; }
  footer { margin-inline: -16px; }
  h1 { font-size: 21px; line-height: 1.6; }
  .header-meta { flex-direction: column; font-size: 11px; flex-shrink: 0; }
  .card { padding: 18px; border-radius: 16px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 14px 10px; position: relative; }
  .stat-icon { display: none; }
  .stat small { font-size: 12px; line-height: 1.5; }
  .stat strong { font-size: 27px; }
  .page-intro, .card-head { flex-wrap: wrap; gap: 12px; }
  .page-intro h2 { font-size: 18px; }
  .primary, .secondary, .text-button { min-height: 44px; }
  input, select, textarea { font-size: 16px; min-height: 48px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  dialog { width: calc(100% - 20px); padding: 20px; border-radius: 18px; }
  .dialog-top { gap: 12px; }
  .dialog-top h2 { font-size: 18px; }
  .recent { flex-wrap: wrap; gap: 10px; }
  .recent > div { flex-basis: 50%; }
  .recent .secondary { margin-inline-start: auto; }
  .program { flex-wrap: wrap; gap: 12px; }
  .profile-settings-grid > .card { padding: 22px 18px; }
  .profile-photo-row { flex-wrap: wrap; }
  .gate-identity { padding: 18px; }
  .checkin-input { font-size: 24px; }
  .auth-panel { padding-inline: 16px; }
  .auth-art { gap: 14px; padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.student-name-link { background: transparent; color: inherit; font: inherit; text-align: inherit; padding: 4px 0; text-decoration: underline; text-decoration-color: #d7b377; text-underline-offset: 5px; white-space: normal; }
.student-name-link:hover { color: var(--brand-bronze); }
.student-name-link:focus-visible { outline: 2px solid var(--brand-gold); border-radius: 4px; }
#student-details-dialog { width: min(640px, calc(100% - 24px)); border-top: 3px solid var(--brand-gold); }
.student-details-heading { display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 14px; background: #f7f3ed; margin-bottom: 20px; }
.student-details-heading .avatar { width: 88px; height: 88px; font-size: 30px; border: 2px solid var(--brand-gold); }
.student-details-heading h3 { margin: 0 0 12px; }
.student-details-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.student-details-list > div { border-bottom: 1px solid #eee8df; padding-bottom: 12px; min-width: 0; }
.student-details-list dt { font-size: 13px; color: #6d7b89; }
.student-details-list dd { margin: 8px 0 0; text-align: right; overflow-wrap: anywhere; }
@media(max-width: 520px) { .student-details-list { grid-template-columns: minmax(0,1fr); } .student-details-heading { padding: 14px; gap: 14px; } .student-name-link { min-height: 44px; } }
.onboarding-card { margin-bottom: 26px; }
.onboarding-card .card-head { align-items: center; gap: 16px; }
.onboarding-card h3 { margin: 8px 0 0; }
.onboarding-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 30px 0 24px;
  gap: 0;
}
.onboarding-timeline li { position: relative; min-width: 0; padding-inline-end: 20px; }
.onboarding-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 42px;
  left: 0;
  height: 2px;
  background: #e7e1d7;
}
.onboarding-step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d7b377;
  border-radius: 50%;
  color: #8f754f;
  background: #fbf7f0;
  font-size: 17px;
  margin-bottom: 16px;
}
.onboarding-timeline .is-complete .onboarding-step-number {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: white;
}
.onboarding-timeline h4 { font-family: Expo, Tahoma, sans-serif; font-size: 15px; margin: 0 0 8px; }
.onboarding-timeline p { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.onboarding-timeline time { display: block; font-size: 12px; color: #8f754f; margin-top: 8px; }
.onboarding-student { padding: 24px 0 0; border-top: 1px solid #ece7df; }
.onboarding-student > .card-head { margin-bottom: 18px; }
.onboarding-student .onboarding-card { background: #fcfbf9; box-shadow: none; }
.onboarding-student small { color: #6d7b89; }
#student-details-dialog .onboarding-card { padding: 20px; margin: 24px 0 0; }
#student-details-dialog .onboarding-timeline { grid-template-columns: 1fr; gap: 24px; }
#student-details-dialog .onboarding-timeline li { display: flex; gap: 16px; padding: 0; }
#student-details-dialog .onboarding-timeline li:not(:last-child)::after { right: 19px; top: 42px; bottom: -24px; width: 2px; height: auto; left: auto; }
#student-details-dialog .onboarding-step-number { flex-shrink: 0; margin: 0; }
@media (max-width: 600px) {
  .onboarding-timeline { grid-template-columns: 1fr; gap: 24px; }
  .onboarding-timeline li { display: flex; gap: 16px; padding: 0; }
  .onboarding-step-number { flex-shrink: 0; margin: 0; }
  .onboarding-timeline li:not(:last-child)::after { right: 19px; top: 42px; bottom: -24px; width: 2px; height: auto; left: auto; }
  .onboarding-card .secondary { width: 100%; }
}
/* قائمة الغائبين */
.absent-card { margin-top: 24px; }
.absent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0eeee;
}
.absent-row:last-child { border-bottom: 0; }
.absent-name { min-width: 0; flex: 1; }
.absent-name strong { font-size: 13px; }
.absent-name small { display: block; color: #9a9fa6; font-size: 11px; margin-top: 5px; text-align: right; }
.absent-contacts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #c9d8dd;
  background: #eef4f6;
  color: var(--brand-teal);
  font-size: 12px;
}
.wa-link svg.icon { width: 18px; height: 18px; }
.wa-link bdi { font-weight: 600; letter-spacing: 0.3px; }
.wa-link:hover { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }
@media (max-width: 600px) {
  .absent-row { flex-wrap: wrap; }
  .absent-contacts { width: 100%; justify-content: flex-start; }
  .wa-link { flex: 1 1 100%; }
}

/* طلبات التسجيل: تبويب الطلاب وأولياء الأمور */
.application-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.application-tabs [role="tab"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #e5e0da;
  background: rgb(255 255 255 / 88%);
  color: #74818e;
  text-align: right;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.application-tabs [role="tab"]:hover { border-color: var(--brand-gold); }
.application-tabs [role="tab"][aria-selected="true"] {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
  box-shadow: 0 10px 22px #2b416224;
}
.application-tab-label { font-family: Expo, Tahoma, sans-serif; font-size: 16px; }
.application-tab-count {
  min-width: 28px;
  padding: 2px 9px;
  border-radius: 20px;
  background: #f5f0f6;
  color: var(--brand-navy);
  font-size: 12px;
  text-align: center;
}
[aria-selected="true"] .application-tab-count { background: rgb(255 255 255 / 16%); color: #fff; }
.application-tab-pending {
  margin-right: auto;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f8f1e5;
  color: var(--brand-bronze);
  font-size: 11px;
}
[aria-selected="true"] .application-tab-pending { background: var(--brand-gold); color: var(--brand-navy); }
.application-panel { padding-top: 8px; padding-bottom: 8px; }
.application-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0eeee;
}
.application-row:last-child { border-bottom: 0; }
.application-info { flex: 1; min-width: 0; }
.application-info strong { font-size: 14px; }
.application-info small {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 6px;
  color: #8a939b;
  font-size: 12px;
}
.application-sep { margin: 0 8px; color: #c9c2b6; }
.application-actions { display: flex; align-items: center; gap: 4px; }
.tag.status-pending { background: #f8f1e5; color: #94713b; }
.tag.status-rejected { background: #f8ece8; color: #a05d4c; }
@media (max-width: 700px) {
  .application-tabs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .application-row { flex-wrap: wrap; }
  .application-actions { width: 100%; justify-content: space-between; }
}

/* ===== بوكسات النقاط الجاهزة ===== */
.preset-board .card-head { align-items: flex-start; }
.preset-board .card-head small { display: block; margin-top: 6px; }
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.preset-subhead {
  margin: 24px 0 12px;
  font-size: 12px;
  color: var(--brand-bronze);
}
.preset-tile,
.tone-gold {
  --tone: var(--brand-gold);
  --tone-ink: var(--brand-bronze);
  --tone-soft: #f8f1e5;
}
.preset-tile { position: relative; }
.tone-navy { --tone: var(--brand-navy); --tone-ink: var(--brand-navy); --tone-soft: #e9edf3; }
.tone-teal { --tone: var(--brand-teal); --tone-ink: var(--brand-teal); --tone-soft: #e8f0f2; }
.tone-bronze { --tone: var(--brand-bronze); --tone-ink: #6f5a3c; --tone-soft: #f1ebe2; }
.tone-red { --tone: #a33934; --tone-ink: #a33934; --tone-soft: #f8ece8; }
.preset-award {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 138px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #ece7df;
  border-top: 4px solid var(--tone);
  background: #fff;
  color: var(--brand-navy);
  text-align: right;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.preset-award::after {
  /* المثلث: العنصر الأساسي في الهوية */
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 64px;
  height: 64px;
  background: var(--tone);
  opacity: 0.08;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
.preset-award:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px #2b41621a;
  border-color: var(--tone);
}
.preset-award:active:not(:disabled) { transform: translateY(0); }
.preset-award:disabled { cursor: not-allowed; opacity: 0.55; }
.preset-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tone-soft);
  color: var(--tone-ink);
  flex-shrink: 0;
}
.preset-title {
  font-family: Expo, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding-left: 30px;
}
.preset-points {
  margin-top: auto;
  font-family: Expo, Tahoma, sans-serif;
  font-size: 22px;
  color: var(--tone-ink);
}
.preset-edit {
  position: absolute;
  top: 12px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: transparent;
  color: #9aa1a8;
}
.preset-edit svg.icon { width: 17px; height: 17px; }
.preset-edit:hover { background: #f5f0f6; color: var(--brand-navy); }
.preset-off-label {
  position: absolute;
  bottom: 18px;
  left: 14px;
  font-size: 11px;
  color: #a05d4c;
}
.reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e9edf3;
  color: var(--brand-navy);
}
.reward-tag svg.icon { width: 14px; height: 14px; }
.award-program {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* نافذة منح النقاط */
#award-dialog {
  width: min(560px, calc(100% - 28px));
  border-top: 3px solid var(--brand-gold);
}
.award-heading { display: flex; align-items: center; gap: 14px; }
.award-heading h2 { margin: 0 0 6px; font-size: 20px; }
.award-value { font-size: 13px; color: var(--brand-bronze); }
.award-value.is-minus { color: #a33934; }
.award-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}
.award-toolbar select { width: auto; }
.award-bulk {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
  font-size: 12px;
}
.award-bulk .text-button { padding: 8px 6px; font-size: 12px; }
#award-selected { margin-right: auto; color: var(--brand-navy); }
.award-list {
  max-height: min(46vh, 380px);
  overflow-y: auto;
  border: 1px solid #ece7df;
  border-radius: 12px;
  padding: 4px;
  overscroll-behavior: contain;
}
.award-student {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  margin: 0;
}
.award-student:hover { background: #faf8f5; }
.award-student.is-selected { background: #f8f1e5; }
.award-student input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-navy); flex-shrink: 0; }
.award-student .avatar { width: 32px; height: 32px; font-size: 13px; }
.award-student-name { flex: 1; min-width: 0; }
.award-student-name strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-student-name small { display: block; color: #9a9fa6; font-size: 11px; margin-top: 3px; text-align: right; }
.award-balance {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  color: var(--brand-bronze);
}
.award-note { display: block; margin-top: 14px; }
#award-submit { width: 100%; margin-top: 14px; }

/* ترتيب الطلاب حسب النقاط */
.rank-col { width: 56px; text-align: center; }
.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  color: #8a939b;
}
.rank-top .rank-badge { color: #fff; font-family: Expo, Tahoma, sans-serif; }
.rank-1 .rank-badge { background: var(--brand-gold); color: var(--brand-navy); }
.rank-2 .rank-badge { background: #9aa6b2; }
.rank-3 .rank-badge { background: var(--brand-bronze); }
.rank-1 td { background: #fbf7f0; }

@media (max-width: 600px) {
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .preset-award { min-height: 124px; padding: 14px; }
  .preset-title { font-size: 14px; }
  .award-toolbar { grid-template-columns: minmax(0, 1fr); }
  .award-toolbar select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .preset-award, .preset-award:hover:not(:disabled) { transition: none; transform: none; }
}

/* ===== جدول برامج النادي ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pg-schedule { padding-top: 22px; }
.pg-week {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0ece4;
}
.pg-week-nav { flex-shrink: 0; transform: scaleX(-1); }
.pg-week-nav.is-next { transform: none; }
.pg-days {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.pg-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: #74818e;
}
.pg-day:hover { background: #f5f0f6; }
.pg-day-name { font-size: 11px; }
.pg-day-num { font-family: Expo, Tahoma, sans-serif; font-size: 20px; color: var(--brand-navy); }
.pg-day-dot {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 10px;
  line-height: 18px;
  background: #f8f1e5;
  color: var(--brand-bronze);
}
.pg-day-dot:empty { background: transparent; }
.pg-day.is-today { border-color: var(--brand-gold); }
.pg-day.is-selected {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #d0d7df;
  box-shadow: 0 10px 20px #2b416224;
}
.pg-day.is-selected .pg-day-num { color: #fff; }
.pg-day.is-selected .pg-day-dot { background: var(--brand-gold); color: var(--brand-navy); }
.pg-day.is-selected .pg-day-dot:empty { background: transparent; }

.pg-dayhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}
.pg-dayhead h3 { margin: 0; font-size: 19px; }
.pg-dayhead small { display: block; margin-top: 6px; color: #8a939b; font-size: 12px; }
.pg-jump { display: flex; align-items: center; gap: 6px; }
.pg-jump input { width: auto; }

.pg-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #f5f0f6;
  color: var(--brand-navy);
}
.pg-banner > svg.icon { color: var(--brand-bronze); }
.pg-banner small { display: block; font-size: 11px; color: #8a939b; margin-bottom: 4px; }
.pg-banner strong { font-size: 15px; }
.pg-banner-time { margin-right: auto; font-size: 13px; color: var(--brand-bronze); }
.pg-banner.is-live { background: var(--brand-navy); color: #fff; }
.pg-banner.is-live small { color: #c4ccd6; }
.pg-banner.is-live .pg-banner-time { color: var(--brand-gold); }
.pg-banner.is-done > svg.icon { color: var(--brand-teal); }
.pg-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 0 #d7b37799;
  animation: pg-pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pg-pulse {
  70% { box-shadow: 0 0 0 10px #d7b37700; }
  100% { box-shadow: 0 0 0 0 #d7b37700; }
}

/* الخط الزمني */
.pg-timeline { position: relative; }
.pg-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 22px minmax(0, 1fr);
  gap: 0 14px;
  padding-bottom: 22px;
}
.pg-item:last-child { padding-bottom: 0; }
.pg-item::before {
  /* الخط الرأسي بين البرامج */
  content: "";
  position: absolute;
  top: 22px;
  bottom: -2px;
  right: calc(82px + 14px + 10px);
  width: 2px;
  background: #ece7df;
}
.pg-item:last-child::before { display: none; }
.pg-time { padding-top: 4px; text-align: left; direction: rtl; }
.pg-time strong { display: block; font-family: Expo, Tahoma, sans-serif; font-size: 16px; color: var(--brand-navy); }
.pg-time small { display: block; margin-top: 4px; font-size: 12px; color: #8a939b; }
.pg-duration {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f5f0f6;
  font-size: 10px;
  color: #74818e;
}
.pg-node {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-gold);
}
.status-live .pg-node { background: var(--brand-gold); border-color: var(--brand-navy); box-shadow: 0 0 0 5px #d7b37733; }
.status-done .pg-node { border-color: #cfd5db; background: #f3f4f6; }
.pg-card {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ece7df;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.pg-card:hover { box-shadow: 0 12px 26px #2b416214; }
.status-live .pg-card { border-color: var(--brand-gold); box-shadow: 0 12px 26px #d7b37726; }
.status-done .pg-card { opacity: 0.72; }
.pg-cover {
  position: relative;
  flex: 0 0 34%;
  max-width: 300px;
  min-height: 190px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: linear-gradient(110deg, #f3eff4 30%, #faf8fb 50%, #f3eff4 70%) 0 0 / 300% 100%;
  animation: pg-shimmer 1.4s linear infinite;
}
.pg-cover.is-loaded, .pg-cover.is-missing { animation: none; }
.pg-cover.is-missing { background: #f5f0f6 var(--brand-triangles) center / 160px; }
.pg-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s, transform 0.3s;
}
.pg-cover.is-loaded img { opacity: 1; }
.pg-cover:hover img { transform: scale(1.03); }
@keyframes pg-shimmer { to { background-position: -300% 0; } }
.pg-body { flex: 1; min-width: 0; padding: 20px 22px; }
.pg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--tone-soft, #f5f0f6);
  color: var(--tone-ink, var(--brand-navy));
}
.pg-chip svg.icon { width: 14px; height: 14px; }
.pg-status { padding: 4px 10px; border-radius: 20px; font-size: 11px; background: #f5f0f6; color: #74818e; }
.pg-status.status-live { background: var(--brand-navy); color: #fff; }
.pg-status.status-upcoming { background: #f8f1e5; color: var(--brand-bronze); }
.pg-body h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.5; }
.pg-desc { margin: 0 0 12px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #5f6d7b;
}
.pg-meta li { display: inline-flex; align-items: center; gap: 6px; }
.pg-meta svg.icon { width: 16px; height: 16px; color: var(--brand-bronze); }
.pg-needs {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf8f5;
  border-right: 3px solid var(--brand-gold);
}
.pg-needs strong { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pg-needs strong svg.icon { width: 15px; height: 15px; color: var(--brand-bronze); }
.pg-needs p { margin: 6px 0 0; font-size: 12px; white-space: pre-wrap; }
.pg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ece4;
}
.pg-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.pg-actions .text-button { padding: 10px; }

/* النسخة المختصرة في الرئيسية */
.pg-mini {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0eeee;
}
.pg-mini:last-child { border-bottom: 0; }
.pg-mini-time { min-width: 66px; padding-left: 12px; border-left: 2px solid var(--brand-gold); }
.pg-mini.status-live .pg-mini-time { border-color: var(--brand-navy); }
.pg-mini.status-done { opacity: 0.6; }
.pg-mini-time strong { display: block; font-size: 13px; color: var(--brand-navy); }
.pg-mini-time small { display: block; margin-top: 3px; font-size: 11px; color: #8a939b; }
.pg-mini-body { min-width: 0; }
.pg-mini-body h4 { margin: 0 0 8px; font-family: Expo, Tahoma, sans-serif; font-size: 14px; }

/* نافذة إضافة البرنامج */
.program-image-field { display: grid; gap: 10px; }
.field-label { font-size: 13px; color: var(--brand-navy); }
.field-label small, label small { color: #8a939b; font-size: 11px; }
.program-image-preview {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f0f6;
  border: 1px dashed #d8c4a2;
}
.program-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.program-image-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #9a8a6c;
}
.program-image-placeholder svg.icon { width: 30px; height: 30px; }
.program-image-preview.is-empty .program-image-placeholder,
.program-image-preview.is-missing .program-image-placeholder { display: flex; }
.program-image-preview.is-missing img { display: none; }
.program-image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.program-image-actions .secondary { display: inline-flex; align-items: center; gap: 7px; }
.program-image-actions small { color: #8a939b; font-size: 11px; }

/* عرض الصورة كاملة */
#photo-dialog { width: min(900px, calc(100% - 28px)); }
.photo-frame {
  position: relative;
  max-width: none;
  min-height: 240px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  cursor: default;
}
.photo-frame img { object-fit: contain; background: #111; }
.photo-frame:hover img { transform: none; }

@media (max-width: 760px) {
  .pg-card { flex-direction: column; }
  .pg-cover { flex: none; max-width: none; min-height: 0; aspect-ratio: 16 / 9; }
  .pg-item { grid-template-columns: 58px 18px minmax(0, 1fr); gap: 0 10px; }
  .pg-item::before { right: calc(58px + 10px + 8px); }
  .pg-node { width: 18px; height: 18px; border-width: 3px; }
  .pg-time strong { font-size: 13px; }
  .pg-time small { font-size: 11px; }
  .pg-duration { display: none; }
  .pg-body { padding: 16px; }
  .pg-body h3 { font-size: 16px; }
  .pg-week { gap: 4px; }
  .pg-days { gap: 3px; }
  .pg-day { padding: 8px 2px 10px; border-radius: 11px; }
  .pg-day-name { font-size: 9px; }
  .pg-day-num { font-size: 16px; }
  .pg-week-nav { width: 32px; height: 32px; }
  .pg-banner { flex-wrap: wrap; }
  .pg-banner-time { margin-right: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-pulse, .pg-cover { animation: none; }
  .pg-cover img, .pg-card { transition: none; }
}

[hidden] { display: none !important; }
.program-image-field { margin-bottom: 4px; }

/* ===== ملف الإنجازات ===== */
.skill-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e8f0f2;
  color: var(--brand-teal);
  font-size: 11px;
}
.pg-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: #74818e; }
.growth-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-navy), #34557a);
  color: #fff;
}
.growth-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220px;
  height: 150px;
  background: var(--brand-triangles) left bottom / 220px no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.growth-hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.growth-avatar { width: 58px; height: 58px; font-size: 22px; font-family: Expo, Tahoma, sans-serif; background: var(--brand-gold); color: var(--brand-navy); }
.growth-eyebrow { font-size: 12px; color: var(--brand-gold); }
.growth-hero h2 { margin: 6px 0 0; font-size: 26px; color: #fff; }
.growth-actions { margin-right: auto; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.growth-picker { display: grid; gap: 5px; margin: 0; font-size: 11px; color: #c4ccd6; }
.growth-picker select { width: auto; min-width: 150px; background-color: rgb(255 255 255 / 95%); }
.growth-print { display: inline-flex; align-items: center; gap: 7px; background: rgb(255 255 255 / 12%); color: #fff; border-color: rgb(255 255 255 / 30%); }
.growth-print:hover { background: rgb(255 255 255 / 20%); }
.growth-summary {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 2;
  color: #e6ebf1;
}
.growth-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.growth-stat {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ece7df;
}
.growth-stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f8f1e5; color: var(--brand-bronze); margin-bottom: 6px; }
.growth-stat strong { font-family: Expo, Tahoma, sans-serif; font-size: 26px; color: var(--brand-navy); }
.growth-stat small { font-size: 12px; color: #8a939b; }
.growth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.growth-grid .card { margin-bottom: 20px; }
.card-head small { display: block; margin-top: 6px; }
.skill-list, .category-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.skill-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skill-row strong { font-size: 14px; }
.skill-row small { font-size: 11px; color: #8a939b; }
.skill-level { padding: 3px 10px; border-radius: 20px; font-size: 11px; background: var(--tone-soft); color: var(--tone-ink); }
.skill-bar { height: 8px; margin: 8px 0 6px; border-radius: 8px; background: #f3f0ec; overflow: hidden; }
.skill-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand-gold), var(--brand-bronze)); }
.skill-list small { font-size: 11px; color: #8a939b; }
.category-list li { display: flex; align-items: center; gap: 12px; }
.category-list li > div { flex: 1; min-width: 0; }
.category-list .skill-bar span { background: var(--tone); }
.journey-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--tone-soft, #f5f0f6);
  color: var(--tone-ink, var(--brand-navy));
}
.journey-icon svg.icon { width: 17px; height: 17px; }
.journey { list-style: none; margin: 0; padding: 0; }
.journey-day { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.journey-day::before { content: ""; position: absolute; top: 18px; bottom: 0; right: 8px; width: 2px; background: #ece7df; }
.journey-day:last-child::before { display: none; }
.journey-dot { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-gold); position: relative; z-index: 1; }
.journey-day time { display: block; margin-bottom: 10px; font-size: 13px; color: var(--brand-bronze); font-family: Expo, Tahoma, sans-serif; }
.journey-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #faf9fa;
  border: 1px solid #f0ece4;
}
.journey-item.is-award { background: #fbf7f0; border-color: #f0e3cc; }
.journey-item > div { flex: 1; min-width: 0; }
.journey-item strong { display: block; font-size: 13px; }
.journey-item small { display: block; margin-top: 4px; font-size: 11px; color: #8a939b; }
.journey-points { font-family: Expo, Tahoma, sans-serif; font-size: 16px; color: var(--brand-bronze); }
.growth-more { width: 100%; margin-top: 6px; }
.growth-teaser { display: flex; align-items: center; gap: 18px; border-right: 4px solid var(--brand-gold); }
.growth-teaser-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #f8f1e5; color: var(--brand-bronze); flex-shrink: 0; }
.growth-teaser-icon svg.icon { width: 26px; height: 26px; }
.growth-teaser-body { flex: 1; min-width: 0; }
.growth-teaser h3 { margin: 6px 0 0; }
.growth-teaser .pg-skills { margin-top: 10px; }
.growth-teaser .primary { flex-shrink: 0; }

@media (max-width: 1100px) {
  .growth-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .growth-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .growth-hero { padding: 22px 18px; }
  .growth-hero h2 { font-size: 21px; }
  .growth-actions { margin-right: 0; width: 100%; }
  .growth-picker { flex: 1; }
  .growth-picker select { width: 100%; min-width: 0; }
  .growth-print { width: 100%; justify-content: center; }
  .growth-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .growth-stat { padding: 14px; }
  .growth-teaser { flex-wrap: wrap; }
  .growth-teaser .primary { width: 100%; }
}

/* الطباعة: تقرير نظيف لولي الأمر */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  .sidebar, main > header, footer, .child-bar, .growth-actions, .growth-more, #toast, dialog { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
  .card, .growth-stat, .journey-item { box-shadow: none !important; break-inside: avoid; }
  .growth-hero, .skill-bar span, .growth-avatar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .growth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .growth-stats { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

/* ===== إضافات الإدارة في ملف الإنجازات ===== */
.growth-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.growth-add { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-gold); color: var(--brand-navy); }
.growth-add:hover { background: #e2c590; }
.growth-add-small { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12px; flex-shrink: 0; }
.growth-add-small svg.icon { width: 16px; height: 16px; }
.growth-tools { display: inline-flex; align-items: center; gap: 0; flex-shrink: 0; }
.growth-tools .text-button { padding: 6px 8px; font-size: 12px; }
.achievement-list, .note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbf7f0, #fff);
  border: 1px solid #f0e3cc;
}
.achievement-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-gold);
  color: var(--brand-navy);
  box-shadow: 0 0 0 4px #d7b37733;
}
.achievement-body { flex: 1; min-width: 0; }
.achievement-body strong { display: block; font-size: 14px; }
.achievement-body p { margin: 6px 0 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.achievement-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 11px; color: #8a939b; }
.note-list li { padding: 14px 16px; border-radius: 14px; background: #f7f8fa; border-right: 3px solid var(--brand-navy); }
.note-list blockquote { margin: 0; }
.note-list blockquote strong { display: block; font-size: 14px; color: var(--brand-navy); }
.note-list blockquote p { margin: 6px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; color: #4f5d6b; }
.note-list .achievement-meta span:first-child { color: var(--brand-bronze); }
.note-list .growth-tools { margin-right: auto; }
.skill-verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-teal); color: #fff; vertical-align: middle; }
.skill-verified svg.icon { width: 12px; height: 12px; stroke-width: 2.4; }
.skill-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.journey-item.is-manual { background: #f4f8f9; border-color: #dde9ec; }
.journey-item .growth-tools { margin-right: 4px; }
@media (max-width: 1100px) {
  .growth-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .growth-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-add { width: 100%; justify-content: center; }
  .journey-item { flex-wrap: wrap; }
  .journey-item .growth-tools { width: 100%; justify-content: flex-end; }
}
@media print {
  .growth-tools, .growth-add, .growth-add-small, .message.info { display: none !important; }
  .growth-stats { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .achievement-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
