/* GeNTY 아카데미(교육) 화면 — ay- 접두어. 본문·도해는 academy-content.css(ac-)가 그린다. 모바일(폰으로 공부)이 기본, 큰 화면은 가운데 정렬. */
.ay-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.ay-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.ay-prog { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; }
.ay-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--glass-strong); overflow: hidden; }
.ay-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent-strong); transition: width .3s; }
.ay-pct { font-weight: 650; min-width: 44px; text-align: right; }
.ay-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.ay-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); }
.ay-stat-l { font-size: 12px; color: var(--text-2); }
.ay-stat-n { font-size: 20px; font-weight: 650; }
.ay-next { margin: 12px 0 0; }
/* 챕터 목록 */
.ay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ay-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); color: inherit; text-decoration: none; }
.ay-row:hover { background: var(--glass-strong); }
.ay-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ay-code { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: 13px; background: var(--glass-strong); color: var(--text-1); }
.ay-code.is-done { background: var(--success-bg); color: var(--success-fg); border: 1px solid var(--success-border); }
.ay-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ay-row-main b { font-weight: 600; overflow-wrap: anywhere; }
/* 온보딩 일정 */
.ay-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ay-week { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); display: flex; flex-direction: column; gap: 4px; }
.ay-week p { margin: 2px 0; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.ay-week em { font-style: normal; font-size: 12px; font-weight: 600; }
.ay-week.is-done { border-color: var(--success-border); }
.ay-week.is-done em { color: var(--success-fg); }
.ay-week.is-late { border-color: var(--warning-border); }
.ay-week.is-late em { color: var(--warning-fg); }
/* 챕터 */
.ay-chapter { max-width: 860px; width: 100%; margin-inline: auto; }
.ay-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ay-title { margin: 4px 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ay-unreviewed { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning-fg); }
.ay-goals { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--glass-strong); }
.ay-goals ul { margin: 6px 0 0; padding-left: 20px; }
.ay-goals li { margin-bottom: 3px; font-size: 14px; }
.ay-quiz, .ay-footer { max-width: 860px; width: 100%; margin-inline: auto; }
.ay-qs { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.ay-q-t { margin: 0 0 10px; font-weight: 600; line-height: 1.55; }
.ay-q-n { display: inline-block; margin-right: 8px; color: var(--accent); }
.ay-opts { display: flex; flex-direction: column; gap: 8px; }
.ay-opt { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); color: var(--text-1); font: inherit; cursor: pointer; line-height: 1.5; }
.ay-opt > span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.ay-opt:hover:not(:disabled) { background: var(--glass-strong); border-color: var(--border-strong); }
.ay-opt:disabled { cursor: default; }
.ay-opt-k { flex: none; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; background: var(--glass-strong); }
.ay-opt.is-right { border-color: var(--success-border); background: var(--success-bg); color: var(--success-fg); }
.ay-opt.is-wrong { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-fg); }
.ay-explain { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.65; border: 1px solid var(--border); background: var(--glass-strong); }
.ay-explain.is-right b { color: var(--success-fg); }
.ay-explain.is-wrong b { color: var(--danger-fg); }
.ay-footer { display: flex; flex-direction: column; gap: 14px; }
.ay-done-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ay-pn { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* 교육 현황 */
.ay-tabs { margin-bottom: 0; }
.ay-sel { min-width: 130px; }
.ay-staff { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ay-staff-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); }
.ay-staff-row .ay-bar { height: 8px; }
.ay-mini { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) {
  .ay-title { font-size: 21px; }
  .ay-staff-row { grid-template-columns: 1fr; gap: 8px; }
  .ay-hero-top > .btn { width: 100%; justify-content: center; }
  .ay-done-row > .btn { width: 100%; justify-content: center; }
}
.ay-pass { max-width: 110px; }
/* 종합평가 */
.ay-sub { margin: 18px 0 8px; font-size: 15px; font-weight: 650; }
.ay-rules { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; }
.ay-opt.is-picked { border-color: var(--accent); background: var(--accent-soft, var(--selected-bg)); }
.ay-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 6px 0 18px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--glass-strong); }
.ay-score b { font-size: 40px; font-weight: 700; line-height: 1.1; }
.ay-score.is-pass { border-color: var(--success-border); background: var(--success-bg); } .ay-score.is-pass b { color: var(--success-fg); }
.ay-score.is-fail { border-color: var(--warning-border); background: var(--warning-bg); } .ay-score.is-fail b { color: var(--warning-fg); }
/* 교육 현황 */
.ay-tracks { display: flex; flex-direction: column; gap: 12px; }
.ay-track { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 48px; gap: 12px; align-items: center; }
.ay-track .ay-bar { height: 8px; } .ay-track b { text-align: right; }
.ay-btn { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.ay-rate { font-size: 12px; background: var(--danger-bg); color: var(--danger-fg); border: 1px solid var(--danger-border); }
.ay-actions { flex-direction: row; align-items: center; justify-content: flex-end; gap: 8px; }
.ay-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ay-unit { display: flex; align-items: center; gap: 8px; }
.ay-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.ay-tw { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ay-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.ay-table th { text-align: left; font-weight: 600; color: var(--text-2); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ay-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ay-table tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) { .ay-track { grid-template-columns: 1fr 40px; } .ay-track > span:first-child { grid-column: 1 / -1; } .ay-actions { justify-content: flex-start; } }
/* AI 롤플레이 */
.ay-rp-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--info-border); border-radius: var(--radius-sm); background: var(--info-bg); }
.ay-chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.ay-bub { max-width: 86%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--glass-strong); line-height: 1.6; }
.ay-bub p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ay-bub-who { font-size: 11px; font-weight: 650; color: var(--text-2); }
.ay-bub-staff { align-self: flex-end; background: var(--accent-soft, var(--selected-bg)); border-color: var(--accent); border-bottom-right-radius: 4px; }
.ay-bub-customer { align-self: flex-start; border-bottom-left-radius: 4px; }
.ay-rp-input { width: 100%; resize: vertical; min-height: 84px; }
.ay-rp-status { min-height: 20px; margin: 4px 0; }
.ay-rp-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ay-rp-btns { display: flex; gap: 8px; }
.ay-scs { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 18px; }
.ay-sc { display: grid; grid-template-columns: minmax(90px, 130px) 1fr 40px; gap: 12px; align-items: center; }
.ay-sc .ay-bar { height: 8px; } .ay-sc b { text-align: right; }
.ay-imps { display: flex; flex-direction: column; gap: 10px; }
.ay-imp { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); }
.ay-imp p { margin: 4px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.ay-example { color: var(--accent); }
.ay-next-task { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--glass-strong); }
.ay-trans { margin: 16px 0; } .ay-trans summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
@media (max-width: 760px) { .ay-bub { max-width: 94%; } .ay-sc { grid-template-columns: 1fr 36px; } .ay-sc > span:first-child { grid-column: 1 / -1; } .ay-rp-btns { width: 100%; } .ay-rp-btns .btn { flex: 1; justify-content: center; } }
.ay-hits ul { margin: 6px 0 0; padding-left: 18px; } .ay-hits li { margin-bottom: 2px; }

/* ── 학습 화면 모드(.ay-study = 교육 화면 뿌리, 켜짐이 기본) ──
   학습 카드의 유리(반투명·흐림)를 빼고 불투명 종이 바탕으로. 색 토큰만 이 범위에서 다시 정하므로 안의 버튼·입력칸·선택지·진행 막대·본문(ac-*)이 저절로 따라온다.
   정답·오답·주의 같은 의미 색은 그대로 두고 톤만 종이에 맞춘다. 도해는 원래부터 밝은 종이(#faf9f7). */
.ay-study .card {
  --paper: #faf8f3; --paper-2: #f3efe5; --paper-3: #ece6d8;
  --glass: var(--paper); --glass-strong: var(--paper-3); --well: #fffdf9;
  --border: #e6e0d4; --border-strong: #cdc5b3; --field-border: #8f8777; --field-border-hover: #6b645a;
  --text-1: #26231f; --text-2: #6b645a; --text-3: #6b645a;
  --secondary-bg: #fffdf9; --secondary-border: #cdc5b3; --secondary-fg: #26231f;
  --ac-danger: #9a2a14; --ac-danger-bg: rgba(200, 60, 45, .09);
  background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 2px 14px rgba(40, 32, 18, .10); color: var(--text-1);
}
:root:not([data-theme="light"]) .ay-study .card {
  --paper: #1c1b19; --paper-2: #24231f; --paper-3: #2c2a25; --well: #141311;
  --border: #34312b; --border-strong: #4d493f; --field-border: #7d776b; --field-border-hover: #a39d92;
  --text-1: #e9e4da; --text-2: #a39d92; --text-3: #a39d92;
  --secondary-bg: #24231f; --secondary-border: #4d493f; --secondary-fg: #e9e4da;
  --ac-danger: #f2a89c; --ac-danger-bg: rgba(248, 113, 113, .12);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
/* 본문 칸 색: 종이보다 한 톤 다른 면(콜아웃·요약·표 머리·코드), 칸 안 목록·선택지는 흰 종이 */
/* 콘솔과 같은 academy-content.css를 복사해 쓰므로 매니저에 맞는 값은 여기서 덮는다(QA a694ad4):
   링크는 '정보' 색(무채색 테마가 많음) 대신 병원 글자용 강조색, 흐름 번호칸 글자는 병원 원색 위에 올리는 --on-accent */
.ac-body { --ac-link: var(--accent); }
.ac-flow span { color: var(--on-accent, #fff); }
.ay-study .ac-body { --ac-card: var(--paper-2); --ac-soft: var(--paper-3); }
.ay-study :is(.ay-row, .ay-stat, .ay-week, .ay-imp, .ay-opts) { --glass: var(--well); }
.ay-study .ay-bar { background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
.ay-study .ay-bar > i { background: var(--accent-strong); }
.ay-study .ay-bub { background: var(--paper-3); }
.ay-study .ay-bub-staff { background: var(--accent-soft, var(--paper-2)); }
.ay-study .ay-opt { border-color: var(--field-border); }
.ay-study .ay-opt.is-right { border-color: var(--success-border); }
.ay-study .ay-opt.is-wrong { border-color: var(--danger-border); }
.ay-study .ay-explain { background: var(--paper-2); }
.ay-study .ay-goals, .ay-study .ay-next-task, .ay-study .ay-score { background: var(--paper-2); }
.ay-study .ay-score.is-pass { background: var(--success-bg); } .ay-study .ay-score.is-fail { background: var(--warning-bg); }
/* 읽기 편하게: 본문 17px·줄 간격 1.8·문단 사이 넓게, 글 폭은 약 68자(720px) 가운데 */
.ay-study .ay-chapter > * { max-width: 720px; margin-inline: auto; }
.ay-study .ac-body { font-size: 17px; line-height: 1.8; }
.ay-study .ac-body p { margin-bottom: 20px; }
.ay-study .ac-body li { margin-bottom: 8px; }
.ay-study .ac-callout, .ay-study .ac-script { font-size: 16px; }
.ay-study .ac-tw table { font-size: 14.5px; }
.ay-study .ay-q-t, .ay-study .ay-explain, .ay-study .ay-opt { font-size: 16px; }
.ay-study .ay-bub { font-size: 16px; line-height: 1.7; }
/* 머리줄 토글(켜면 눌린 모양) */
.ay-study-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--text-1); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); }
/* 이 화면이 열려 있는 동안 뒤 배경 사진을 더 흐리고 어둡게(밝은 테마는 읽기 좋게 흐리게만 — 머리줄 글자 대비를 지키려고 어둡게는 안 함) */
html.ay-study-bg .bg-photo { filter: blur(14px) saturate(.8); transform: scale(1.08); transition: filter 200ms ease; }
html.ay-study-bg .bg-photo::after { background: rgba(var(--dim-color), .72); }
html[data-theme="light"].ay-study-bg .bg-photo::after { background: rgba(var(--dim-color), .62); }
.ay-study .ay-quiz > * { max-width: 720px; margin-inline: auto; }

/* ── 화면 글씨 복사 막기(.copy-guard는 js/copy-guard.js가 /api/me의 copyGuard가 true일 때만 html에 붙임) ──
   글씨 끌어 선택·길게 눌러 선택을 막는다. 입력칸은 입력·선택이 되어야 하므로 되살리고, 형광펜을 고른 동안의 챕터 본문([data-allow-select])만 선택을 허용한다. */
.copy-guard, .copy-guard body { -webkit-touch-callout: none; }
.copy-guard body *, .copy-guard body *::before, .copy-guard body *::after { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.copy-guard :is(input, textarea, select, [contenteditable=""], [contenteditable="true"]),
.copy-guard :is([contenteditable=""], [contenteditable="true"]) * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.copy-guard [data-allow-select], .copy-guard [data-allow-select] * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: none; }
.copy-guard img, .copy-guard a { -webkit-user-drag: none; }

/* ── 교육 화면 워터마크(js/watermark.js) — 학습 카드 영역 위에 비스듬한 타일, 클릭·선택·형광펜을 방해하지 않게 pointer-events:none.
   타일은 윤곽(알파)만 가진 마스크라 색은 여기서 정한다(글자색 → 밝은·어두운 테마 모두 같은 규칙). 아주 옅게(밝은 바탕 6%, 어두운 바탕 7%). ── */
.ay-root { position: relative; }
.ay-wm { display: none; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--text-1); opacity: .06;
  -webkit-mask-image: var(--ay-wm); mask-image: var(--ay-wm); -webkit-mask-size: 360px 260px; mask-size: 360px 260px; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.ay-wm.is-ready { display: block; }
:root:not([data-theme="light"]) .ay-wm { opacity: .07; }
/* 이름·날짜 줄은 CI보다 조금 진하게(글씨가 읽힐 정도) */
.ay-wm.ay-wm-name { opacity: .15; }
:root:not([data-theme="light"]) .ay-wm.ay-wm-name { opacity: .17; }
@media (max-width: 640px) { .ay-wm { -webkit-mask-size: 270px 195px; mask-size: 270px 195px; } }

/* ── 챕터 본문 형광펜(js/academy-highlight.js) ── */
.ay-hl-yellow { --hl-c: rgba(250, 204, 21, .55); --hl-dot: #facc15; }
.ay-hl-green { --hl-c: rgba(74, 222, 128, .45); --hl-dot: #4ade80; }
.ay-hl-pink { --hl-c: rgba(244, 114, 182, .42); --hl-dot: #f472b6; }
:root:not([data-theme="light"]) .ay-hl-yellow { --hl-c: rgba(250, 204, 21, .36); }
:root:not([data-theme="light"]) .ay-hl-green { --hl-c: rgba(74, 222, 128, .30); }
:root:not([data-theme="light"]) .ay-hl-pink { --hl-c: rgba(244, 114, 182, .36); }
mark.ay-hl { background: var(--hl-c); color: inherit; border-radius: 3px; padding: 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: pointer; transition: outline-color .3s; }
mark.ay-hl-flash { outline: 2px solid var(--accent); outline-offset: 1px; }
.ay-hl-erasing mark.ay-hl { cursor: crosshair; }
.ay-hl-dot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--hl-dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
/* 아래 고정 도구줄(카드 끝에 붙어 있다가 스크롤 중에는 화면 아래에 머무름) */
.ay-hl-dock { position: sticky; bottom: 12px; z-index: 6; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ay-hl-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--well); box-shadow: 0 6px 22px rgba(0, 0, 0, .22); }
.ay-hl-title { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.ay-hl-sw { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.ay-hl-sw .ay-hl-dot { width: 22px; height: 22px; }
.ay-hl-sw:hover { background: var(--glass-strong); }
.ay-hl-sw[aria-pressed="true"], .ay-hl-erase[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); }
.ay-hl-erase, .ay-hl-listbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--field-border, var(--border-strong)); border-radius: 12px; background: transparent; color: var(--text-1); font-size: 13px; font-weight: 550; cursor: pointer; }
.ay-hl-listbtn { margin-left: auto; }
.ay-hl-erase:hover, .ay-hl-listbtn:hover { background: var(--glass-strong); }
.ay-hl-erase .icon, .ay-hl-listbtn .icon, .ay-hl-title .icon { width: 16px; height: 16px; }
.ay-hl-sw:focus-visible, .ay-hl-erase:focus-visible, .ay-hl-listbtn:focus-visible, .ay-hl-item:focus-visible, .ay-hl-popdel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ay-hl-hint { margin: 0; padding: 0 4px; min-height: 0; }
.ay-hl-hint:empty { display: none; }
.ay-hl-panel { max-height: 40vh; overflow-y: auto; padding: 8px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--well); box-shadow: 0 6px 22px rgba(0, 0, 0, .22); }
.ay-hl-panel[hidden] { display: none; }
.ay-hl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ay-hl-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text-1); text-align: left; font: inherit; font-size: 14px; line-height: 1.55; text-decoration: none; cursor: pointer; }
.ay-hl-item .ay-hl-dot { margin-top: 4px; }
.ay-hl-item > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ay-hl-item:hover { background: var(--glass-strong); }
.ay-hl-date { flex: none; font-size: 12px; margin-top: 2px; }
.ay-hl-empty { margin: 4px 6px; }
.ay-hl-lost { margin: 18px 0 0; padding: 10px 14px; border: 1px solid var(--warning-border); border-radius: var(--radius-sm); background: var(--warning-bg); }
.ay-hl-lost[hidden] { display: none; }
.ay-hl-lost summary { cursor: pointer; font-weight: 650; color: var(--warning-fg); }
.ay-hl-lostlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ay-hl-lostitem { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ay-hl-losttext { flex: 1; min-width: 160px; overflow-wrap: anywhere; font-size: 14px; }
.ay-hl-pop { position: fixed; z-index: 3000; display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--tooltip-bg); color: var(--text-1); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); }
.ay-hl-popdel { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--danger-fg); font-size: 13px; font-weight: 600; cursor: pointer; }
.ay-hl-popdel:hover { background: var(--danger-bg); }
.ay-hl-popdel .icon { width: 16px; height: 16px; }
.ay-hero-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  /* 폰: 한 줄로(제목·지우개 글자는 숨기고 아이콘만 — 버튼에 aria-label이 있음) */
  .ay-hl-bar { flex-wrap: nowrap; gap: 2px; padding: 6px 8px; }
  .ay-hl-title, .ay-hl-erase span:not(.icon) { display: none; }
  .ay-hl-sw { width: 40px; flex: none; } .ay-hl-erase { width: 40px; padding: 0; justify-content: center; flex: none; }
  .ay-hl-listbtn { padding: 0 10px; white-space: nowrap; font-size: 12px; }
  .ay-hero-btns { width: 100%; } .ay-hero-btns .btn { flex: 1; justify-content: center; }
}
