.instructions-page {
  --help-ink: #2f2548;
  --help-muted: #58706b;
  --help-line: rgb(96 137 145 / 16%);
  --help-paper: rgb(250 254 252 / 78%);
  --help-shadow: 0 20px 55px rgb(49 87 82 / 11%);
  --help-coral: #ee6469;
  --help-violet: #8b5aad;
  --help-blue: #4a9fc1;
  --help-mint: #58aa8d;
}

.instructions-page .site-header { width: min(1220px, 100%); }
.instructions-nav { gap: 6px; }
.instructions-nav .guide-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 8px 3px 4px;
  color: #332052;
  font-family: "Nunito Rounded", system-ui, sans-serif;
  font-weight: 900;
  white-space: nowrap;
}
.instructions-nav .guide-brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 13px rgb(60 32 79 / 18%);
}
.site-nav .nav-section-link.is-current {
  color: #573779;
  border-color: rgb(184 153 211 / 45%);
  background: linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(231 218 245 / 66%));
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgb(75 76 125 / 14%);
}

.instructions-main {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.instructions-page h1,
.instructions-page h2,
.instructions-page h3,
.instructions-page h4 {
  color: var(--help-ink);
  font-family: "Nunito Rounded", system-ui, sans-serif;
}
.instructions-page h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4.7vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.instructions-page h1 span {
  color: transparent;
  background: linear-gradient(110deg, #ef5c63, #9c56ae 54%, #3e9fc3);
  background-clip: text;
  -webkit-background-clip: text;
}
.instructions-page h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.instructions-page h3,
.instructions-page h4 { margin: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  min-height: 360px;
  padding: clamp(30px, 4vw, 56px);
  overflow: hidden;
  border-radius: clamp(28px, 4vw, 44px);
}
.help-intro::before,
.help-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.help-intro::before {
  width: 270px;
  height: 270px;
  top: -130px;
  left: 34%;
  background: radial-gradient(circle, rgb(244 154 181 / 25%), transparent 70%);
}
.help-intro::after {
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -180px;
  background: radial-gradient(circle, rgb(91 183 196 / 18%), transparent 70%);
}
.help-intro > * { position: relative; z-index: 2; min-width: 0; }
.help-lead {
  max-width: 610px;
  margin: 16px 0 0;
  color: #3f5955;
  font-size: clamp(1rem, 1.8vw, 1.13rem);
  font-weight: 650;
  line-height: 1.65;
}
.help-search-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 26px;
  background: linear-gradient(145deg, rgb(255 255 255 / 69%), rgb(239 247 247 / 54%));
  box-shadow: inset 0 1px 0 #fff, 0 18px 45px rgb(63 91 91 / 10%);
  backdrop-filter: blur(12px);
}
.guide-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.guide-search svg {
  position: absolute;
  left: 18px;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #77658c;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.guide-search input {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 64px;
  padding: 16px 78px 16px 52px;
  border: 1px solid rgb(119 143 153 / 25%);
  border-radius: 18px;
  color: #2f2548;
  font-size: 1rem;
  font-weight: 700;
  background: rgb(255 255 255 / 86%);
  box-shadow: inset 0 1px 0 #fff, 0 10px 25px rgb(85 107 112 / 8%);
  outline: none;
}
.guide-search input:focus {
  border-color: rgb(128 92 171 / 48%);
  box-shadow: 0 0 0 4px rgb(142 105 184 / 11%), 0 10px 24px rgb(85 107 112 / 8%);
}
.guide-search kbd {
  position: absolute;
  right: 13px;
  padding: 6px 8px;
  border: 1px solid rgb(119 143 153 / 19%);
  border-radius: 8px;
  color: #788b86;
  font: 800 .69rem/1 "Nunito Rounded", system-ui, sans-serif;
  background: #f3f7f6;
  box-shadow: 0 2px 0 rgb(73 97 95 / 12%);
}
.popular-queries {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 13px;
}
.popular-queries span { color: #71817d; font-size: .78rem; font-weight: 750; }
.popular-queries button {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgb(115 142 149 / 15%);
  border-radius: 99px;
  color: #5f4c7c;
  font-size: .72rem;
  font-weight: 800;
  background: rgb(255 255 255 / 58%);
}
.popular-queries button:hover,
.popular-queries button:focus-visible { border-color: rgb(142 105 184 / 32%); background: #fff; }
.channel-clarity {
  margin: 17px 0 0;
  padding: 13px 15px;
  border-left: 3px solid #61a9c5;
  border-radius: 0 13px 13px 0;
  color: #4d6560;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.52;
  background: rgb(218 240 248 / 48%);
}

.role-section { scroll-margin-top: 130px; }
.role-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 0 8px;
}
.role-heading .eyebrow { margin-bottom: 7px; }
.text-button {
  width: auto;
  max-width: none;
  margin: 0 0 4px;
  padding: 8px 0;
  border: 0;
  color: #6b4f8f;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 20px;
}
.role-card {
  --role-color: #508eaa;
  --role-soft: #dceef4;
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  gap: 15px;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 104px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 24px;
  color: var(--help-ink);
  text-align: left;
  background: linear-gradient(145deg, rgb(255 255 255 / 78%), color-mix(in srgb, var(--role-soft) 48%, transparent));
  box-shadow: inset 0 1px 0 #fff, 0 14px 34px rgb(67 94 105 / 10%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.role-card.teacher { --role-color: #3f91b4; --role-soft: #d7edf7; }
.role-card.committee { --role-color: #8d5caf; --role-soft: #eadcf5; }
.role-card.parent { --role-color: #df5d78; --role-soft: #f9dce5; }
.role-card.admin { --role-color: #3d9275; --role-soft: #d9efe6; }
.role-card:hover,
.role-card:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--role-color) 35%, transparent); box-shadow: 0 18px 38px rgb(67 94 105 / 15%); }
.role-card.is-active { border-color: var(--role-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color) 14%, transparent), 0 18px 40px rgb(67 94 105 / 14%); }
.role-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--role-color);
  background: var(--role-soft);
}
.role-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role-card > span:nth-child(2) { display: grid; gap: 5px; }
.role-card > span:nth-child(2),
.category-button b,
.guide-group-head > div,
.support-card > * { min-width: 0; }
.role-card strong { font: 900 1.03rem/1.2 "Nunito Rounded", system-ui, sans-serif; }
.role-card small { color: var(--help-muted); font-size: .8rem; font-weight: 650; line-height: 1.4; }
.role-card > i { color: var(--role-color); font-style: normal; font-size: 1.25rem; transition: transform .2s ease; }
.role-card:hover > i { transform: translateX(3px); }

.guide-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  scroll-margin-top: 120px;
}
.category-panel {
  position: sticky;
  top: 114px;
  padding: 22px 16px 17px;
  border-radius: 25px;
}
.category-panel-head { padding: 0 8px 13px; border-bottom: 1px solid var(--help-line); }
.category-panel-head .eyebrow { margin-bottom: 5px; }
.category-panel-head strong { color: var(--help-ink); font: 900 1.1rem/1.2 "Nunito Rounded", system-ui, sans-serif; }
.category-list { display: grid; gap: 4px; padding: 11px 0 5px; }
.category-button {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 46px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #425e58;
  text-align: left;
  background: transparent;
}
.category-button:hover,
.category-button:focus-visible { background: rgb(255 255 255 / 58%); }
.category-button.is-active {
  color: #5e3d80;
  border-color: rgb(151 113 182 / 17%);
  background: linear-gradient(125deg, rgb(238 225 248 / 70%), rgb(220 239 245 / 50%));
}
.category-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #5e6e84;
  font: 900 .68rem/1 "Nunito Rounded", system-ui, sans-serif;
  background: rgb(233 242 243 / 78%);
}
.category-button.is-active .category-icon { color: #fff; background: linear-gradient(145deg, #ee696d, #8c5caf 58%, #4b9cba); }
.category-button b { font-size: .81rem; font-weight: 850; }
.category-button small { min-width: 21px; padding: 4px 6px; border-radius: 99px; color: #758783; font-size: .63rem; font-weight: 850; text-align: center; background: rgb(255 255 255 / 58%); }
.help-route {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 13px 10px;
  border-top: 1px solid var(--help-line);
}
.help-route > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: #fff; font-weight: 900; background: #5ba4bd; }
.help-route div { display: grid; gap: 2px; }
.help-route strong { color: #415550; font-size: .75rem; }
.help-route a { color: #70528f; font-size: .72rem; font-weight: 800; text-underline-offset: 3px; }

.guide-library { min-width: 0; }
.library-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  min-height: 62px;
  margin-bottom: 16px;
  padding: 0 6px;
}
.library-heading .eyebrow { margin-bottom: 6px; }
.library-heading h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.library-status { margin: 0 0 4px; color: #6c7e79; font-size: .77rem; font-weight: 750; text-align: right; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -2px 4px 15px; }
.filter-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px 7px 11px; border: 1px solid rgb(123 100 157 / 16%); border-radius: 99px; color: #644b82; font-size: .72rem; font-weight: 800; background: rgb(239 230 246 / 65%); }
.filter-pill button { display: grid; place-items: center; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 50%; color: inherit; font-size: .9rem; line-height: 1; background: rgb(255 255 255 / 54%); }
.guide-groups { display: grid; gap: 24px; }
.guide-group { scroll-margin-top: 125px; }
.guide-group-head {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 4px 11px;
}
.guide-group-index {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #6f4d93;
  font: 900 .72rem/1 "Nunito Rounded", system-ui, sans-serif;
  background: linear-gradient(145deg, rgb(255 255 255 / 84%), rgb(223 235 242 / 62%));
  box-shadow: 0 8px 20px rgb(67 94 105 / 9%);
}
.guide-group-head p { margin: 0; color: #b64f72; font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.guide-group-head h3 { margin-top: 2px; font-size: 1.16rem; }
.guide-card {
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 21px;
  background: linear-gradient(145deg, rgb(255 255 255 / 73%), rgb(240 248 247 / 58%));
  box-shadow: inset 0 1px 0 #fff, 0 11px 28px rgb(67 94 105 / 9%);
  scroll-margin-top: 125px;
}
.guide-card[open] { border-color: rgb(137 107 170 / 19%); box-shadow: 0 16px 36px rgb(67 94 105 / 13%); }
.guide-card summary {
  display: grid;
  grid-template-columns: 48px 1fr auto 34px;
  gap: 13px;
  align-items: center;
  min-height: 88px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}
.guide-card summary::-webkit-details-marker { display: none; }
.guide-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #6a4a8e;
  font: 900 .74rem/1 "Nunito Rounded", system-ui, sans-serif;
  background: linear-gradient(145deg, #f1e5f7, #dbedf3);
}
.guide-title-block { display: grid; gap: 4px; min-width: 0; }
.guide-title-block strong { color: var(--help-ink); font: 900 1.02rem/1.25 "Nunito Rounded", system-ui, sans-serif; }
.guide-title-block small { overflow: hidden; color: #58706b; font-size: .76rem; font-weight: 650; line-height: 1.4; text-overflow: ellipsis; }
.guide-summary-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 205px; }
.platform-badge,
.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border: 1px solid rgb(106 135 143 / 15%);
  border-radius: 99px;
  color: #506964;
  font-size: .61rem;
  font-weight: 850;
  white-space: nowrap;
  background: rgb(255 255 255 / 56%);
}
.platform-badge.telegram { color: #357b9a; background: #e1f2f8; }
.platform-badge.max { color: #4e4cb0; background: #e7e8fb; }
.platform-badge.vk { color: #276db5; background: #e3f0ff; }
.platform-badge.site { color: #73509a; background: #eee4f7; }
.platform-badge.future { color: #9a6e38; background: #f8ecd9; }
.guide-toggle {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: #6e548b;
  font-style: normal;
  font-size: 1.25rem;
  background: rgb(255 255 255 / 62%);
  transition: transform .24s ease, background .24s ease;
}
.guide-card[open] .guide-toggle { transform: rotate(45deg); background: rgb(232 222 243 / 72%); }
.guide-body {
  padding: 0 22px 24px 78px;
  border-top: 1px solid var(--help-line);
}
.guide-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .55fr);
  gap: 13px;
  margin-top: 18px;
}
.guide-overview > p,
.guide-path {
  margin: 0;
  padding: 14px 15px;
  border-radius: 15px;
  color: #405b56;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.55;
  background: rgb(255 255 255 / 49%);
}
.guide-path span { display: block; margin-bottom: 5px; color: #ad4f70; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.guide-body h4 { margin: 21px 0 10px; font-size: .93rem; }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 31px 1fr; gap: 11px; align-items: start; margin: 0; color: #314b47; font-size: .84rem; font-weight: 650; line-height: 1.56; }
.steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(121 105 157 / 17%);
  border-radius: 10px;
  color: #735499;
  font: 900 .72rem/1 "Nunito Rounded", system-ui, sans-serif;
  background: rgb(255 255 255 / 68%);
}
.guide-notes { display: grid; gap: 8px; margin-top: 17px; }
.guide-note {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  align-items: start;
  padding: 12px 13px;
  border-radius: 14px;
  color: #3e5752;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.5;
}
.guide-note > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #fff; font: 900 .67rem/1 "Nunito Rounded", system-ui, sans-serif; }
.guide-note.result { border: 1px solid rgb(63 154 121 / 16%); background: rgb(218 244 233 / 52%); }
.guide-note.result > span { background: #58a98b; }
.guide-note.notice { border: 1px solid rgb(73 147 185 / 15%); background: rgb(220 240 248 / 48%); }
.guide-note.notice > span { background: #62a5c4; }
.guide-note.tip { border: 1px solid rgb(123 90 160 / 14%); background: rgb(235 226 246 / 48%); }
.guide-note.tip > span { background: #9270b2; }
.guide-note.future { border: 1px solid rgb(216 145 79 / 18%); background: rgb(252 235 204 / 52%); }
.guide-note.future > span { background: #d79c55; }
.guide-related { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.guide-related strong { width: 100%; color: #6c7d79; font-size: .68rem; }
.guide-related button {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgb(122 102 153 / 15%);
  border-radius: 99px;
  color: #665080;
  font-size: .69rem;
  font-weight: 800;
  background: rgb(255 255 255 / 54%);
}
.guide-related button:hover { background: #fff; }
.no-results { padding: 45px 28px; border-radius: 26px; text-align: center; }
.no-results > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 19px; color: #81629e; background: #eadff3; }
.no-results svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.no-results h3 { font-size: 1.12rem; }
.no-results p { color: #5f716d; font-size: .86rem; }
.no-results .button { width: auto; margin: 8px auto 0; }

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(30px, 5vw, 50px);
  border-radius: 32px;
  scroll-margin-top: 120px;
}
.support-card h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.support-checks { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.support-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin: 0; color: #425e58; font-size: .86rem; font-weight: 650; line-height: 1.52; }
.support-checks span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #fff; font: 900 .69rem/1 "Nunito Rounded", system-ui, sans-serif; background: linear-gradient(145deg, #ee696d, #8c5caf); }
.support-actions { display: grid; gap: 10px; min-width: 225px; }
.support-actions .button { width: 100%; margin: 0; text-align: center; }
.noscript { width: min(760px, calc(100% - 32px)); margin: 20px auto; padding: 18px; border-radius: 16px; color: #5a4a3a; text-align: center; background: #fbefd9; }

@media (max-width: 1180px) {
  .instructions-nav .guide-brand span { display: none; }
  .instructions-nav .guide-brand { padding-right: 4px; }
}
@media (max-width: 1050px) {
  .guide-workspace { grid-template-columns: 230px minmax(0, 1fr); gap: 17px; }
  .guide-card summary { grid-template-columns: 46px 1fr 34px; }
  .guide-summary-meta { display: none; }
}
@media (max-width: 900px) {
  .instructions-page .site-nav { display: none; }
  .instructions-page .mobile-section-nav { display: flex; overflow-x: auto; margin: 0; padding: 8px; border: 1px solid rgb(255 255 255 / 72%); border-radius: 16px; background: rgb(249 253 251 / 88%); box-shadow: 0 10px 30px rgb(53 91 84 / 14%); backdrop-filter: blur(14px); }
  .instructions-page .mobile-section-nav a { flex: 0 0 auto; margin: 0; padding: 8px 11px; border-radius: 10px; color: #3d5b55; font-size: .78rem; font-weight: 750; text-decoration: none; }
  .help-intro { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .help-intro-copy { max-width: 780px; }
  .help-search-panel { width: 100%; }
  .guide-workspace { grid-template-columns: 1fr; }
  .category-panel { position: static; padding: 16px; }
  .category-panel-head,
  .help-route { display: none; }
  .category-list { display: flex; gap: 7px; overflow-x: auto; padding: 0; scrollbar-width: thin; }
  .category-button { grid-template-columns: 28px auto auto; flex: 0 0 auto; width: auto; min-height: 42px; padding: 6px 9px; }
  .category-icon { width: 27px; height: 27px; }
  .support-card { grid-template-columns: 1fr; }
  .support-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
}
@media (max-width: 680px) {
  .instructions-page { padding: 8px; }
  .instructions-main { gap: 34px; }
  .help-intro { gap: 20px; padding: 24px 16px; border-radius: 27px; }
  .instructions-page h1 { font-size: clamp(2.2rem, 10vw, 2.85rem); line-height: 1.03; letter-spacing: -.04em; }
  .help-lead { margin-top: 12px; line-height: 1.48; }
  .help-search-panel { padding: 15px; border-radius: 20px; }
  .guide-search input { min-height: 58px; padding-right: 50px; font-size: .9rem; }
  .guide-search kbd { display: none; }
  .popular-queries { align-items: flex-start; }
  .popular-queries span { width: 100%; }
  .channel-clarity { font-size: .76rem; }
  .role-heading { align-items: start; }
  .role-heading .text-button { max-width: 125px; text-align: right; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 50px 1fr 28px; min-height: 88px; padding: 14px; border-radius: 20px; }
  .role-icon { width: 48px; height: 48px; border-radius: 15px; }
  .role-icon svg { width: 27px; height: 27px; }
  .category-panel { margin-inline: -2px; padding: 11px; border-radius: 19px; }
  .library-heading { align-items: start; }
  .library-status { max-width: 100px; }
  .guide-group-head { grid-template-columns: 39px 1fr; }
  .guide-group-index { width: 38px; height: 38px; border-radius: 12px; }
  .guide-card { border-radius: 18px; }
  .guide-card summary { grid-template-columns: 39px 1fr 31px; gap: 9px; min-height: 78px; padding: 12px; }
  .guide-number { width: 38px; height: 38px; border-radius: 12px; font-size: .65rem; }
  .guide-title-block strong { font-size: .93rem; }
  .guide-title-block small { display: none; }
  .guide-toggle { width: 30px; height: 30px; }
  .guide-body { padding: 0 13px 18px; }
  .guide-overview { grid-template-columns: 1fr; margin-top: 13px; }
  .guide-overview > p,
  .guide-path { font-size: .78rem; }
  .support-card { padding: 27px 18px; border-radius: 25px; }
  .support-actions { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
  .site-footer nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .role-card,
  .role-card > i,
  .guide-toggle { transition: none; }
}
