:root{
  --mem-bg:#eef3ef;
  --mem-ink:#14201b;
  --mem-ink-2:#273b32;
  --mem-muted:#4b5d54;
  --mem-card:#fffdf7;
  --mem-card-2:#f6f0df;
  --mem-line:#d9dfd8;
  --mem-emerald:#0f6c55;
  --mem-emerald-2:#0a4f40;
  --mem-gold:#b98928;
  --mem-gold-soft:#f6e9bd;
  --mem-red:#a43b45;
  --mem-blue:#215f8c;
  --mem-shadow:0 22px 58px rgba(20,42,31,.12);
  --mem-radius:26px;
  --mem-serif:"Noto Serif KR","Nanum Myeongjo",Georgia,serif;
  --mem-sans:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.kb-memory-studio{margin:0;background:
  radial-gradient(circle at 8% 4%,rgba(15,108,85,.10),transparent 30rem),
  radial-gradient(circle at 92% 12%,rgba(185,137,40,.11),transparent 28rem),
  linear-gradient(180deg,#f4f7f3 0%,#edf3ef 48%,#f7f4ec 100%);
  color:var(--mem-ink);font-family:var(--mem-sans);min-height:100dvh;padding-bottom:env(safe-area-inset-bottom,0px)}
body.kb-memory-studio::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:
  linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,.12)),
  repeating-linear-gradient(0deg,transparent 0 31px,rgba(18,62,48,.022) 31px 32px);opacity:.9}
button,input,textarea{font:inherit}
button{cursor:pointer}
.memory-app{width:min(1540px,calc(100% - 32px));margin:0 auto;padding:28px 0 90px}
.memory-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.55fr);gap:28px;align-items:center;padding:clamp(28px,4.2vw,58px);border:1px solid #cfd8d1;border-radius:34px;background:
  linear-gradient(135deg,rgba(255,255,255,.96),rgba(252,248,236,.95));box-shadow:var(--mem-shadow)}
.memory-hero::after{content:"✦";position:absolute;right:28%;top:-120px;font-size:360px;line-height:1;color:rgba(15,108,85,.045);transform:rotate(8deg);pointer-events:none}
.memory-hero-copy,.memory-hero-progress{position:relative;z-index:1}
.memory-kicker,.section-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--mem-emerald);font-size:.76rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.memory-kicker::before,.section-eyebrow::before{content:"";width:26px;height:2px;background:var(--mem-gold)}
.memory-hero h1{margin:14px 0 14px;font-family:var(--mem-serif);font-size:clamp(2.15rem,4.3vw,4.75rem);line-height:1.06;letter-spacing:-.05em;color:#16251e}
.memory-hero h1 strong{color:var(--mem-emerald);font-weight:900}
.memory-hero p{max-width:850px;margin:0;color:#34493f;font-size:clamp(.98rem,1.25vw,1.12rem);font-weight:650;line-height:1.82}
.memory-hero-progress{justify-self:end;width:min(100%,390px);display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center;padding:18px;border:1px solid #d8dfd8;border-radius:28px;background:#fff;box-shadow:0 16px 40px rgba(20,42,31,.08)}
.memory-ring{width:138px;height:138px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--mem-emerald) var(--memory-progress,0%),#e3e9e4 0);position:relative}
.memory-ring::before{content:"";position:absolute;inset:11px;border-radius:50%;background:#fffdf8}
.memory-ring span{position:relative;z-index:1;text-align:center}.memory-ring strong{display:block;font-family:var(--mem-serif);font-size:2.15rem;color:#17392e}.memory-ring small{display:block;color:var(--mem-muted);font-weight:800;font-size:.68rem}
.memory-hero-metrics{display:grid;gap:8px}.memory-hero-metrics span{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:14px;background:#f3f7f3;border:1px solid #e0e7e1}.memory-hero-metrics b{font-size:1.25rem;color:var(--mem-emerald-2)}.memory-hero-metrics small{color:#3c5148;font-weight:800}
.memory-primary-tabs{position:sticky;top:70px;z-index:34;margin:18px 0;padding:8px;display:flex;gap:8px;overflow-x:auto;border:1px solid #d6ded7;border-radius:20px;background:rgba(255,253,247,.96);box-shadow:0 12px 34px rgba(20,42,31,.10);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);scrollbar-width:none}.memory-primary-tabs::-webkit-scrollbar{display:none}.memory-primary-tabs button{flex:0 0 auto;min-height:44px;padding:0 18px;border:1px solid transparent;border-radius:14px;background:transparent;color:#23382f;font-weight:900}.memory-primary-tabs button:hover{background:#eef5f1}.memory-primary-tabs button.is-active{background:var(--mem-emerald);color:#fff;border-color:var(--mem-emerald);box-shadow:0 8px 22px rgba(15,108,85,.22)}.memory-primary-tabs .memory-settings-trigger{margin-left:auto;border-color:#d5c089;background:#fff7dc;color:#664c13}
.memory-view{display:none}.memory-view.is-active{display:block}
.today-summary,.library-head,.saved-head{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:25px 28px;border:1px solid var(--mem-line);border-radius:24px;background:var(--mem-card);box-shadow:0 12px 32px rgba(20,42,31,.07)}
.today-summary h2,.library-head h2,.saved-head h2{margin:5px 0 6px;font-family:var(--mem-serif);font-size:clamp(1.7rem,2.5vw,2.65rem);letter-spacing:-.035em;color:#15271f}.today-summary p,.library-head p,.saved-head p{margin:0;color:#3d5148;font-weight:650;line-height:1.7}
.today-progress-wrap{min-width:230px;text-align:right}.today-progress-wrap strong{display:block;margin-bottom:9px;color:#153f32;font-size:1.05rem}.today-progress{height:11px;border-radius:999px;background:#dce6df;overflow:hidden}.today-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--mem-emerald),#2b9d76);border-radius:inherit;transition:width .3s ease}
.memory-today-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;margin-top:18px;align-items:start}.today-queue-card,.practice-card,.history-card,.due-card{border:1px solid var(--mem-line);border-radius:26px;background:var(--mem-card);box-shadow:var(--mem-shadow)}.today-queue-card{position:sticky;top:144px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 20px;border-bottom:1px solid #e1e5df}.panel-head.compact{padding:16px}.panel-head div{display:grid;gap:2px}.panel-head span{color:#4b5e55;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.panel-head strong{color:#172d24;font-size:1rem}.panel-head button{min-height:36px;padding:0 12px;border:1px solid #b7c9bf;border-radius:11px;background:#eff6f2;color:#174939;font-weight:900}.today-queue{display:grid;gap:8px;padding:12px;max-height:calc(100dvh - 230px);overflow:auto}.queue-item{width:100%;display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;padding:11px;border:1px solid #e0e5e0;border-radius:15px;background:#fff;color:#1d3028;text-align:left}.queue-item:hover{border-color:#9ebcaf;background:#f4faf6}.queue-item.is-active{border-color:var(--mem-emerald);background:#eaf6f1;box-shadow:0 0 0 2px rgba(15,108,85,.08)}.queue-item.is-done{border-color:#c6b46f;background:#fff9df}.queue-index{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#edf2ee;color:#345047;font-weight:900}.queue-copy{min-width:0}.queue-copy strong,.queue-copy small{display:block}.queue-copy strong{font-size:.93rem}.queue-copy small{margin-top:2px;color:#52645c;font-weight:700}.queue-state{color:var(--mem-emerald);font-weight:900;font-size:.75rem}
.practice-card{overflow:hidden}.practice-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border-bottom:1px solid #e0e5df;background:linear-gradient(180deg,#fffefa,#fbf8ee)}.practice-head h2{margin:6px 0 0;font-family:var(--mem-serif);font-size:clamp(1.55rem,2.6vw,2.35rem);color:#14271f}.practice-badges{display:flex;gap:7px;flex-wrap:wrap}.practice-badges span{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#e8f4ef;color:#15513f;font-size:.72rem;font-weight:900}.practice-badges span+span{background:#fff1c9;color:#654911}.bookmark-btn{min-height:42px;padding:0 15px;border:1px solid #d5bd80;border-radius:13px;background:#fff9e7;color:#6b5017;font-weight:900}.bookmark-btn.is-saved{background:#b98928;color:#fff;border-color:#b98928}
.target-version{display:flex;align-items:center;gap:8px;padding:14px 24px;border-bottom:1px solid #e3e7e2;background:#f7faf7;overflow-x:auto}.target-version>span{flex:0 0 auto;color:#3f5149;font-size:.78rem;font-weight:900;margin-right:5px}.target-version button{flex:0 0 auto;min-height:36px;padding:0 14px;border:1px solid #cdd8d1;border-radius:999px;background:#fff;color:#263c32;font-weight:900}.target-version button.is-active{background:#153f32;color:#fff;border-color:#153f32}
.scripture-sheet{margin:24px;border:1px solid #ded6c2;border-radius:22px;background:
  repeating-linear-gradient(0deg,rgba(101,82,41,.018) 0 1px,transparent 1px 30px),#fffaf0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 14px 36px rgba(68,53,25,.08);overflow:hidden}.scripture-block{padding:22px 24px;border-bottom:1px solid #e8dfcb}.scripture-block:last-child{border-bottom:0}.scripture-block>span{display:inline-flex;min-width:76px;color:#745d25;font-size:.72rem;font-weight:950;letter-spacing:.08em}.scripture-block p{margin:9px 0 0;color:#1e261f;font-family:var(--mem-serif);font-size:clamp(1.04rem,1.55vw,1.34rem);font-weight:650;line-height:1.9;letter-spacing:-.018em}.scripture-ko p{font-size:clamp(1.08rem,1.65vw,1.42rem);font-weight:760}.scripture-block.is-target{background:linear-gradient(90deg,rgba(246,233,189,.78),rgba(255,250,240,.38))}
.practice-modes{display:flex;gap:7px;padding:0 24px 15px;overflow-x:auto;scrollbar-width:none}.practice-modes::-webkit-scrollbar{display:none}.practice-modes button{flex:0 0 auto;min-height:40px;padding:0 15px;border:1px solid #cdd8d1;border-radius:12px;background:#fff;color:#263b32;font-weight:900}.practice-modes button.is-active{background:var(--mem-emerald);border-color:var(--mem-emerald);color:#fff;box-shadow:0 8px 20px rgba(15,108,85,.18)}
.practice-stage{margin:0 24px 24px;padding:20px;border:1px solid #dfe5df;border-radius:20px;background:#f8fbf8;min-height:122px}.practice-read-hint{margin:0;color:#31473e;font-weight:750;line-height:1.75}.blank-tools,.typing-tools,.voice-tools{display:grid;gap:14px}.blank-controls,.voice-control-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.blank-controls button,.voice-control-row button,.typing-actions button{min-height:38px;padding:0 13px;border:1px solid #c6d4cc;border-radius:11px;background:#fff;color:#213b30;font-weight:900}.blank-controls button.is-active,.voice-control-row button.is-active{background:#173f33;color:#fff;border-color:#173f33}.blank-passage,.initial-passage{font-family:var(--mem-serif);font-size:1.12rem;line-height:2;color:#17261f}.blank-word{display:inline-block;margin:.09em .08em;padding:.04em .15em;border-radius:6px}.blank-word.is-hidden{min-width:2.2em;color:transparent;background:#153f32;box-shadow:inset 0 -2px 0 #0b2f25}.blank-word.is-hidden:hover{background:#1e7158}.initial-passage{letter-spacing:.09em;word-spacing:.36em;font-weight:800;color:#194c3d}.typing-tools textarea{width:100%;min-height:130px;resize:vertical;border:1px solid #bfcfc5;border-radius:14px;background:#fff;color:#16271f;padding:14px;font-family:var(--mem-serif);font-size:1.05rem;line-height:1.75}.typing-tools textarea:focus{outline:3px solid rgba(15,108,85,.12);border-color:var(--mem-emerald)}.typing-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.typing-score{font-weight:950;color:#174a3a}.voice-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.voice-box{padding:14px;border:1px solid #d4ded7;border-radius:15px;background:#fff}.voice-box span{display:block;color:#41554b;font-size:.72rem;font-weight:900;margin-bottom:8px}.voice-box strong{display:block;color:#163b30;margin-bottom:9px}.voice-status{color:#385147;font-weight:750;line-height:1.55}.record-preview{width:100%;margin-top:8px}
.review-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:#eff5f1;border-top:1px solid #d8e2db}.review-footer>div:first-child{display:grid;gap:3px}.review-footer span{color:#1b342a;font-weight:950}.review-footer small{color:#4a5d54;font-weight:700}.review-rating{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:7px}.review-rating button{min-height:52px;padding:7px 10px;border:1px solid #c6d4cc;border-radius:13px;background:#fff;color:#20362d}.review-rating b,.review-rating small{display:block}.review-rating b{font-size:.86rem}.review-rating small{margin-top:2px;font-size:.66rem;color:#51645b}.review-rating button:nth-child(1):hover{border-color:#b05b61;background:#fff0f1}.review-rating button:nth-child(2):hover{border-color:#bd8a39;background:#fff7e6}.review-rating button:nth-child(3):hover{border-color:#277455;background:#ebf7f1}.review-rating button:nth-child(4):hover{border-color:#245e91;background:#edf6ff}
.library-head{align-items:center}.memory-search{min-width:min(360px,100%);display:grid;gap:6px}.memory-search span{color:#40554b;font-size:.72rem;font-weight:900}.memory-search input{height:48px;border:1px solid #cbd6ce;border-radius:14px;background:#fff;color:#172820;padding:0 15px;font-weight:700}.memory-search input:focus{outline:3px solid rgba(15,108,85,.11);border-color:var(--mem-emerald)}.theme-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}.theme-card{min-height:104px;padding:15px;text-align:left;border:1px solid #d7dfd8;border-radius:18px;background:#fffdf7;color:#1b3027;box-shadow:0 9px 24px rgba(20,42,31,.05)}.theme-card:hover{transform:translateY(-2px);border-color:#9ebbad;box-shadow:0 15px 34px rgba(20,42,31,.10)}.theme-card.is-active{background:#153f32;color:#fff;border-color:#153f32}.theme-card b{display:block;font-family:var(--mem-serif);font-size:1.02rem}.theme-card small{display:block;margin-top:5px;line-height:1.4;color:inherit;opacity:.9}.theme-card em{display:block;margin-top:8px;font-style:normal;font-size:.68rem;font-weight:900;color:#7a6024}.theme-card.is-active em{color:#f8dd93}.library-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 18px;border:1px solid #d8dfd9;border-radius:18px;background:#fff;margin-bottom:10px}.library-toolbar strong{color:#173128}.library-filters{display:flex;gap:6px}.library-filters button{min-height:34px;padding:0 11px;border:1px solid #ccd7d0;border-radius:999px;background:#fff;color:#30483e;font-weight:850}.library-filters button.is-active{background:#173f33;color:#fff;border-color:#173f33}.verse-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.library-verse{padding:15px;border:1px solid #d9e0da;border-radius:17px;background:#fffdf8;color:#192f26;text-align:left}.library-verse:hover{border-color:#a9c1b5;box-shadow:0 12px 26px rgba(20,42,31,.09)}.library-verse .lv-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.library-verse strong{font-family:var(--mem-serif);font-size:1.02rem}.library-verse span{display:inline-flex;padding:3px 7px;border-radius:999px;background:#edf5f0;color:#15513e;font-size:.65rem;font-weight:900}.library-verse small{display:block;margin-top:7px;color:#506159;font-weight:750}.library-verse.is-mastered{border-color:#c5a85c;background:#fff9e7}.library-verse.is-started:not(.is-mastered){border-color:#8bb6a4}
.review-dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.review-dashboard-grid article{padding:20px;border:1px solid #d8dfd9;border-radius:22px;background:#fffdf8;box-shadow:0 10px 28px rgba(20,42,31,.06)}.review-dashboard-grid span,.review-dashboard-grid small{display:block;color:#4c6056;font-weight:800}.review-dashboard-grid strong{display:block;margin:8px 0 4px;font-family:var(--mem-serif);font-size:2.2rem;color:#173e32}.history-card,.due-card{margin-top:14px;overflow:hidden}.history-calendar{display:grid;grid-template-columns:repeat(14,1fr);gap:6px;padding:18px}.history-day{aspect-ratio:1;border-radius:8px;background:#e6ece8;display:grid;place-items:center;color:#44584f;font-size:.62rem;font-weight:900}.history-day[data-level="1"]{background:#cbe5d8}.history-day[data-level="2"]{background:#89c5ac;color:#143a2f}.history-day[data-level="3"]{background:#3d9674;color:#fff}.history-day[data-level="4"]{background:#155a46;color:#fff}.due-list{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:16px}.due-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;border:1px solid #d9e0da;border-radius:15px;background:#fff}.due-item strong{color:#1a342a}.due-item small{color:#50645a;font-weight:750}.due-item button{min-height:34px;padding:0 10px;border:1px solid #aac3b6;border-radius:10px;background:#eff7f3;color:#174738;font-weight:900}
.saved-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.saved-card{padding:18px;border:1px solid #d8dfd9;border-radius:20px;background:#fffdf8;box-shadow:0 10px 28px rgba(20,42,31,.06)}.saved-card h3{margin:0;font-family:var(--mem-serif);color:#19342a}.saved-card p{color:#354d42;line-height:1.65;font-weight:650}.saved-card audio{width:100%;margin-top:8px}.saved-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.saved-actions button{min-height:36px;padding:0 11px;border:1px solid #c9d5cd;border-radius:10px;background:#fff;color:#213b30;font-weight:900}.saved-actions .danger{border-color:#deb9bc;color:#842f38;background:#fff3f4}.memory-empty{grid-column:1/-1;padding:32px;border:1px dashed #bdcbc2;border-radius:20px;background:#fff;color:#40564b;text-align:center;font-weight:800}
.memory-modal[hidden]{display:none}.memory-modal{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:18px}.memory-modal-backdrop{position:absolute;inset:0;background:rgba(8,20,15,.62);backdrop-filter:blur(8px)}.memory-modal-card{position:relative;width:min(760px,100%);max-height:min(88dvh,820px);overflow:auto;border:1px solid #d7dfd8;border-radius:28px;background:#fffdf7;box-shadow:0 32px 90px rgba(0,0,0,.28)}.memory-modal-card>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 24px;border-bottom:1px solid #dfe5e0;background:#fffdf7}.memory-modal-card>header span{color:#17614c;font-size:.72rem;font-weight:950;letter-spacing:.1em}.memory-modal-card>header h2{margin:3px 0 0;font-family:var(--mem-serif);color:#172d24}.memory-modal-card>header button{width:42px;height:42px;border:1px solid #cbd6cf;border-radius:12px;background:#fff;color:#213b30;font-size:1.4rem}.settings-body{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px}.settings-body>label,.theme-setting{padding:17px;border:1px solid #dce3dd;border-radius:18px;background:#f9fbf9}.settings-body>label>span,.theme-setting>span{display:block;color:#17372c;font-weight:950}.settings-body>label>small,.theme-setting>small{display:block;margin-top:3px;color:#50645a;font-weight:700}.stepper{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:7px;margin-top:13px}.stepper button{height:42px;border:1px solid #b9cabf;border-radius:11px;background:#fff;color:#173c30;font-size:1.2rem;font-weight:900}.stepper strong{height:42px;display:grid;place-items:center;border-radius:11px;background:#173f33;color:#fff}.theme-setting{grid-column:1/-1}.theme-setting-grid{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.theme-setting-grid button{min-height:36px;padding:0 12px;border:1px solid #c7d4cc;border-radius:999px;background:#fff;color:#254036;font-weight:850}.theme-setting-grid button.is-active{background:#173f33;color:#fff;border-color:#173f33}.memory-modal-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:18px 20px;border-top:1px solid #dfe5e0;background:#f6f8f6}.memory-modal-card>footer button{min-height:44px;padding:0 16px;border-radius:12px;font-weight:950}.modal-secondary{border:1px solid #c6d3cb;background:#fff;color:#264238}.modal-primary{border:1px solid #0f6c55;background:#0f6c55;color:#fff}
.memory-toast{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:500;max-width:min(420px,calc(100% - 36px));padding:13px 16px;border-radius:14px;background:#173f33;color:#fff;font-weight:850;box-shadow:0 16px 42px rgba(0,0,0,.22);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}.memory-toast.is-show{opacity:1;transform:none}.memory-toast.is-error{background:#8f3540}
@media(max-width:1200px){.memory-hero{grid-template-columns:1fr}.memory-hero-progress{justify-self:stretch;width:auto;grid-template-columns:150px 1fr}.theme-grid{grid-template-columns:repeat(4,1fr)}.verse-library{grid-template-columns:repeat(3,1fr)}.saved-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:920px){.memory-app{width:min(100% - 22px,1540px);padding-top:16px}.memory-today-layout{grid-template-columns:1fr}.today-queue-card{position:relative;top:auto}.today-queue{display:flex;overflow-x:auto;max-height:none;padding-bottom:13px;scroll-snap-type:x proximity}.queue-item{min-width:230px;scroll-snap-align:start}.review-footer{align-items:stretch;flex-direction:column}.review-rating{grid-template-columns:repeat(4,1fr)}.theme-grid{grid-template-columns:repeat(3,1fr)}.verse-library{grid-template-columns:repeat(2,1fr)}.due-list{grid-template-columns:repeat(2,1fr)}.review-dashboard-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){body.kb-memory-studio{background:#f1f5f1}.memory-app{width:min(100% - 14px,1540px);padding:10px 0 74px}.memory-hero{padding:22px 18px;border-radius:24px;gap:18px}.memory-hero h1{font-size:2.15rem}.memory-hero p{font-size:.93rem;line-height:1.7}.memory-hero-progress{grid-template-columns:105px 1fr;padding:12px;gap:12px;border-radius:20px}.memory-ring{width:96px;height:96px}.memory-ring::before{inset:8px}.memory-ring strong{font-size:1.55rem}.memory-ring small{font-size:.55rem}.memory-hero-metrics span{padding:7px 9px}.memory-hero-metrics b{font-size:1rem}.memory-hero-metrics small{font-size:.66rem}.memory-primary-tabs{top:62px;margin:10px 0;border-radius:16px;padding:6px}.memory-primary-tabs button{min-height:40px;padding:0 13px;font-size:.8rem}.memory-primary-tabs .memory-settings-trigger{margin-left:0}.today-summary,.library-head,.saved-head{padding:18px;border-radius:20px;align-items:stretch;flex-direction:column}.today-progress-wrap{min-width:0;width:100%;text-align:left}.practice-card,.today-queue-card,.history-card,.due-card{border-radius:20px}.practice-head{padding:18px;align-items:flex-start}.bookmark-btn{min-height:38px;padding:0 10px;white-space:nowrap}.target-version{padding:11px 14px}.target-version button{min-height:34px;padding:0 11px;font-size:.74rem}.scripture-sheet{margin:14px;border-radius:17px}.scripture-block{padding:17px 16px}.scripture-block p{font-size:1.03rem;line-height:1.82}.scripture-ko p{font-size:1.08rem}.practice-modes{padding:0 14px 12px}.practice-modes button{min-height:38px;padding:0 12px;font-size:.78rem}.practice-stage{margin:0 14px 14px;padding:15px;border-radius:15px}.review-footer{padding:15px}.review-rating{grid-template-columns:repeat(2,1fr)}.review-rating button{min-height:50px}.theme-grid{display:flex;overflow-x:auto;gap:8px;margin:10px 0 12px;scroll-snap-type:x proximity}.theme-card{min-width:190px;min-height:94px;scroll-snap-align:start}.library-toolbar{align-items:stretch;flex-direction:column}.library-filters{overflow-x:auto}.verse-library{grid-template-columns:1fr}.review-dashboard-grid{grid-template-columns:repeat(2,1fr);gap:8px}.review-dashboard-grid article{padding:15px;border-radius:17px}.review-dashboard-grid strong{font-size:1.75rem}.history-calendar{grid-template-columns:repeat(10,1fr);padding:12px;gap:4px}.due-list{grid-template-columns:1fr;padding:12px}.saved-grid{grid-template-columns:1fr}.voice-panel-grid{grid-template-columns:1fr}.settings-body{grid-template-columns:1fr;padding:14px}.theme-setting{grid-column:1}.memory-modal{padding:8px}.memory-modal-card{border-radius:22px;max-height:94dvh}.memory-modal-card>header{padding:16px}.memory-modal-card>footer{position:sticky;bottom:0}.memory-modal-card>footer button{flex:1}.memory-toast{right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 20px)}}
@media(max-width:390px){.memory-hero-progress{grid-template-columns:1fr}.memory-ring{margin:auto}.memory-hero-metrics{grid-template-columns:repeat(3,1fr)}.memory-hero-metrics span{display:grid;text-align:center;justify-content:center}.memory-primary-tabs{top:58px}.practice-head h2{font-size:1.4rem}.review-dashboard-grid{grid-template-columns:1fr 1fr}.history-calendar{grid-template-columns:repeat(8,1fr)}}
.library-more-wrap{text-align:center;padding:16px}.library-more-wrap button{min-height:44px;padding:0 22px;border:1px solid #aac2b5;border-radius:999px;background:#fff;color:#173f33;font-weight:950}.library-more-wrap button:hover{background:#173f33;color:#fff}
.voice-box button{min-height:38px;padding:0 13px;border:1px solid #a8c2b5;border-radius:11px;background:#edf7f2;color:#173f33;font-weight:950}.voice-box button:hover{background:#173f33;color:#fff}.voice-control-row>span{color:#324a3f;font-size:.76rem;font-weight:950;margin-right:2px}.voice-control-row button:disabled{cursor:not-allowed;opacity:.48}

/* =========================================================
   KBIBLE Memory Studio V3 — dark/light color modes
   Default: dark · shared preference: kbible_ui_color_mode
   ========================================================= */
.kb-page-theme-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 14px;padding:0 2px}.kb-page-theme-copy{display:grid;gap:1px;text-align:right}.kb-page-theme-copy>span{font-size:.58rem;font-weight:950;letter-spacing:.13em}.kb-page-theme-copy>strong{font-size:.78rem;font-weight:900}.kb-page-theme-switch{display:flex;gap:4px;padding:4px;border:1px solid;border-radius:999px}.kb-page-theme-switch button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 13px;border:0;border-radius:999px;font-weight:900;cursor:pointer}.kb-page-theme-switch button>span{font-size:.95rem}.kb-page-theme-switch button.is-active{box-shadow:0 7px 18px rgba(0,0,0,.16)}

body.kb-memory-studio[data-kb-page-theme="dark"]{
  --mem-bg:#071411;--mem-ink:#f4e8bd;--mem-ink-2:#e3d5aa;--mem-muted:#c9bb91;--mem-card:#0e241e;--mem-card-2:#132c25;--mem-line:#3c5e51;--mem-emerald:#70d3ae;--mem-emerald-2:#43b48c;--mem-gold:#efc967;--mem-gold-soft:#473a17;--mem-red:#ff9299;--mem-blue:#8ebdff;--mem-shadow:0 24px 64px rgba(0,0,0,.34);
  background:radial-gradient(circle at 9% 2%,#153f34 0,transparent 30rem),radial-gradient(circle at 92% 8%,#1d3158 0,transparent 30rem),linear-gradient(155deg,#06110f,#0a1c18 50%,#111522 100%);color:var(--mem-ink)
}
body.kb-memory-studio[data-kb-page-theme="dark"]::before{background:radial-gradient(circle at 50% -10%,rgba(239,201,103,.09),transparent 38%),repeating-linear-gradient(0deg,transparent 0 31px,rgba(239,201,103,.018) 31px 32px);opacity:1}
body.kb-memory-studio[data-kb-page-theme="dark"] .kb-page-theme-copy>span{color:#efc967}body.kb-memory-studio[data-kb-page-theme="dark"] .kb-page-theme-copy>strong{color:#f4e8bd}body.kb-memory-studio[data-kb-page-theme="dark"] .kb-page-theme-switch{border-color:#3d5d50;background:#0a1f1a}body.kb-memory-studio[data-kb-page-theme="dark"] .kb-page-theme-switch button{background:transparent;color:#d8c99f}body.kb-memory-studio[data-kb-page-theme="dark"] .kb-page-theme-switch button.is-active{background:#efc967;color:#2b210e}
body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero{border-color:#59705d;background:radial-gradient(circle at 88% 5%,rgba(239,201,103,.14),transparent 28%),linear-gradient(140deg,#0d3028,#102827 58%,#191829);box-shadow:var(--mem-shadow)}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero h1{color:#f6e8b8}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero h1 strong,body.kb-memory-studio[data-kb-page-theme="dark"] .memory-kicker,body.kb-memory-studio[data-kb-page-theme="dark"] .section-eyebrow{color:#efc967}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero p{color:#d8caa1}
body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero-progress{border-color:#3f6154;background:#0d251f;box-shadow:0 16px 42px rgba(0,0,0,.26)}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-ring{background:conic-gradient(#efc967 var(--memory-progress,0%),#26443a 0)}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-ring::before{background:#102a23}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-ring strong{color:#f4dda0}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-ring small{color:#c7b78e}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero-metrics span{border-color:#3c5c50;background:#132d26}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero-metrics b{color:#efc967}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-hero-metrics small{color:#d0c198}
body.kb-memory-studio[data-kb-page-theme="dark"] .memory-primary-tabs{border-color:#3b5c50;background:#0b211b;box-shadow:0 14px 38px rgba(0,0,0,.27)}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-primary-tabs button{color:#e4d6ac}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-primary-tabs button:hover{background:#18372f;color:#f1dfaa}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-primary-tabs button.is-active{border-color:#efc967;background:#efc967;color:#2b210e}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-primary-tabs .memory-settings-trigger{border-color:#927738;background:#302812;color:#f0d278}
body.kb-memory-studio[data-kb-page-theme="dark"] .today-summary,body.kb-memory-studio[data-kb-page-theme="dark"] .library-head,body.kb-memory-studio[data-kb-page-theme="dark"] .saved-head,body.kb-memory-studio[data-kb-page-theme="dark"] .today-queue-card,body.kb-memory-studio[data-kb-page-theme="dark"] .practice-card,body.kb-memory-studio[data-kb-page-theme="dark"] .history-card,body.kb-memory-studio[data-kb-page-theme="dark"] .due-card{border-color:#3c5d50;background:#0e241e;box-shadow:var(--mem-shadow)}
body.kb-memory-studio[data-kb-page-theme="dark"] .today-summary h2,body.kb-memory-studio[data-kb-page-theme="dark"] .library-head h2,body.kb-memory-studio[data-kb-page-theme="dark"] .saved-head h2,body.kb-memory-studio[data-kb-page-theme="dark"] .panel-head strong,body.kb-memory-studio[data-kb-page-theme="dark"] .practice-head h2{color:#f4e5b4}body.kb-memory-studio[data-kb-page-theme="dark"] .today-summary p,body.kb-memory-studio[data-kb-page-theme="dark"] .library-head p,body.kb-memory-studio[data-kb-page-theme="dark"] .saved-head p,body.kb-memory-studio[data-kb-page-theme="dark"] .panel-head span{color:#c9bb91}body.kb-memory-studio[data-kb-page-theme="dark"] .today-progress-wrap strong{color:#f1d987}body.kb-memory-studio[data-kb-page-theme="dark"] .today-progress{background:#27453b}
body.kb-memory-studio[data-kb-page-theme="dark"] .panel-head{border-bottom-color:#355649}body.kb-memory-studio[data-kb-page-theme="dark"] .panel-head button{border-color:#4b6e5f;background:#17362e;color:#eadcb2}
body.kb-memory-studio[data-kb-page-theme="dark"] .queue-item{border-color:#3d5d50;background:#102820;color:#eadcb1}body.kb-memory-studio[data-kb-page-theme="dark"] .queue-item:hover{border-color:#78a28e;background:#17362d}body.kb-memory-studio[data-kb-page-theme="dark"] .queue-item.is-active{border-color:#efc967;background:#2a2917;box-shadow:0 0 0 2px rgba(239,201,103,.09)}body.kb-memory-studio[data-kb-page-theme="dark"] .queue-item.is-done{border-color:#6b8d73;background:#16342b}body.kb-memory-studio[data-kb-page-theme="dark"] .queue-index{background:#1b3a31;color:#f0d886}body.kb-memory-studio[data-kb-page-theme="dark"] .queue-copy small{color:#c3b58c}body.kb-memory-studio[data-kb-page-theme="dark"] .queue-state{color:#efc967}
body.kb-memory-studio[data-kb-page-theme="dark"] .practice-head{border-bottom-color:#36574a;background:linear-gradient(180deg,#112a23,#0e241e)}body.kb-memory-studio[data-kb-page-theme="dark"] .practice-badges span{background:#173b30;color:#d9f0da}body.kb-memory-studio[data-kb-page-theme="dark"] .practice-badges span+span{background:#302711;color:#f2d77c}body.kb-memory-studio[data-kb-page-theme="dark"] .bookmark-btn{border-color:#92783a;background:#302811;color:#efd27a}body.kb-memory-studio[data-kb-page-theme="dark"] .bookmark-btn.is-saved{border-color:#efc967;background:#efc967;color:#2b210d}
body.kb-memory-studio[data-kb-page-theme="dark"] .target-version{border-bottom-color:#36574a;background:#102720}body.kb-memory-studio[data-kb-page-theme="dark"] .target-version>span{color:#c9bb91}body.kb-memory-studio[data-kb-page-theme="dark"] .target-version button,body.kb-memory-studio[data-kb-page-theme="dark"] .practice-modes button{border-color:#456657;background:#132d26;color:#eadcb1}body.kb-memory-studio[data-kb-page-theme="dark"] .target-version button.is-active,body.kb-memory-studio[data-kb-page-theme="dark"] .practice-modes button.is-active{border-color:#efc967;background:#efc967;color:#2b210e}
body.kb-memory-studio[data-kb-page-theme="dark"] .scripture-sheet{border-color:#655a3c;background:repeating-linear-gradient(0deg,rgba(239,201,103,.018) 0 1px,transparent 1px 30px),#171f19;box-shadow:inset 0 1px 0 rgba(255,255,255,.02),0 16px 40px rgba(0,0,0,.24)}body.kb-memory-studio[data-kb-page-theme="dark"] .scripture-block{border-bottom-color:#3f4938}body.kb-memory-studio[data-kb-page-theme="dark"] .scripture-block>span{color:#efc967}body.kb-memory-studio[data-kb-page-theme="dark"] .scripture-block p{color:#f1e2b1}body.kb-memory-studio[data-kb-page-theme="dark"] .scripture-block.is-target{background:linear-gradient(90deg,#332d16,#1b241b)}
body.kb-memory-studio[data-kb-page-theme="dark"] .practice-stage{border-color:#3d5d50!important;background:#0b211b!important;color:#eadcb1!important}body.kb-memory-studio[data-kb-page-theme="dark"] .practice-stage input,body.kb-memory-studio[data-kb-page-theme="dark"] .practice-stage textarea,body.kb-memory-studio[data-kb-page-theme="dark"] input[type="search"]{border-color:#48695b!important;background:#091d18!important;color:#f5e8bc!important}body.kb-memory-studio[data-kb-page-theme="dark"] input::placeholder,body.kb-memory-studio[data-kb-page-theme="dark"] textarea::placeholder{color:#ad9e77!important;opacity:1!important}
body.kb-memory-studio[data-kb-page-theme="dark"] .theme-card,body.kb-memory-studio[data-kb-page-theme="dark"] .library-verse,body.kb-memory-studio[data-kb-page-theme="dark"] .review-dashboard-grid article,body.kb-memory-studio[data-kb-page-theme="dark"] .due-item,body.kb-memory-studio[data-kb-page-theme="dark"] .saved-card,body.kb-memory-studio[data-kb-page-theme="dark"] .memory-empty{border-color:#3d5e51;background:#102820;color:#eadcb1;box-shadow:0 10px 28px rgba(0,0,0,.22)}body.kb-memory-studio[data-kb-page-theme="dark"] .theme-card:hover,body.kb-memory-studio[data-kb-page-theme="dark"] .library-verse:hover{border-color:#86713a;background:#172f28}body.kb-memory-studio[data-kb-page-theme="dark"] .theme-card.is-active{border-color:#efc967;background:#2b2815}body.kb-memory-studio[data-kb-page-theme="dark"] .library-verse.is-mastered{border-color:#8e783b;background:#2d2915}body.kb-memory-studio[data-kb-page-theme="dark"] .library-verse.is-started:not(.is-mastered){border-color:#578c73;background:#143229}
body.kb-memory-studio[data-kb-page-theme="dark"] .review-dashboard-grid span,body.kb-memory-studio[data-kb-page-theme="dark"] .review-dashboard-grid small,body.kb-memory-studio[data-kb-page-theme="dark"] .due-item small,body.kb-memory-studio[data-kb-page-theme="dark"] .saved-card p{color:#c7b98f}body.kb-memory-studio[data-kb-page-theme="dark"] .review-dashboard-grid strong,body.kb-memory-studio[data-kb-page-theme="dark"] .due-item strong,body.kb-memory-studio[data-kb-page-theme="dark"] .saved-card h3{color:#f1dfaa}
body.kb-memory-studio[data-kb-page-theme="dark"] .history-day{background:#1b352d;color:#c6b990}body.kb-memory-studio[data-kb-page-theme="dark"] .history-day[data-level="1"]{background:#254b3d;color:#e5d9b0}body.kb-memory-studio[data-kb-page-theme="dark"] .history-day[data-level="2"]{background:#2f7359;color:#f1e6bd}body.kb-memory-studio[data-kb-page-theme="dark"] .history-day[data-level="3"]{background:#3c9b75;color:#10251e}body.kb-memory-studio[data-kb-page-theme="dark"] .history-day[data-level="4"]{background:#efc967;color:#2c210d}
body.kb-memory-studio[data-kb-page-theme="dark"] .due-item button,body.kb-memory-studio[data-kb-page-theme="dark"] .saved-actions button,body.kb-memory-studio[data-kb-page-theme="dark"] .library-more-wrap button,body.kb-memory-studio[data-kb-page-theme="dark"] .voice-box button{border-color:#4c6c5e;background:#15352c;color:#eadcb1}body.kb-memory-studio[data-kb-page-theme="dark"] .saved-actions .danger{border-color:#75494c;background:#351e21;color:#ffb5b9}
body.kb-memory-studio[data-kb-page-theme="dark"] .memory-modal-card{border-color:#466658;background:#0e241e;color:#f2e4b5}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-modal-card>header{border-bottom-color:#3a5a4d;background:#102820}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-modal-card>header span{color:#efc967}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-modal-card>header h2{color:#f3e3b2}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-modal-card>header button{border-color:#4a695b;background:#15342c;color:#ebddb2}body.kb-memory-studio[data-kb-page-theme="dark"] .settings-body>label,body.kb-memory-studio[data-kb-page-theme="dark"] .theme-setting{border-color:#3c5d50;background:#112a23}body.kb-memory-studio[data-kb-page-theme="dark"] .settings-body>label>span,body.kb-memory-studio[data-kb-page-theme="dark"] .theme-setting>span{color:#f0dfaa}body.kb-memory-studio[data-kb-page-theme="dark"] .settings-body>label>small,body.kb-memory-studio[data-kb-page-theme="dark"] .theme-setting>small{color:#c6b88e}body.kb-memory-studio[data-kb-page-theme="dark"] .stepper button,body.kb-memory-studio[data-kb-page-theme="dark"] .theme-setting-grid button{border-color:#49695a;background:#15352c;color:#e8dab0}body.kb-memory-studio[data-kb-page-theme="dark"] .stepper strong,body.kb-memory-studio[data-kb-page-theme="dark"] .theme-setting-grid button.is-active{background:#efc967;color:#2b210d}body.kb-memory-studio[data-kb-page-theme="dark"] .memory-modal-card>footer{border-top-color:#3a5a4d;background:#102720}body.kb-memory-studio[data-kb-page-theme="dark"] .modal-secondary{border-color:#4a695b;background:#15342c;color:#eadcb1}body.kb-memory-studio[data-kb-page-theme="dark"] .modal-primary{border-color:#efc967;background:#efc967;color:#2b210d}

body.kb-memory-studio[data-kb-page-theme="light"]{color-scheme:light}.kb-memory-studio[data-kb-page-theme="light"] .kb-page-theme-copy>span{color:#8d671c}.kb-memory-studio[data-kb-page-theme="light"] .kb-page-theme-copy>strong{color:#24352d}.kb-memory-studio[data-kb-page-theme="light"] .kb-page-theme-switch{border-color:#cdbf9f;background:#fffaf0}.kb-memory-studio[data-kb-page-theme="light"] .kb-page-theme-switch button{background:transparent;color:#584a35}.kb-memory-studio[data-kb-page-theme="light"] .kb-page-theme-switch button.is-active{background:#123f35;color:#f8e5aa}
@media(max-width:640px){.kb-page-theme-toolbar{margin-bottom:10px}.kb-page-theme-copy{display:none}.kb-page-theme-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}.kb-page-theme-switch button{justify-content:center;min-height:42px}body.kb-memory-studio[data-kb-page-theme="dark"]{background:linear-gradient(155deg,#06110f,#0a1b18 54%,#111522)}}

/* KBIBLE V25 - memory blank-mode readability fix */
body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-controls > span{
  color:#f4e5b4!important;
  font-weight:950!important;
  letter-spacing:-.01em;
}
body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-passage{
  color:#f5e8bc!important;
  font-weight:720!important;
  line-height:2.05!important;
  text-shadow:none!important;
}
body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-word:not(.is-hidden){
  color:#f5e8bc!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:1!important;
}
body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-word.is-hidden{
  color:transparent!important;
  min-width:2.4em;
  background:rgba(239,201,103,.12)!important;
  border:1px solid rgba(239,201,103,.22);
  box-shadow:inset 0 -2px 0 #efc967!important;
  opacity:1!important;
}
body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-word.is-hidden:hover{
  background:rgba(239,201,103,.18)!important;
}
body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-controls button{
  border-color:#6d7c70!important;
  background:#f7f5ec!important;
  color:#17261f!important;
  opacity:1!important;
}
body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-controls button.is-active{
  border-color:#efc967!important;
  background:#efc967!important;
  color:#241c0b!important;
  box-shadow:0 0 0 2px rgba(239,201,103,.16)!important;
}
@media(max-width:760px){
  body.kb-memory-studio[data-kb-page-theme="dark"] .blank-tools .blank-passage{
    font-size:1.06rem!important;
    line-height:1.95!important;
  }
}
