.reference-page{font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:#211831;background:#f4effb;--page:#f4effb;--ink:#211831;--muted:#625774;--soft:#796b8d;--purple:#5731bf;--active:#ece2fd;--panel:#fff;--line:#eee8f5}
*,*::before,*::after{box-sizing:border-box}
.reference-page{margin:0;font-size:15px}
:where(.reference-content,.reference-sheet) :is(button,input){font:inherit}
:where(.reference-content,.reference-sheet) button{border:0;background:none;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #8058da;outline-offset:3px}
[hidden]{display:none!important}
:is(.reference-content,.reference-sheet) svg{width:20px;height:20px;flex:none;vertical-align:middle}
.reference-page{min-height:100dvh}
.reference-page>.kv-sidebar{position:fixed;inset:0 auto 0 0;width:var(--kv-sidebar-width);overflow:auto;z-index:10}
.reference-page .kum-mobile-top{position:sticky;top:0;z-index:8}
.square{width:40px;height:40px;display:inline-grid;place-items:center;background:#efe7f8;color:#514168;border-radius:12px}
.mobile-only{display:none}
.content{width:min(100%,1230px);padding:26px 28px 30px;margin:0 auto}
.hero{position:relative;display:flex;align-items:center;padding:20px 30px;min-height:110px;border-radius:19px;overflow:hidden;background:radial-gradient(ellipse at 85% 115%,#d5bff9 0%,transparent 55%),linear-gradient(110deg,#eee4ff,#e8dcfb)}
.hero-copy{position:relative;z-index:1}
:where(.reference-content,.reference-sheet) :where(h1,h2,p){margin:0}
.hero h1{font-weight:790;font-size:38px;line-height:1.04;letter-spacing:-1.55px}
.hero p{margin-top:7px;color:#56436c;font-size:14.5px}
.hero-art{position:absolute;right:48px;top:50%;width:200px;height:132px;transform:translateY(-50%);scale:.8;transform-origin:70% 50%;pointer-events:none}
.hero-art::before,.hero-art::after{content:"";position:absolute;inset:12px 14px 13px 45px;border-radius:50%;border:1px solid #fff9;transform:rotate(-28deg) scaleX(1.35)}
.hero-art::after{inset:7px 17px 8px 50px;transform:rotate(24deg) scaleX(1.45)}
.art-back,.art-front{position:absolute;border-radius:15px;box-shadow:0 9px 15px #6c4caa2d}
.art-back{left:48px;top:24px;width:106px;height:87px;background:linear-gradient(130deg,#c6aaf6,#b08bed);transform:rotate(-15deg)}
.art-front{left:79px;top:22px;width:106px;height:87px;background:linear-gradient(135deg,#fff,#f8f0ff);display:grid;place-items:center;color:#6541a4;transform:rotate(10deg);font:700 47px/1 Georgia,serif}
.art-front i{font-style:normal;letter-spacing:-4px;margin-left:-4px}
.art-spark{position:absolute;right:2px;top:16px;color:#7652b9;font-size:27px}
.art-dot{position:absolute;left:27px;bottom:19px;width:7px;height:7px;border-radius:50%;background:#9874d1}
.categories{display:flex;align-items:center;gap:5px;padding:5px;margin-top:16px;border-radius:15px;background:#fbf8ff}
.tab{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:43px;padding:5px 7px;border-radius:11px;font-weight:650;font-size:13px;line-height:1.2;color:#544667}
.tab svg{width:17px;height:17px}
.tab[aria-pressed="true"]{background:#e9defa;color:#4d279c}
.tab:hover:not([aria-pressed="true"]),.level:hover:not([aria-pressed="true"]){background:#f3edf9}
.toolbar{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-top:14px}
.levels{background:#fcf9ff;border-radius:13px;padding:4px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}
.level{width:51px;height:38px;border-radius:9px;color:#5a4b73;font-weight:750}
.level[aria-pressed="true"]{background:var(--purple);color:white}
.search{min-width: min(320px,50%);height:46px;display:flex;align-items:center;padding:0 12px;gap:9px;background:#fcf9ff;border-radius:13px;color:#655579}
.search svg{width:18px;height:18px}
.search:focus-within{box-shadow:0 0 0 2px #a788da}
.search input{width:100%;min-width:0;outline:none!important;appearance:none;border:none;background:transparent;color:var(--ink);font-size:14px}
.search input::placeholder{color:#716482}
.search input::-webkit-search-cancel-button{appearance:none}
.search button{width:32px;height:32px;padding:0;flex:none;display:grid;place-items:center;border-radius:8px}
.search button:hover{background:var(--active)}
.list-section{margin-top:23px}
.list-head{display:flex;gap:15px;align-items:center;min-height:46px;margin-bottom:12px}
.list-head h2{font-size:24px;line-height:1.1;letter-spacing:-.55px;font-weight:775}
.list-heading{min-width:0;margin-right:auto}
.list-heading p{margin-top:4px;color:var(--muted);font-size:13px}
.access-tag{flex:none;display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;font-size:12.5px;font-weight:700;background:#eae0fa;color:#57358b}
.access-tag.open{background:#e8f3ec;color:#245943}
.access-tag svg{width:14px;height:14px}
.filters{display:flex;flex:none;gap:5px;margin:0}
.filter{background:#fbf8ff;color:#5f4d78;padding:7px 10px;border-radius:10px;font-size:13px;font-weight:650;min-height:35px}
.filter[aria-pressed="true"]{background:#e9defa;color:#4d279c}
.topic-picker{display:flex;align-items:center;gap:9px;min-width:0}
.topic-picker label{flex:none;color:#5f4d78;font-size:13px;font-weight:650}
.topic-select{position:relative}
.topic-select select{width:100%;min-width:222px;min-height:38px;appearance:none;border:1px solid #e7dff2;border-radius:12px;background:#fbf8ff;color:#3e285f;padding:8px 38px 8px 12px;font:inherit;font-size:13px;cursor:pointer}
.topic-select select:focus-visible{outline:2px solid #7857b5;outline-offset:2px}
.topic-select svg{position:absolute;right:12px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:#5f4d78;pointer-events:none}
.table {
  --columns: minmax(0,.91fr) minmax(0,1.02fr) minmax(0,1.75fr);
  overflow:hidden;
  border:1px solid #e9e1f2;
  border-radius:16px;
  background:var(--panel);
  box-shadow:0 2px 5px #37204b06;
}
[data-reference-category="phrasal"],[data-reference-category="topics"] {
  --columns: minmax(0,1fr) minmax(0,.93fr) minmax(0,1.8fr);
}
[data-reference-category="phrases"] {
  --columns: minmax(0,1.21fr) minmax(0,.92fr) minmax(0,1.54fr);
}
.table-head,.entry {
  display:grid;
  grid-template-columns:var(--columns);
  align-items:center;
  column-gap:20px;
  padding-inline:20px;
}
[data-reference-category="irregular"] > [role="table"] {
  --columns: repeat(3,minmax(0,.53fr)) minmax(0,.93fr) minmax(0,1.75fr);
}
.table-head{min-height:42px;background:#faf7fd;color:#655976;font-size:12px;font-weight:720}
.entry{min-height:63px;padding-block:9px;border-top:1px solid #efe9f5}
.entry:hover{background:#fdfbff}
.entry .word{min-width:0;color:#2d2041;font-size:16px;font-weight:710;letter-spacing:-.24px;line-height:1.3;overflow-wrap:anywhere}
.reference-word-audio{display:inline-flex;align-items:center;gap:7px;max-width:100%;vertical-align:middle}
.reference-word-text{min-width:0}
.reference-form-options{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.reference-form-label{display:none}
.reference-form-heading{display:flex;align-items:baseline;gap:6px}
.reference-form-heading strong{color:#6547a2;font-weight:780}
.reference-form-heading span{font-weight:570}
.reference-content .reference-audio{display:inline-grid;flex:0 0 25px;place-items:center;width:25px;height:25px;padding:0;border-radius:7px;background:#f3eefa;color:#6547a2}
.reference-content .reference-audio svg{width:14px;height:14px}
.reference-content .reference-audio:hover{background:#e8dbfa}
.reference-content .reference-audio[aria-pressed="true"]{background:var(--purple);color:#fff}
.reference-audio-status{position:fixed;z-index:12;bottom:max(16px,env(safe-area-inset-bottom));left:50%;width:max-content;max-width:calc(100vw - 32px);transform:translateX(-50%);margin:0;padding:10px 16px;border-radius:12px;background:#493176;color:#fff;font-size:14px;box-shadow:0 4px 20px #2a16303b}
.reference-audio-status:empty{width:1px;height:1px;padding:0;clip-path:inset(50%);overflow:hidden}
.entry .meaning{color:#554762;font-size:13.5px;line-height:1.35;overflow-wrap:anywhere}
.entry .example{font-size:13.5px;font-weight:520;line-height:1.35;overflow-wrap:anywhere}
.entry .example b{color:#5731a7;font-weight:720}
.entry .example small{display:block;margin-top:3px;color:#685d77;font-size:12px;line-height:1.3;font-weight:400}
.gate{position:relative;min-height:233px;display:grid;place-items:center;isolation:isolate;overflow:hidden;background:#f8f3fc}
.gate-rows{position:absolute;inset:0;filter:blur(5px);z-index:-2;opacity:.72;pointer-events:none}
.gate-rows .entry{min-height:62px;background:#fff}
.gate-rows .entry:nth-child(even){background:#faf6ff}
.placeholder-group i{height:8px;border-radius:8px;display:block;background:#b6a4ce;width:68%;margin:5px 0}
.placeholder-group i:nth-child(2){width:54%;background:#cfbfdf}
.gate::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#faf6ff36,#f3eafb7d 46%,#eee3fbde);z-index:-1}
.gate-copy{text-align:center;max-width:95%;padding:20px 12px}
.gate-icon{height:39px;width:39px;margin:0 auto 9px;display:grid;place-items:center;color:#5c33ae;background:#e9dbfb;border-radius:11px}
.gate-icon svg{width:20px;height:20px}
.gate h3{font-size:22px;line-height:1.12;letter-spacing:-.55px;margin:0;font-weight:780}
.gate p{margin:7px 0 12px;color:#574768;font-size:13.5px;line-height:1.3}
.primary{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;background:var(--purple);padding:9px 17px;color:#fff;min-height:46px;font-weight:700;font-size:14px;line-height:1.3}
.primary:hover{background:#4928a8}
.primary svg{width:17px;height:17px}
.secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#593a88;background:#efe6fb;border-radius:11px;padding:8px 13px;min-height:40px;font-weight:700;font-size:13px}
.empty{padding:30px 14px;text-align:center}
.empty strong{font-size:18px}
.empty p{color:var(--muted);font-size:13px;margin:7px 0 12px}
.search-summary{font-size:13px;color:var(--muted);margin:0 0 10px}
.mobile-category{width:100%;align-items:center;justify-content:space-between;min-height:45px;padding:7px 12px;border-radius:13px;background:#fcf9ff;color:#4f3b69;font-weight:720}
.mobile-category > span{display:flex;align-items:center;gap:9px}
.mobile-category > span svg{color:#643caa}
.mobile-category > svg{width:16px;height:16px;color:#6b5388}
.reference-sheet{padding:0;border:none;color:var(--ink);max-width:calc(100% - 24px);width:430px;border-radius:22px;box-shadow:0 18px 65px #281b5766;background:#faf7fe}
.reference-sheet::backdrop{background:#23183761}
.sheet-inner{padding:17px 16px 20px}
.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:8px}
.sheet-head h2{font-size:22px;letter-spacing:-.4px}
.sheet-head .square{width:38px;height:38px}
.sheet-list{display:grid;gap:4px}
.sheet-row{border-radius:11px;display:flex;gap:9px;align-items:center;min-height:46px;padding:8px 12px;text-align:left;font-weight:660;color:#4f4064}
.sheet-row[aria-pressed="true"]{background:#ebe0fa;color:#532d9c}
.sheet-row .selected{margin-left:auto;color:#6034a8}

@media(max-width:1120px){
  .content{padding-left:23px;padding-right:23px}
  .tab{font-size:12px;gap:5px}
  .tab svg{width:15px;height:15px}
}
@media(min-width:1024px) and (max-width:1120px){
  .tab{padding-inline:4px}
  .tab svg{display:none}
  .table-head,.entry{padding-inline:16px;column-gap:13px}
  .reference-form-heading{flex-wrap:wrap;gap:2px 5px;font-size:11px}
  .entry .reference-form{font-size:14px}
  .reference-form-options > .reference-word-audio{flex-wrap:wrap;gap:3px 5px}
  .reference-form .reference-word-text{flex:0 0 auto;max-width:100%}
  .topic-select select{min-width:185px}
}
@media(min-width:1024px){
  .reference-page{padding-left:var(--kv-sidebar-width)}
}
@media(max-width:1023px){
  .reference-page>.kv-sidebar,.reference-page>[data-kum-approved-desktop-header]{display:none}
  .reference-page{background:#f5effb}
  .reference-page .kum-mobile-top{background:#fcfaff;border-bottom:1px solid #eee5f5}
  .mobile-only{display:inline-flex}
  .desktop-only{display:none}
  .content{padding:18px 14px 28px}
  .hero{display:block;min-height:0;margin:0 0 13px;padding:0;background:none;border-radius:0;overflow:visible}
  .hero h1{color:#261938;font-size:29px;line-height:1.12;letter-spacing:-1px}
  .hero p,.hero-art{display:none}
  .mobile-category{min-height:48px;padding:0 12px;background:white;border:1px solid #e9def3;border-radius:12px;color:#453169;font-size:14px}
  .mobile-category>span{display:flex;align-items:center;gap:8px}
  .mobile-category svg{width:17px;height:17px;color:#7354ad}
  .toolbar{flex-direction:column;align-items:stretch;gap:9px;margin-top:10px}
  .levels{border:1px solid #ede4f5;padding:3px;gap:3px;border-radius:11px;background:#fcf9ff}
  .level{width:auto;height:34px;border-radius:8px;font-size:13px}
  .search{height:43px;min-width:0;background:#fcfaff;border:1px solid #e9def3;border-radius:11px;padding-inline:10px}
  .search input{font-size:16px}
  .search input::placeholder{font-size:13px}
  .search svg{width:16px;height:16px}
  .list-section{margin-top:12px}
  .list-head{display:contents}
  .list-head .list-heading,.list-head .access-tag{display:none}
  .filters{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:5px;margin-bottom:10px}
  .filters .filter{min-height:42px;padding:5px 4px;font-size:11.5px;white-space:nowrap;background:#fcfaff;border-radius:10px}
  .filters .filter[aria-pressed="true"]{background:#eadefa;color:#4f2a91}
  .topic-picker{gap:8px;margin-bottom:10px}
  .topic-picker label{font-size:12px}
  .topic-select{flex:1;min-width:0}
  .topic-select select{min-width:0;min-height:44px;background:#fcfaff;border-radius:11px}
  .table{overflow:visible;background:transparent;box-shadow:none;border:0;border-radius:0}
  .table-head{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);padding:0}
  .table [role="table"] > .entry {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    min-height:0;
    margin:0 0 8px;
    padding:9px 12px 11px;
    background:#fff;
    border:1px solid #e9e0f0;
    border-radius:13px;
  }
  .entry .word{min-height:35px;color:#2b1c40;font-size:16px;font-weight:740;letter-spacing:-.19px;line-height:1.27}
  .entry .word > .reference-word-audio{display:flex;justify-content:space-between;min-height:35px}
  .entry .meaning{margin-top:2px;color:#544569;font-size:13px;text-align:left}
  .entry .example{padding-top:7px;margin-top:7px;border-top:1px solid #f0eaf5;color:#35294a;font-size:12.5px}
  .entry .example b{font-weight:730}
  .entry .example small{margin-top:3px;font-size:11.75px;line-height:1.33;color:#6d607f}
  .reference-content .entry .reference-audio {
    position:relative;
    isolation:isolate;
    flex:0 0 40px;
    width:40px;
    height:40px;
    margin:-4px -4px -3px 0;
    border:0;
    background:transparent;
    color:#6947ad;
  }
  .reference-content .entry .reference-audio::before{content:"";position:absolute;inset:5px;z-index:-1;border-radius:8px;background:#f1e9fa}
  .reference-content .entry .reference-audio[aria-pressed="true"]{color:white}
  .reference-content .entry .reference-audio[aria-pressed="true"]::before{background:#6541aa}
  .reference-content .entry .reference-audio svg{width:16px;height:16px}

  [data-reference-category="irregular"] [role="table"] > .entry {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    column-gap:6px;
  }
  .entry .reference-form{position:relative;min-width:0;padding:1px 7px 5px;background:#faf6fd;border-radius:9px}
  .reference-form-label{display:flex;align-items:center;min-height:34px;color:#6d52a0;font-size:10px;font-weight:760;letter-spacing:.03em}
  .reference-form-options{align-items:stretch;font-size:15px;line-height:1.25}
  .reference-form-options > .reference-word-audio{justify-content:space-between;gap:3px}
  .reference-form-options > :not(:only-child){flex-wrap:wrap;justify-content:flex-start}
  .reference-form .reference-word-text{flex:0 0 auto;max-width:100%}
  .reference-content .reference-form .reference-audio{flex-basis:34px;width:34px;height:34px;margin:0 -5px 0 0}
  .reference-content .reference-form .reference-audio svg{width:14px;height:14px}
  .reference-content .reference-form-options > :only-child > .reference-audio{position:absolute;top:1px;right:7px}
  [data-reference-category="irregular"] .meaning{grid-column:1/-1;margin-top:7px}
  [data-reference-category="irregular"] .example{grid-column:1/-1}
  .gate{border-radius:13px}
  .gate{min-height:204px}
  .gate-copy{padding:15px 6px}
  .gate-icon{height:33px;width:33px;margin-bottom:7px;border-radius:9px}
  .gate-icon svg{height:17px;width:17px}
  .gate h3{font-size:19px}
  .gate p{font-size:12.5px;margin:5px 0 11px}
  .gate .primary{min-height:43px}
  .gate-rows .entry{min-height:62px}
  .gate-rows .placeholder-group:nth-child(3){grid-column:1/-1}
  .reference-sheet{position:fixed;margin:auto 0 0;inset:auto 0 0;max-width:none;width:100%;border-radius:22px 22px 0 0}
  .reference-sheet[open]{animation:sheet-in .2s ease-out}
  .reference-sheet[open]::backdrop{animation:shade-in .2s ease-out}
  .sheet-inner{padding-bottom:max(18px,env(safe-area-inset-bottom))}
}
@media(min-width:1024px) and (max-height:820px){
  .content{padding-top:20px}
  .hero{padding-top:17px;padding-bottom:17px}
  .list-section{margin-top:18px}
  .gate{min-height:198px}
}
@media(max-width:360px){
  .content{padding-inline:11px}
  .table [role="table"] > .entry{padding-inline:10px}
  .entry .reference-form{padding-inline:6px}
  .reference-form-options{font-size:13px;letter-spacing:-.3px}
}
@keyframes sheet-in{from{transform:translateY(100%)}}
@keyframes shade-in{from{opacity:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.reference-page:has(.reference-sheet[open]){overflow:hidden}
.reference-sheet{max-height:90dvh;overflow:auto}
.reference-content{min-width:0}

.reference-content .reference-source { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reference-source a { color: var(--purple); text-underline-offset: 2px; }
