/* Notes hub — scoped to .notes-page / drawer only.
   Shared header/footer use global kit styles (same as Contact).
   Do NOT set --nt-u from viewport width — that inflated the whole chrome. */

html:has(body.nt-ref){
  overflow-x: hidden;
}

/* Notes content shell — site header/footer use global kit chrome (same as Training). */

body.nt-ref .notes-page,
body.nt-ref .notes-page *{
  box-sizing: border-box;
}

/* DEV-ONLY overlay. Activated by ?visual-ref=1 — never default production UI. */
body.visual-reference-mode.nt-ref::after{
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 935px;
  height: 728px;
  background-image: url("../img/notes-ref-desktop.png");
  background-repeat: no-repeat;
  background-size: 935px 728px;
  opacity: .35;
  pointer-events: none;
  z-index: 99999;
}

body.visual-reference-mode.visual-reference-stretch.nt-ref::after{
  width: 100%;
  height: auto;
  aspect-ratio: 935 / 728;
  background-size: 100% auto;
}

/* Page shell — same content width / page bg as other learner pages */
.notes-page{
  width: 100%;
  max-width: var(--ieg-content, 76rem);
  margin: 0 auto;
  padding: 16px 0 28px;
  background: transparent;
  box-sizing: border-box;
}
.notes-main{
  width: 100%;
  max-width: 100%;
  margin: 0;
}
body.nt-ref.ieg-drawer-open .notes-page{
  padding-right: 360px;
}
body.nt-ref.ieg-drawer-open .notes-main{
  max-width: 100%;
  margin: 0;
}

/* Notes hero — match Training/Home hero title scale (Notes-scoped only) */
.notes-page .notes-hero{
  position: relative;
  width: 100%;
  min-height: 148px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background:
    radial-gradient(
      circle at 65% 40%,
      rgba(189, 232, 220, .42) 0%,
      rgba(229, 247, 240, .20) 36%,
      rgba(255, 255, 255, 0) 68%
    ),
    linear-gradient(105deg, #f8fffb 0%, #ffffff 44%, #e4f7ef 100%);
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  box-shadow: none;
  box-sizing: border-box;
  margin: 0 0 14px;
}
.notes-page .notes-hero-left{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.notes-page .notes-hero-icon{
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background: #e8f2fb;
  border-radius: 10px;
  color: #2878c8;
}
.notes-page .notes-hero-icon svg{
  width: 22px;
  height: 22px;
  color: #2878c8;
}
.notes-page .notes-hero-copy{
  display: flex;
  flex-direction: column;
}
.notes-page .notes-hero-copy h1{
  margin: 0;
  font-family: inherit;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.35px;
  color: #111921;
  text-align: left;
  text-transform: none;
}
.notes-page .notes-hero-subtitle{
  margin: 10px 0 0;
  max-width: 620px;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.48;
  font-weight: 400;
  color: #4b5952;
}
.notes-page .notes-hero-art{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 215px;
  height: 104px;
  overflow: hidden;
  background:
    linear-gradient(
      110deg,
      rgba(207, 235, 233, 0.20) 0%,
      rgba(184, 225, 221, 0.52) 100%
    );
}
.notes-page .notes-hero-art::before{
  content: "";
  position: absolute;
  width: 89px;
  height: 91px;
  left: 8px;
  top: -5px;
  background: rgba(174, 221, 218, 0.58);
  transform: skewX(-8deg);
}
.notes-page .notes-hero-art::after{
  content: "";
  position: absolute;
  width: 122px;
  height: 110px;
  right: -20px;
  top: -10px;
  background: rgba(195, 232, 229, 0.45);
  transform: skewX(8deg);
}
.notes-page .notes-hero-document{
  position: absolute;
  left: 29px;
  top: 17px;
  width: 57px;
  height: 68px;
  background: rgba(248, 253, 252, 0.94);
  border-radius: 2px;
  transform: skewX(-5deg);
  z-index: 3;
  box-shadow: 0 1px 2px rgba(20, 80, 70, 0.04);
}
.notes-page .notes-hero-document::before{
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 11px;
  height: 11px;
  background: #d0ebe7;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.notes-page .notes-hero-document::after{
  content: "";
  position: absolute;
  left: 13px;
  top: 19px;
  width: 31px;
  height: 4px;
  background: #9edbd2;
  box-shadow:
    0 10px 0 #b6e2dc,
    0 20px 0 #c3e8e3;
}
.notes-page .notes-hero-message{
  position: absolute;
  left: 104px;
  top: 27px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 17px;
  font-style: italic;
  font-weight: 600;
  color: #006d43;
}
.notes-page .notes-hero-message strong{
  font-weight: 750;
}
.notes-page .notes-hero-accent{
  position: absolute;
  left: 104px;
  bottom: 10px;
  width: 29px;
  height: 4px;
  border-radius: 99px;
  background: #00a45a;
  z-index: 4;
}

@media (max-width: 640px){
  .notes-page .notes-hero{
    padding: 20px 16px;
    min-height: 0;
  }
  .notes-page .notes-hero-art{
    width: 120px;
  }
  .notes-page .notes-hero-art::before{
    width: 70px;
    height: 80px;
  }
  .notes-page .notes-hero-art::after{
    width: 90px;
    height: 104px;
  }
  .notes-page .notes-hero-document{
    left: 18px;
    top: 22px;
    width: 44px;
    height: 56px;
  }
  .notes-page .notes-hero-document::after{
    left: 10px;
    top: 15px;
    width: 24px;
  }
  .notes-page .notes-hero-message{
    display: none;
  }
  .notes-page .notes-hero-accent{
    left: 18px;
    bottom: 12px;
  }
  .notes-page .notes-hero-copy h1{
    font-size: 31px;
    line-height: 1.1;
    letter-spacing: -1.1px;
  }
  .notes-page .notes-hero-subtitle{
    font-size: 14px;
    line-height: 1.45;
  }
}

/* Stats */
.notes-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 12px;
}
.notes-stat{
  height: 88px;
  min-height: 88px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e7e3;
  box-shadow: 0 3px 10px rgba(20, 48, 33, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.notes-stat .notes-ico{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #E7F6EE;
  color: #119447;
}
.notes-stat .notes-ico svg{
  width: 18px;
  height: 18px;
}
.notes-stat[data-stat="phase"] .notes-ico{
  background: #E5F4F0;
  color: #1A8A62;
  border-radius: 10px;
}
.notes-stat__body{ min-width: 0; flex: 1; }
.notes-stat__label{
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  color: #5F6D65;
}
.notes-stat__value{
  display: block;
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 750;
  line-height: 1.05;
  color: #17221C;
}
.notes-stat__meta{
  margin: 2px 0 0;
  font-size: 13px;
  color: #5F6D65;
}
.notes-stat__progress{
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.notes-stat__progress em{
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #5F6D65;
  text-align: right;
}

/* Toolbar */
.notes-toolbar{
  height: 54px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e7e3;
  box-shadow: 0 3px 10px rgba(20, 48, 33, 0.05);
  margin: 0 0 12px;
}
.notes-toolbar__search{
  flex: 1;
  min-width: 0;
  height: 40px;
  position: relative;
  margin: 0;
  border: 1px solid #E1E8E4;
  border-radius: 9px;
  background: #fff;
}
.notes-toolbar__search i{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7B8780;
  pointer-events: none;
  font-size: 13px;
}
.notes-toolbar__search input{
  display: block;
  width: 100%;
  height: 40px;
  min-height: 0;
  padding: 0 12px 0 36px;
  border: 0;
  background: transparent;
  font-size: 14px;
  box-shadow: none;
  color: #17221C;
}
.notes-toolbar__cat{
  width: 168px;
  height: 40px;
  min-height: 0;
  flex: 0 0 168px;
  padding: 0 28px 0 12px;
  border: 1px solid #E1E8E4;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
}
.notes-toolbar .ieg-chips{
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 0 0 auto;
}
.notes-toolbar .ieg-chip{
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  background: #EEF2F0;
  color: #39443D;
  white-space: nowrap;
  border: 0;
}
.notes-toolbar .ieg-chip.is-on,
.notes-toolbar .ieg-chip.is-on:hover{
  background: #018847;
  color: #fff;
}
.notes-toolbar__topics{
  height: 40px;
  min-height: 0;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #E1E8E4;
  background: #fff;
  color: #17221C;
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  cursor: pointer;
}

/* Learning topics header */
.notes-section-head{
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
}
.notes-section-title h2{
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  color: #111921;
  text-align: left;
  text-transform: none;
  letter-spacing: -.02em;
}
.notes-section-title p{
  margin: 3px 0 0;
  font-size: 13px;
  color: #5F6D65;
  text-align: left;
}
.notes-section-controls{
  display: flex;
  align-items: center;
  gap: 8px;
}
.notes-section-controls label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5F6D65;
}
.notes-section-controls select{
  height: 40px;
  min-height: 0;
  border: 1px solid #E1E8E4;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  padding: 0 28px 0 10px;
}
.notes-view{ display: flex; gap: 6px; }
.notes-view button{
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #E1E8E4;
  background: #fff;
  color: #5F6D65;
  cursor: pointer;
  font-size: 14px;
}
.notes-view button.is-on{
  background: #018847;
  border-color: #018847;
  color: #fff;
}

/* Grid + cards — compact topic tiles (match Training hub) */
.notes-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.notes-topic-card{
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e0e7e4;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}
.notes-topic-card:hover,
.notes-topic-card:focus-visible{
  color: inherit;
  border-color: #c9d8d0;
  box-shadow: 0 4px 12px rgba(17, 57, 39, .05);
  transform: translateY(-1px);
  outline: none;
}
.notes-topic-card:focus-visible{
  box-shadow: 0 0 0 3px rgba(21, 150, 74, .16);
}
.notes-topic-card .notes-ico{
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #e8f7ef;
  color: #15964a;
}
.notes-topic-card .notes-ico svg{
  width: 24px;
  height: 24px;
}
.topics-drawer .notes-ico{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #EEF3F6;
  color: #4B6E89;
}
.topics-drawer .notes-ico svg{
  width: 16px;
  height: 16px;
}

.notes-ico[data-accent="magnet"]{ background: #FDEBEC; color: #D94B4B; }
.notes-ico[data-accent="coil"]{ background: #E8EEF3; color: #4B6E89; }
.notes-ico[data-accent="wave"]{ background: #E9F2FC; color: #2C7AC9; }
.notes-ico[data-accent="cap"]{ background: #E8F7F5; color: #278D88; }
.notes-ico[data-accent="leaf"]{ background: #EAF8EE; color: #219653; }
.notes-ico[data-accent="board"]{ background: #E8EEF3; color: #4B6E89; }
.notes-ico[data-accent="cable"]{ background: #EAF0F5; color: #2C7AC9; }
.notes-ico[data-accent="conduit"]{ background: #EAF0F5; color: #2C7AC9; }
.notes-ico[data-accent="lamp"]{ background: #FFF6D8; color: #C9A000; }
.notes-ico[data-accent="build"]{ background: #EEF2F6; color: #5A6B7A; }
.notes-ico[data-accent="motor"]{ background: #EDF0F3; color: #536271; }
.notes-ico[data-accent="book"]{ background: #EAF3FB; color: #2C7AC9; }

.notes-topic-card__body{
  min-width: 0;
}
.notes-topic-card__title{
  display: block;
  margin: 0;
  overflow: hidden;
  color: #172019;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notes-topic-card__count{
  margin: 4px 0 0;
  color: #758078;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notes-topic-card__progress{
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
}
.notes-topic-card__track{
  position: relative;
  display: block;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #e4e9e7;
  overflow: hidden;
}
.notes-topic-card__bar{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  max-width: 100%;
  display: block;
  height: 100%;
  background: var(--ieg-green, #15964a);
  border-radius: inherit;
}
.notes-topic-card__progress em{
  width: 30px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 650;
  color: #617067;
  text-align: right;
}
.notes-topic-card__arrow{
  color: #303d36;
  font-size: 21px;
  line-height: 1;
  text-align: center;
}
.notes-grid.is-list{
  grid-template-columns: 1fr;
}
.notes-grid.is-list .notes-topic-card{
  min-height: 64px;
}

.notes-empty{
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #E1E8E4;
  border-radius: 10px;
  padding: 18px 14px;
}
.notes-empty__btn{
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #018847;
  color: #fff;
  font-weight: 700;
}

/* Topics drawer — fixed sizes; top aligns with shared 64px header */
body.nt-ref .topics-drawer.ieg-drawer,
.topics-drawer{
  position: fixed;
  top: 64px;
  right: 0;
  left: auto;
  bottom: 0;
  width: 360px;
  height: auto;
  background: #fff;
  border-left: 1px solid #E6EDEB;
  box-shadow: -10px 0 30px rgba(15, 45, 30, .06);
  padding: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
}
body.nt-ref .topics-drawer.ieg-drawer.is-on,
.topics-drawer.is-on{ transform: none; }

.topics-drawer__h{
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 750;
  color: #17221C;
  border-bottom: 1px solid #E6EDEB;
}
.topics-drawer__close{
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #5F6D65;
  cursor: pointer;
  font-size: 14px;
}
.topics-drawer__b{ padding: 0; overflow: auto; }
body.nt-ref .topics-drawer a,
.topics-drawer a{
  padding: 0;
  border-radius: 0;
}
.topics-drawer__row{
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #EEF2F0;
  font-size: 14px;
  font-weight: 600;
  color: #17221C;
  text-decoration: none;
}
.topics-drawer__row em{
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #5F6D65;
}
.topics-drawer__row:hover{ background: #F6F9F7; color: #17221C; }
.topics-drawer__row.is-on{ background: #EAF7EF; }

@media (min-width: 769px){
  body.nt-ref.ieg-drawer-open .ieg-drawer-back{
    display: none;
    pointer-events: none;
    opacity: 0;
  }
}

@media (max-width: 1100px){
  .notes-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notes-toolbar{ flex-wrap: wrap; height: auto; }
  .notes-toolbar__search{ flex: 1 1 100%; }
  .notes-section-head{ flex-wrap: wrap; }
}

@media (max-width: 900px){
  .notes-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px){
  .notes-page{ padding: 12px 16px 24px; }
  body.nt-ref.ieg-drawer-open .notes-page{ padding-right: 16px; }
  body.nt-ref.ieg-drawer-open .notes-main{ max-width: none; }
  .notes-stats{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .notes-stat{ height: auto; padding: 10px; }
  .notes-stat__value{ font-size: 18px; }
  .notes-stat__label{ font-size: 11px; }
  .notes-toolbar{
    flex-wrap: wrap;
    height: auto;
    padding: 8px;
  }
  .notes-toolbar__search,
  .notes-toolbar__cat{
    width: 100%;
    flex: 1 1 100%;
    max-width: none;
    height: 40px;
  }
  .notes-toolbar__search input,
  .notes-toolbar__cat{ height: 40px; font-size: 14px; }
  .notes-toolbar .ieg-chip{ height: 32px; min-height: 32px; font-size: 13px; }
  .notes-toolbar__topics{ height: 40px; font-size: 14px; }
  .notes-section-title h2{ font-size: 20px; }
  .notes-section-title p{ font-size: 13px; }
  .notes-toolbar .ieg-chips{ overflow-x: auto; }
  .notes-grid,
  .notes-grid.is-list{ grid-template-columns: 1fr; }
  .notes-topic-card{
    min-height: 76px;
    padding: 10px;
  }
  body.nt-ref .ieg-drawer-back{ inset: 0; }
  body.nt-ref .topics-drawer.ieg-drawer,
  .topics-drawer{
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    top: 64px;
    bottom: 0;
    height: calc(100dvh - 64px);
    border-left: 0;
    border-top: 1px solid #DDE5E0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  body.nt-ref .topics-drawer.ieg-drawer.is-on,
  .topics-drawer.is-on{ transform: none; }
  .topics-drawer__h{ height: 52px; font-size: 18px; }
  .topics-drawer__row{ height: 48px; font-size: 14px; }
}

/* ========== Notes category / topic page (scoped) ========== */
.notes-topic-page{
  width: 100%;
  max-width: var(--ieg-content);
  margin: 0 auto;
  padding: 12px 20px 40px;
  box-sizing: border-box;
  background: #f6f8f7;
}
.notes-topic-page *,
.notes-topic-page *::before,
.notes-topic-page *::after{ box-sizing: border-box; }
.notes-topic-page__back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 650;
  color: #2f4a32;
  text-decoration: none;
}
.notes-topic-page__back:hover{ color: #0D7E3C; }
.notes-topic-page__back:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
  border-radius: 4px;
}
.notes-topic-page__header{
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 16px;
}
.notes-topic-page__intro{ flex: 1; min-width: 0; }
.notes-topic-page__title{
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -1.1px;
  color: #111921;
  font-weight: 800;
}
.notes-topic-page__count{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: #536158;
}
.notes-topic-page__progress{
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 28rem;
}
.notes-topic-page__track{
  display: block;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #E3EBE7;
  overflow: hidden;
}
.notes-topic-page__bar{
  display: block;
  height: 100%;
  background: #149447;
  border-radius: 999px;
}
.notes-topic-page__pct{
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
  color: #2f4a32;
  min-width: 2.5rem;
}
.notes-topic-page__desc{
  margin: 10px 0 0;
  max-width: 40rem;
  font-size: 14px;
  line-height: 1.45;
  color: #536158;
}
.notes-topic-page__about{
  flex: 0 0 220px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #E3EBE7;
  color: #536158;
  font-size: 13px;
  line-height: 1.45;
}
.notes-topic-page__about strong{
  display: block;
  margin-bottom: 6px;
  color: #17221C;
  font-size: 14px;
}
.notes-topic-page__filters{
  margin: 0 0 14px;
}
.notes-topic-page__filters .ieg-chips{
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.notes-topic-page__filters .ieg-chip{
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #D8E0DA;
  color: #39443D;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.notes-topic-page__filters .ieg-chip:hover{ background: #EAF7EF; color: #0D7E3C; }
.notes-topic-page__filters .ieg-chip.is-on,
.notes-topic-page__filters .ieg-chip.is-on:hover{
  background: #012A20;
  border-color: #012A20;
  color: #fff;
}
.notes-topic-page__filters .ieg-chip:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
}
.notes-topic-page__list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notes-topic-note{
  background: #fff;
  border: 1px solid #E3EBE7;
  border-radius: 14px;
  padding: 14px 16px;
}
.notes-topic-note__grid{
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.notes-topic-note__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #EAF7EF;
  color: #0D7E3C;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.notes-topic-note__main{ min-width: 0; }
.notes-topic-note__top{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.notes-topic-note__title{
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -.01em;
  font-weight: 750;
  color: #17221C;
}
.notes-topic-note__title-link{
  color: inherit;
  text-decoration: none;
}
.notes-topic-note__title-link:hover{ color: #0D7E3C; }
.notes-topic-note__title-link:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
  border-radius: 4px;
}
.notes-topic-note__meta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.notes-topic-note__status{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  background: #EEF1F0;
  color: #5F6D65;
}
.notes-topic-note__status--progress{
  background: #FFF2DD;
  color: #B96B0A;
}
.notes-topic-note__status--completed{
  background: #EAF7EF;
  color: #0D7E3C;
}
.notes-topic-note__bookmark{
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5F6D65;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.notes-topic-note__bookmark:hover{ background: #F3F7F4; color: #0D7E3C; }
.notes-topic-note__bookmark.is-on{ color: #0D7E3C; }
.notes-topic-note__bookmark:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
}
.notes-topic-note__preview{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #536158;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.notes-topic-note__action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  width: auto;
}
.notes-topic-note__action.is-start{
  background: #EAF7EF;
  color: #0D7E3C;
}
.notes-topic-note__action.is-continue{
  background: #FFF2DD;
  color: #B96B0A;
}
.notes-topic-note__action.is-review{
  background: #EEF1F0;
  color: #2f4a32;
}
.notes-topic-note__action:hover{ filter: brightness(0.97); }
.notes-topic-note__action:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
}

@media (max-width: 768px){
  .notes-topic-page{ padding: 10px 16px 32px; }
  .notes-topic-page__header{ flex-direction: column; gap: 12px; }
  .notes-topic-page__about{ flex-basis: auto; max-width: none; width: 100%; }
  .notes-topic-note__top{ flex-wrap: wrap; }
}

@media (max-width: 430px){
  .notes-topic-page{ padding: 8px 12px 28px; }
  .notes-topic-page__title{ font-size: 28px; letter-spacing: -1px; }
  .notes-topic-note{ padding: 12px; }
  .notes-topic-note__grid{ grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .notes-topic-note__num{ width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
  .notes-topic-note__title{ font-size: 15px; }
  .notes-topic-note__top{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .notes-topic-note__meta{
    justify-content: space-between;
  }
  .notes-topic-note__preview{
    -webkit-line-clamp: 3;
  }
  .notes-topic-note__action{
    width: 100%;
    min-height: 44px;
  }
  .notes-topic-page__about{ display: none; }
}

/* ========== Individual Note reader (scoped) ========== */
.notes-read{
  --nr-bg: #F7F5F1;
  --nr-card: #FFFFFF;
  --nr-border: #E4E0D8;
  --nr-text: #1F2A22;
  --nr-muted: #5C6B60;
  --nr-green: #0D7E3C;
  --nr-green-hover: #0A6A32;
  --nr-mint: #EAF7EF;
  width: 100%;
  max-width: var(--ieg-content);
  margin: 0 auto;
  padding: 12px 20px 40px;
  box-sizing: border-box;
  background: var(--nr-bg);
  color: var(--nr-text);
}
.notes-read *,
.notes-read *::before,
.notes-read *::after{ box-sizing: border-box; }
.notes-read__crumb{
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--nr-muted);
  word-break: break-word;
}
.notes-read__crumb a{
  color: #2f4a32;
  text-decoration: none;
  font-weight: 650;
}
.notes-read__crumb a:hover{ color: var(--nr-green); }
.notes-read__crumb a:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
  border-radius: 4px;
}
.notes-read__card{
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  border-radius: 14px;
  padding: 20px 22px 18px;
  box-shadow: 0 1px 0 rgba(31, 42, 34, 0.03);
}
.notes-read__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.notes-read__meta{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.notes-read__num{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--nr-mint);
  color: var(--nr-green);
  font-size: 14px;
  font-weight: 800;
}
.notes-read__cat{
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nr-muted);
  line-height: 1.3;
  min-width: 0;
}
.notes-read__tools{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.notes-read__status{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #F1F3F1;
  color: #536158;
  white-space: nowrap;
}
.notes-read__status--progress{
  background: #FFF2DD;
  color: #B96B0A;
}
.notes-read__status--completed{
  background: var(--nr-mint);
  color: var(--nr-green);
}
.notes-read__bookmark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--nr-border);
  border-radius: 10px;
  background: #fff;
  color: #6B756E;
  cursor: pointer;
}
.notes-read__bookmark:hover{ background: #F3F7F4; color: var(--nr-green); }
.notes-read__bookmark.is-on{ color: var(--nr-green); }
.notes-read__bookmark:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
}
.notes-read__title{
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1.1px;
  color: var(--nr-text);
  font-weight: 800;
}
.notes-read__keypoint{
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--nr-mint);
  border: 1px solid #D5EBDD;
}
.notes-read__keypoint strong{
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--nr-green);
}
.notes-read__keypoint p{
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #2A3A2F;
}
.notes-read__article{
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--nr-text);
}
.notes-read__article h2,
.notes-read__article h3{
  color: var(--nr-text);
  font-weight: 800;
  text-align: left;
  margin: 1.2em 0 0.4em;
}
.notes-read__article p,
.notes-read__article li{ margin: 0 0 0.8em; }
.notes-read__article img,
.notes-read__article svg{
  max-width: 100%;
  height: auto;
}
.notes-read__article img{
  border-radius: 10px;
  cursor: zoom-in;
}
.notes-read__article table{
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.notes-read__article pre,
.notes-read__article code{
  white-space: pre-wrap;
  word-break: break-word;
}
.notes-read__article .nt-callout,
.notes-read__article .nt-important,
.notes-read__article .nt-warning,
.notes-read__article .nt-example,
.notes-read__article .nt-formula,
.notes-read__article .nt-tip,
.notes-read__article .nt-key,
.notes-read__article .nt-regulation,
.notes-read__article .nt-worked{
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 4px solid var(--nr-green);
  background: var(--nr-mint);
}
.notes-read__error{
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF4F2;
  border: 1px solid #F0C9C2;
  color: #8A1F12;
  font-size: 14px;
  font-weight: 650;
}
.notes-read__nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--nr-border);
}
.notes-read__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--nr-border);
  background: #fff;
  color: var(--nr-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  flex: 1 1 calc(50% - 5px);
  text-align: center;
}
.notes-read__btn:hover{ filter: brightness(0.98); }
.notes-read__btn:focus-visible{
  outline: 3px solid #1f6f00;
  outline-offset: 2px;
}
.notes-read__btn.is-disabled,
.notes-read__btn[aria-disabled="true"]{
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.notes-read__btn--next,
.notes-read__btn--practice{
  background: var(--nr-green);
  border-color: var(--nr-green);
  color: #fff;
}
.notes-read__btn--next:hover,
.notes-read__btn--practice:hover{
  background: var(--nr-green-hover);
  border-color: var(--nr-green-hover);
  color: #fff;
  filter: none;
}
.notes-read__practice{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 0;
  padding: 16px 18px;
  background: var(--nr-card);
  border: 1px solid var(--nr-border);
  border-radius: 14px;
}
.notes-read__practice-title{
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nr-text);
}
.notes-read__practice-meta{
  margin: 0;
  font-size: 14px;
  color: var(--nr-muted);
}
.notes-read__btn--practice{
  flex: 0 0 auto;
  min-width: 11rem;
}

@media (max-width: 768px){
  .notes-read{ padding: 10px 16px 32px; }
  .notes-read__card{ padding: 16px; }
  .notes-read__practice{
    flex-direction: column;
    align-items: stretch;
  }
  .notes-read__btn--practice{ width: 100%; min-width: 0; }
}

@media (max-width: 430px){
  .notes-read{ padding: 8px 12px 28px; }
  .notes-read__head{
    flex-wrap: wrap;
    gap: 10px;
  }
  .notes-read__tools{
    width: 100%;
    justify-content: space-between;
  }
  .notes-read__title{ font-size: 28px; letter-spacing: -1px; }
  .notes-read__article{ font-size: 1rem; }
  .notes-read__nav{ gap: 8px; }
  .notes-read__btn{
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 10px 8px;
    font-size: 14px;
  }
}

/* =========================================================
   Bookmarked Notes (/notes/saved) — scoped to .notes-saved-page
   ========================================================= */
.notes-saved-page{
  width:100%;
  max-width:var(--ieg-content, 76rem);
  margin:0 auto;
  padding:12px 0 36px;
  color:#16324a;
}
.notes-saved-page *,
.notes-saved-page *::before,
.notes-saved-page *::after{ box-sizing:border-box; }

.notes-saved-crumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  font-size:.9rem;
  color:#6b7c86;
}
.notes-saved-crumb a{
  color:#2f6b4f;
  text-decoration:none;
  font-weight:650;
}
.notes-saved-crumb a:hover{ text-decoration:underline; }
.notes-saved-back{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:6px 12px;
  border:1px solid #d7e2dc;
  border-radius:10px;
  background:#fff;
  color:#16324a !important;
  text-decoration:none !important;
  font-weight:650;
}
.notes-saved-back:hover{ background:#f7fbf8; border-color:#c5d7cc; }
.notes-saved-back:focus-visible{
  outline:2px solid #2f6b4f;
  outline-offset:2px;
}

.notes-saved-header{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:0 0 16px;
}
.notes-saved-header__icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#e7f6ee;
  color:#1f7a4d;
  flex:0 0 auto;
  font-size:1.15rem;
}
.notes-saved-header__text h1{
  margin:0 0 4px;
  font-size:1.7rem;
  line-height:1.15;
  letter-spacing:-.02em;
  color:#12283a;
}
.notes-saved-header__text p{
  margin:0;
  color:#5d6f7a;
  font-size:.95rem;
  line-height:1.45;
}
.notes-saved-header__sub{
  margin-top:4px !important;
  color:#7a8a93 !important;
  font-size:.88rem !important;
}

.notes-saved-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}
.notes-saved-summary:has(.notes-saved-summary__card:nth-child(4)){
  grid-template-columns:repeat(4, minmax(0,1fr));
}
.notes-saved-summary__card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  background:#fff;
  border:1px solid #e2ebe5;
  border-radius:14px;
  box-shadow:0 1px 0 rgba(16,40,30,.03);
}
.notes-saved-summary__card p{
  margin:0;
  font-size:.82rem;
  color:#6b7c86;
  font-weight:650;
}
.notes-saved-summary__card strong{
  display:block;
  margin-top:2px;
  font-size:1.35rem;
  color:#12283a;
  line-height:1;
}
.notes-saved-summary__ico{
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.notes-saved-summary__card[data-tone="mint"] .notes-saved-summary__ico{ background:#e7f6ee; color:#1f7a4d; }
.notes-saved-summary__card[data-tone="green"] .notes-saved-summary__ico{ background:#e4f5ea; color:#1b6b42; }
.notes-saved-summary__card[data-tone="blue"] .notes-saved-summary__ico{ background:#e8f1fb; color:#2b5f9e; }
.notes-saved-summary__card[data-tone="amber"] .notes-saved-summary__ico{ background:#f8efde; color:#9a6a1b; }

.notes-saved-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:0 0 18px;
  padding:12px;
  background:#fff;
  border:1px solid #e2ebe5;
  border-radius:14px;
}
.notes-saved-search{
  position:relative;
  flex:1 1 240px;
  min-width:min(100%, 220px);
}
.notes-saved-search i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:#7a8a93;
  pointer-events:none;
}
.notes-saved-search input{
  width:100%;
  min-height:42px;
  padding:8px 12px 8px 38px;
  border:1px solid #d7e2dc;
  border-radius:11px;
  background:#fbfcfa;
  font:inherit;
  color:#16324a;
}
.notes-saved-search input:focus{
  outline:2px solid #2f6b4f;
  outline-offset:1px;
  background:#fff;
}
.notes-saved-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-left:auto;
}
.notes-saved-filter{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 10px 0 12px;
  border:1px solid #d7e2dc;
  border-radius:11px;
  background:#fff;
  color:#5d6f7a;
}
.notes-saved-filter select{
  border:0;
  background:transparent;
  font:inherit;
  font-weight:650;
  color:#16324a;
  min-height:40px;
  padding-right:4px;
  cursor:pointer;
}
.notes-saved-filter select:focus{ outline:none; }
.notes-saved-filter:focus-within{
  outline:2px solid #2f6b4f;
  outline-offset:1px;
}

.notes-saved-category{ margin:0 0 22px; }
.notes-saved-category__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}
.notes-saved-category__title{
  display:flex;
  align-items:center;
  gap:12px;
}
.notes-saved-category__title h2{
  margin:0;
  font-size:1.12rem;
  color:#12283a;
}
.notes-saved-category__count{
  margin:2px 0 0;
  font-size:.84rem;
  color:#6b7c86;
}
.notes-saved-category__all{
  color:#2f6b4f;
  font-weight:650;
  text-decoration:none;
  white-space:nowrap;
}
.notes-saved-category__all:hover{ text-decoration:underline; }
.notes-saved-category[hidden],
.saved-note-card[hidden],
.notes-saved-empty[hidden]{ display:none !important; }

.notes-saved-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.saved-note-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px 14px 12px;
  background:#fff;
  border:1px solid #e2ebe5;
  border-radius:14px;
  box-shadow:0 1px 0 rgba(16,40,30,.03);
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.saved-note-card:hover{
  border-color:#cfe0d4;
  box-shadow:0 6px 18px rgba(18,40,30,.06);
}
.saved-note-card.is-removing{
  opacity:.45;
  transform:scale(.98);
}
.saved-note-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.saved-note-card__bookmark{
  width:36px;
  height:36px;
  border:0;
  border-radius:10px;
  background:#e7f6ee;
  color:#1f7a4d;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:1rem;
}
.saved-note-card__bookmark:hover{ background:#d8f0e3; }
.saved-note-card__bookmark:focus-visible{
  outline:2px solid #2f6b4f;
  outline-offset:2px;
}
.saved-note-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
}
.saved-note-status--completed{ background:#e4f5ea; color:#1b6b42; }
.saved-note-status--progress{ background:#e8f1fb; color:#2b5f9e; }
.saved-note-status--new{ background:#eef1f3; color:#5d6f7a; }

.saved-note-card__title{
  margin:0;
  font-size:1.02rem;
  line-height:1.35;
  color:#12283a;
}
.saved-note-card__title a{
  color:inherit;
  text-decoration:none;
}
.saved-note-card__title a:hover{ color:#1f7a4d; }
.saved-note-card__title a:focus-visible{
  outline:2px solid #2f6b4f;
  outline-offset:2px;
  border-radius:4px;
}

.saved-note-card__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
}
.saved-note-card__cat{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  background:#f1f4f2;
  color:#4d5f69;
  font-size:.78rem;
  font-weight:650;
}
.saved-note-card__action{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:6px 12px;
  border:1.5px solid #2f6b4f;
  border-radius:10px;
  color:#1f7a4d;
  font-weight:700;
  font-size:.88rem;
  text-decoration:none;
  background:#fff;
  white-space:nowrap;
}
.saved-note-card__action:hover{ background:#f3faf6; }
.saved-note-card__action:focus-visible{
  outline:2px solid #2f6b4f;
  outline-offset:2px;
}

.notes-saved-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:8px;
  padding:16px 18px;
  border-radius:14px;
  border:1px solid #d7ebe0;
  background:linear-gradient(105deg, #f3fbf6 0%, #eaf7f0 100%);
}
.notes-saved-cta__copy{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:#2f6b4f;
}
.notes-saved-cta__copy p{
  margin:0;
  color:#314850;
  font-size:.94rem;
  line-height:1.45;
}
.notes-saved-cta__btn{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 16px;
  border-radius:11px;
  background:#1f7a4d;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:700;
}
.notes-saved-cta__btn:hover{ background:#186540; }

.notes-saved-empty{
  text-align:center;
  padding:48px 20px;
  background:#fff;
  border:1px solid #e2ebe5;
  border-radius:16px;
}
.notes-saved-empty__icon{
  width:56px;
  height:56px;
  margin:0 auto 12px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#e7f6ee;
  color:#1f7a4d;
  font-size:1.35rem;
}
.notes-saved-empty h2{
  margin:0 0 6px;
  font-size:1.25rem;
  color:#12283a;
}
.notes-saved-empty p{
  margin:0 0 16px;
  color:#5d6f7a;
}
.notes-saved-empty__btn{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 16px;
  border-radius:11px;
  border:0;
  background:#1f7a4d;
  color:#fff !important;
  text-decoration:none !important;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.notes-saved-empty__btn:hover{ background:#186540; }
.notes-saved-empty__btn:focus-visible{
  outline:2px solid #2f6b4f;
  outline-offset:2px;
}

.notes-saved-undo{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:40;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px 10px 16px;
  border-radius:12px;
  background:#16324a;
  color:#fff;
  box-shadow:0 10px 28px rgba(10,24,36,.28);
  font-size:.92rem;
}
.notes-saved-undo[hidden]{ display:none !important; }
.notes-saved-undo button{
  border:0;
  border-radius:8px;
  background:#fff;
  color:#16324a;
  font:inherit;
  font-weight:700;
  min-height:34px;
  padding:4px 12px;
  cursor:pointer;
}
.notes-saved-undo button:focus-visible{
  outline:2px solid #8fd0ae;
  outline-offset:2px;
}

@media (max-width:980px){
  .notes-saved-summary,
  .notes-saved-summary:has(.notes-saved-summary__card:nth-child(4)){
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  .notes-saved-grid{ grid-template-columns:1fr; }
}

@media (max-width:720px){
  .notes-saved-page{ padding:8px 0 28px; }
  .notes-saved-crumb{ gap:6px; }
  .notes-saved-back{
    width:100%;
    margin-left:0;
    justify-content:center;
  }
  .notes-saved-header{ gap:12px; }
  .notes-saved-header__text h1{ font-size:1.4rem; }
  .notes-saved-summary,
  .notes-saved-summary:has(.notes-saved-summary__card:nth-child(4)){
    grid-template-columns:1fr;
  }
  .notes-saved-toolbar{ padding:10px; }
  .notes-saved-filters{
    width:100%;
    margin-left:0;
  }
  .notes-saved-filter{ flex:1 1 100%; }
  .notes-saved-filter select{ width:100%; }
  .notes-saved-category__head{
    flex-direction:column;
    align-items:flex-start;
  }
  .notes-saved-cta{
    flex-direction:column;
    align-items:stretch;
  }
  .notes-saved-cta__btn{ justify-content:center; }
  .saved-note-card__meta{
    flex-direction:column;
    align-items:stretch;
  }
  .saved-note-card__action{ justify-content:center; }
}
