
:root{
  --ui-bg:#f3f7fc;
  --ui-card:#ffffff;
  --ui-border:#dde6f2;
  --ui-text:#18346a;
  --ui-muted:#66769a;
  --ui-soft:#f7faff;
  --ui-accent:#4f84e8;
  --ui-shadow:0 16px 40px rgba(62,82,125,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,#edf3fb 0%,#f6f9fe 100%)!important;
  color:var(--ui-text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
body:before,
.home-bookmark,
.binder-tabs,
.subchapter-rail,
.page-corner-nav,
.closed-view,
.page-spine,
.page-border{display:none!important}
.sh-menu-button,
.sh-menu-close,
.sh-drawer-backdrop{display:none}

.sh-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:22px;
  min-height:100vh;
  padding:16px;
}
.sh-sidebar{
  background:rgba(255,255,255,.88);
  border:1px solid var(--ui-border);
  border-radius:26px;
  box-shadow:var(--ui-shadow);
  padding:16px;
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 32px);
  position:sticky;
  top:16px;
  overflow:auto;
}
.sh-brand{
  display:flex;
  gap:14px;
  align-items:center;
  padding:6px 6px 18px;
  border-bottom:1px solid var(--ui-border);
  margin-bottom:14px;
}
.sh-brand img{width:60px;height:60px;object-fit:contain}
.sh-brand-title{font-size:22px;font-weight:800;line-height:1.05;color:#20386f}
.sh-brand-sub{font-size:15px;color:#3f5f9a;margin-top:4px}

.sh-menu{display:flex;flex-direction:column;gap:8px}
.sh-group{display:flex;flex-direction:column;gap:6px}
.sh-parent,
.sh-node-toggle,
.sh-node-link{
  display:grid;
  grid-template-columns:42px 1fr 18px;
  gap:12px;
  align-items:center;
  width:100%;
  padding:11px 13px;
  border-radius:18px;
  text-decoration:none;
  color:var(--ui-text);
  border:1px solid transparent;
  background:transparent;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.sh-parent:hover,
.sh-node-toggle:hover,
.sh-node-link:hover{background:#f6f9ff;border-color:#e6edf9}
.sh-group.active>.sh-parent,
.sh-parent.is-open,
.sh-node-toggle.is-open{background:#eaf2ff;border-color:#d4e3ff}
.sh-ico{
  display:grid;
  place-items:center;
  width:42px;height:42px;
  border-radius:14px;
  background:#f5f8ff;
  color:#4a6cc0;
  font-size:20px;
  font-weight:700;
}
.sh-copy strong{display:block;font-size:15px;line-height:1.1}
.sh-copy small{display:block;font-size:12px;color:var(--ui-muted);margin-top:4px}
.sh-caret{font-size:14px;color:#98a6c6;justify-self:end}
.sh-children{display:none;gap:5px;padding:0 0 5px 54px}
.sh-group.active>.sh-children,
.sh-node.is-open>.sh-children{display:grid}
.sh-children .sh-node-link{
  grid-template-columns:1fr;
  padding:8px 10px;
  border-radius:12px;
  color:#617096;
  font-size:13px;
}
.sh-children .sh-node-link.is-active,
.sh-children .sh-node-link:hover{background:#edf4ff;color:#2d5eca;font-weight:700}
.sh-node-toggle{
  grid-template-columns:1fr 18px;
  padding:8px 10px;
  border-radius:12px;
  color:#42557f;
  font-size:13px;
}
.sh-node .sh-children{
  padding-left:14px;
  border-left:2px solid #e7edf8;
  margin-left:9px;
}
.sh-node .sh-node .sh-node-toggle,
.sh-node .sh-node .sh-node-link{font-size:12.5px}

.sh-main{
  display:flex;
  flex-direction:column;
  min-width:0;
  width:100%;
}
.sh-pagehost{
  width:100%;
  max-width:1380px;
  margin:0 auto;
  background:rgba(255,255,255,.75);
  border:1px solid var(--ui-border);
  border-radius:28px;
  box-shadow:var(--ui-shadow);
  padding:18px;
  overflow:visible!important;
}
.sh-breadcrumbs{font-size:14px;color:#72809f;margin:0 6px 14px}
.sh-breadcrumbs a{color:#5a82d8;text-decoration:none}
.sh-breadcrumbs span{margin:0 7px}

.sh-pagehost main,
.sh-pagehost .app,
.sh-pagehost .chapter-app,
.sh-pagehost .open-view,
.sh-pagehost .chapter-view{
  display:block!important;
  min-height:auto!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  width:100%!important;
  max-width:100%!important;
}
.sh-pagehost .open-book-wrap{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  perspective:none!important;
  transform:none!important;
}
.sh-pagehost .book-shell,
.sh-pagehost .chapter-shell{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  padding:0!important;
  min-height:auto!important;
}
.sh-web-article{
  display:block;
  width:100%;
  max-width:100%;
  background:#fff;
  border:1px solid var(--ui-border);
  border-radius:26px;
  box-shadow:0 12px 28px rgba(68,89,132,.05);
  overflow:visible!important;
}
.sh-web-section{
  display:block;
  width:100%;
  max-width:100%;
  padding:28px 32px;
}
.sh-web-section + .sh-web-section{
  border-top:1px solid #e9eff8;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.sh-web-section .chapter-kicker{
  font-size:13px;
  letter-spacing:.04em;
  color:#7488b7;
  font-weight:800;
  text-transform:uppercase;
}
.sh-web-section h1{
  margin:6px 0 12px;
  font-size:clamp(32px,3.8vw,56px);
  line-height:1.02;
  color:#102a65;
}
.sh-web-section .ornament{display:none!important}
.sh-web-section .intro{font-size:20px;color:#2b3f6d}
.sh-web-section p,
.sh-web-section li{font-size:16px;line-height:1.65;color:#25375e}
.sh-web-section h2,
.sh-web-section h3{color:#20428d}
.sh-web-section img{max-width:100%}
.sh-web-section table{max-width:100%}

.sh-web-section .intro-shimanaga-card{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:20px;
  align-items:center;
  padding:20px;
  border-radius:22px;
  border:1px solid var(--ui-border);
  background:#f8fbff;
  margin:16px 0 18px;
}
.sh-web-section .intro-shimanaga-card img{
  width:210px;
  max-width:100%;
  max-height:230px;
  justify-self:center;
  object-fit:contain;
  filter:drop-shadow(0 10px 10px rgba(44,38,29,.12));
}
.sh-web-section .theory-block,
.sh-web-section .definition-card,
.sh-web-section .quick-card,
.sh-web-section .practice-card,
.sh-web-section .sheet-card,
.sh-web-section .grid-card,
.sh-web-section .next-card,
.sh-web-section .example-card,
.sh-web-section .table-card{
  border-radius:18px!important;
  border:1px solid var(--ui-border)!important;
  background:#fbfcfe!important;
  box-shadow:none!important;
}
.sh-web-section .two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sh-web-section .three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}

.shima-note{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 140px;
  gap:16px;
  align-items:center;
  margin:18px 0;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(58,90,130,.16);
  background:linear-gradient(135deg,#fffaf2,#eef5ff);
  box-shadow:none;
  overflow:hidden;
}
.shima-note:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 22px 22px,rgba(255,165,176,.16) 0 5px,transparent 6px),
    radial-gradient(circle at 54px 38px,rgba(91,145,217,.12) 0 4px,transparent 5px);
  pointer-events:none;
}
.shima-note-content{position:relative;z-index:1}
.shima-note-content p{margin:.4em 0}
.shima-note .note-title{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  font-weight:900;
  color:#1c4580;
  letter-spacing:.02em;
}
.shima-note-mascot{
  position:relative;
  z-index:1;
  width:128px;
  max-width:100%;
  max-height:142px;
  justify-self:end;
  object-fit:contain;
  filter:drop-shadow(0 8px 8px rgba(44,35,28,.12));
}
.shima-note-info{background:linear-gradient(135deg,#fffaf2,#eaf4ff);border-color:rgba(72,126,199,.24)}
.shima-note-advice,
.sh-note-kind-general{background:linear-gradient(135deg,#fffaf2,#eef9ee);border-color:rgba(103,165,101,.24)}
.shima-note-curious{background:linear-gradient(135deg,#fffaf2,#f2edff);border-color:rgba(126,96,190,.24)}
.shima-note-motivation,
.sh-note-kind-motivation{background:linear-gradient(135deg,#fffaf2,#fff3cf);border-color:rgba(227,165,37,.28)}
.shima-note-warning,
.sh-note-kind-important{background:linear-gradient(135deg,#fffaf2,#ffecef);border-color:rgba(224,82,95,.28)}
.sh-note-kind-examples{background:linear-gradient(135deg,#fffaf2,#f2f7ff);border-color:rgba(121,135,217,.24)}
.sh-web-note-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}

@media (max-width:1180px){
  .sh-shell{grid-template-columns:1fr}
  .sh-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:min(340px,88vw);
    height:100dvh;
    max-height:none;
    border-radius:0 24px 24px 0;
    background:#fff;
    z-index:100;
    transform:translateX(-105%);
    visibility:hidden;
    transition:transform .2s ease;
  }
  .sh-shell.menu-open .sh-sidebar{transform:translateX(0);visibility:visible}
  .sh-menu-button,
  .sh-menu-close{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #c7d5e7;border-radius:10px;background:#fff;color:#314b78;font:inherit;font-weight:800;cursor:pointer}
  .sh-menu-button{padding:8px 11px}
  .sh-menu-close{position:sticky;top:0;z-index:2;margin:0 0 10px auto;padding:7px 10px;background:#f7faff}
  .sh-drawer-backdrop{display:block;position:fixed;inset:0;z-index:90;border:0;background:rgba(18,30,49,.45);opacity:0;pointer-events:none;transition:opacity .2s ease}
  .sh-shell.menu-open .sh-drawer-backdrop{opacity:1;pointer-events:auto}
  body.sh-menu-open{overflow:hidden}
}
@media (max-width:760px){
  .sh-shell{padding:8px}
  .sh-pagehost{padding:10px}
  .sh-web-section{padding:18px}
  .sh-web-section .intro-shimanaga-card{grid-template-columns:1fr;text-align:center}
  .shima-note{grid-template-columns:1fr 92px;padding:14px}
  .shima-note-mascot{width:88px}
  .sh-web-section .two-col,
  .sh-web-section .three-col{grid-template-columns:1fr}
}


/* v9 overflow / clipping fixes */
.sh-shell,
.sh-main,
.sh-pagehost,
.sh-pagehost main,
.sh-pagehost .app,
.sh-pagehost .chapter-app,
.sh-pagehost .open-view,
.sh-pagehost .chapter-view,
.sh-pagehost .open-book-wrap,
.sh-pagehost .book-shell,
.sh-pagehost .chapter-shell,
.sh-web-article,
.sh-web-section{
  min-width:0!important;
  box-sizing:border-box!important;
}

.sh-pagehost{
  overflow:visible!important;
}

.sh-web-article{
  overflow:visible!important;
}

.sh-web-section{
  overflow:visible!important;
}

.sh-web-section *,
.sh-pagehost *{
  box-sizing:border-box;
}

.sh-pagehost .quick-print-sheet,
.sh-pagehost .practice-sheet,
.sh-pagehost .print-section,
.sh-pagehost .practice-header,
.sh-pagehost .quiz-question-card,
.sh-pagehost .review-card,
.sh-pagehost .table-card,
.sh-pagehost .next-card,
.sh-pagehost .theory-block,
.sh-pagehost .definition-card,
.sh-pagehost .example-card,
.sh-pagehost .practice-card,
.sh-pagehost .sheet-card,
.sh-pagehost .grid-card,
.sh-pagehost .chapter-mini-index,
.sh-web-section .quick-print-sheet,
.sh-web-section .practice-sheet,
.sh-web-section .print-section,
.sh-web-section .practice-header,
.sh-web-section .quiz-question-card,
.sh-web-section .review-card,
.sh-web-section .table-card,
.sh-web-section .next-card,
.sh-web-section .theory-block,
.sh-web-section .definition-card,
.sh-web-section .example-card,
.sh-web-section .practice-card,
.sh-web-section .sheet-card,
.sh-web-section .grid-card,
.sh-web-section .chapter-mini-index{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}

.sh-pagehost table,
.sh-web-section table{
  width:100%;
  max-width:100%;
  table-layout:auto;
}

.sh-pagehost .mini-table,
.sh-pagehost .print-table,
.sh-web-section .mini-table,
.sh-web-section .print-table{
  display:table;
  width:100%!important;
  max-width:100%!important;
}

.sh-pagehost .table-scroll,
.sh-web-section .table-scroll{
  max-width:100%;
  overflow-x:auto!important;
}

.sh-pagehost img,
.sh-web-section img,
.sh-pagehost svg,
.sh-web-section svg,
.sh-pagehost canvas,
.sh-web-section canvas{
  max-width:100%;
  height:auto;
}

.sh-pagehost pre,
.sh-pagehost code,
.sh-web-section pre,
.sh-web-section code{
  max-width:100%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.sh-pagehost .quiz-options,
.sh-pagehost .practice-actions,
.sh-pagehost .chapter-grid,
.sh-pagehost .two-col,
.sh-pagehost .three-col,
.sh-web-section .quiz-options,
.sh-web-section .practice-actions,
.sh-web-section .chapter-grid,
.sh-web-section .two-col,
.sh-web-section .three-col{
  min-width:0!important;
  max-width:100%!important;
}

.sh-pagehost .page,
.sh-pagehost .page-inner{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}


/* v11 Shimanaga round-sticker asset integration */
.shima-note{
  overflow:visible!important;
}
.shima-note-mascot{
  width:142px!important;
  max-width:142px!important;
  max-height:158px!important;
  object-fit:contain!important;
  overflow:visible!important;
}
.sh-web-section .intro-shimanaga-card img{
  width:230px!important;
  max-width:230px!important;
  max-height:240px!important;
  object-fit:contain!important;
}
.sh-brand img{
  object-fit:contain!important;
}
@media (max-width:760px){
  .shima-note-mascot{
    width:96px!important;
    max-width:96px!important;
    max-height:112px!important;
  }
  .sh-web-section .intro-shimanaga-card img{
    width:190px!important;
    max-width:190px!important;
  }
}


/* v14 brand, web colors, printable tables and exercise title */
.sh-brand-title{font-size:18px!important;line-height:1.15!important;}
.sh-brand-version{display:inline-flex;margin-top:6px;padding:3px 9px;border-radius:999px;background:#eef4ff;border:1px solid #d8e6ff;color:#4e6692;font-size:12px;font-weight:800;}
.sh-web-section .chapter-kicker{display:none!important;}
.exercise-title-mascot{width:64px;height:64px;object-fit:contain;vertical-align:middle;margin-left:10px;transform:translateY(10px);}
.sh-pagehost .print-sheet,.sh-pagehost .quick-print-sheet,.sh-pagehost .practice-sheet,.sh-web-section .print-sheet,.sh-web-section .quick-print-sheet,.sh-web-section .practice-sheet{background:#ffffff!important;border-color:#dde6f2!important;box-shadow:0 12px 28px rgba(68,89,132,.05)!important;}
.sh-pagehost .print-section,.sh-web-section .print-section{background:#f8fbff!important;border-color:#dde6f2!important;}
.sh-pagehost .print-table th,.sh-web-section .print-table th,.sh-pagehost .mini-table th,.sh-web-section .mini-table th{background:#eef4ff!important;border-color:#d7e4f5!important;color:#18346a!important;}
.sh-pagehost .print-table td,.sh-web-section .print-table td,.sh-pagehost .mini-table td,.sh-web-section .mini-table td{border-color:#d7e4f5!important;background:#ffffff;}
.sh-pagehost .practice-actions a,.sh-pagehost .practice-actions button,.sh-web-section .practice-actions a,.sh-web-section .practice-actions button{border-color:#d7e4f5!important;}
.katakana-warning-note{border-color:rgba(224,82,95,.28)!important;background:linear-gradient(135deg,#fffaf2,#ffecef)!important;}


/* v21: letture hiragana e ripasso per livello */
.shima-reading-pair{display:inline;white-space:normal;}
.shima-reading-kana{font-size:.76em;color:#66758c;font-weight:600;white-space:nowrap;margin-left:.08em;}
.shima-readings-hidden .shima-reading-kana{display:none!important;}
.sh-reading-toggle{display:block;width:calc(100% - 24px);margin:0 12px 10px;padding:8px 10px;border:1px solid #dbe5f2;border-radius:10px;background:#f7fbff;color:#405678;font-weight:800;cursor:pointer;letter-spacing:.03em;}
.sh-reading-toggle:hover{background:#eef6ff;}
.level-practice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;padding:16px 18px!important;}
.level-practice-controls label{display:flex;align-items:center;gap:10px;}
.level-practice-controls select{padding:8px 12px;border-radius:9px;border:1px solid #cad9ea;background:#fff;font:inherit;}
.level-practice-controls #levelSummary{flex:1 1 440px;margin:0;}
.level-practice-controls .small-note{flex-basis:100%;margin:0;color:#66758c;font-size:.92rem;}
.quiz-meta{display:inline-block;margin:0 0 8px;padding:3px 8px;border-radius:999px;background:#eef4ff;color:#405b8a;font-size:.76rem;font-weight:800;}

/* v1.1 study layer */
.sh-main{min-width:0}.sh-topbar{position:sticky;top:0;z-index:35;display:flex;gap:10px;align-items:center;padding:10px 18px;background:rgba(248,250,253,.96);border-bottom:1px solid #dfe6ef;backdrop-filter:blur(8px)}
.sh-search-launch{flex:1;display:flex;align-items:center;gap:10px;min-width:220px;padding:9px 12px;border:1px solid #ccd8e7;border-radius:12px;background:#fff;color:#5d6a7b;text-align:left;cursor:pointer}.sh-search-launch span{flex:1}.sh-search-launch kbd{font-size:.72rem;background:#eef2f7;border:1px solid #d8e0ea;border-radius:6px;padding:2px 6px}.sh-level-control{display:flex;align-items:center;gap:6px;font-size:.84rem;color:#607083}.sh-level-select,.sh-kana-mode{padding:6px 8px;border-radius:8px;border:1px solid #ccd7e5;background:#fff}.sh-progress-link{font-size:.86rem;font-weight:700;color:#465a84}.sh-kana-mode-wrap{display:flex;align-items:center;gap:8px;margin:8px 12px 10px;padding:8px 10px;border-radius:10px;background:#f6f8fb;color:#58687b;font-size:.8rem}.sh-kana-mode-wrap select{min-width:0;flex:1}.shima-kanji-hidden .shima-reading-kanji{display:none}.shima-kanji-hidden .shima-reading-kana{font-size:inherit;color:inherit}.shima-kanji-hidden .shima-reading-kana::first-letter{font-size:0}.shima-kanji-hidden .shima-reading-kana{margin-left:0}.shima-kanji-hidden .shima-reading-kana{font-variant:normal}.shima-kanji-hidden .shima-reading-kana{--x:0}
.shima-kanji-hidden .shima-reading-kana{display:inline}.shima-kanji-hidden .shima-reading-kana::before,.shima-kanji-hidden .shima-reading-kana::after{content:''}
.sh-search-modal,.shima-modal{position:fixed;inset:0;background:rgba(20,30,45,.54);z-index:1000;display:none;align-items:flex-start;justify-content:center;padding:8vh 20px 20px}.shima-modal.open{display:flex}.shima-modal-card{position:relative;width:min(900px,96vw);max-height:84vh;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(18,26,40,.35);overflow:hidden}.shima-modal-close{position:absolute;right:12px;top:10px;border:0;background:#eef2f7;border-radius:50%;width:34px;height:34px;font-size:1.35rem;cursor:pointer}.sh-search-card{padding:24px}.sh-search-card h2{margin:0 0 12px}.sh-search-input{width:100%;box-sizing:border-box;padding:13px 15px;border:1px solid #cbd7e5;border-radius:12px;font-size:1rem}.sh-search-results{display:grid;gap:7px;margin-top:12px;max-height:55vh;overflow:auto}.sh-search-results a{display:flex;flex-direction:column;padding:10px 12px;border:1px solid #e1e7ef;border-radius:10px;text-decoration:none}.sh-search-results a:hover{background:#f3f7fc}.sh-search-results span{font-size:.8rem;color:#718096;margin-top:2px}.theory-modal-card{height:84vh;padding-top:64px}.theory-modal-card iframe{border:0;width:100%;height:calc(100% - 64px)}.theory-modal-title{position:absolute;left:20px;right:58px;top:12px;display:flex;flex-direction:column}.theory-modal-title span{font-size:.8rem;color:#67758a;margin-top:3px}.shima-quiz-tools,.feedback-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}.shima-quiz-tools button,.shima-quiz-tools a,.feedback-actions button,.feedback-actions a,.study-primary,.study-secondary,.study-link-button{border:1px solid #cbd7e5;background:#fff;border-radius:9px;padding:7px 10px;font:inherit;font-size:.82rem;color:#40567a;text-decoration:none;cursor:pointer}.study-primary{background:#40567a;color:#fff;border-color:#40567a}.study-toolbar{display:flex;gap:10px;margin:10px 0 18px}.study-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 18px}.study-summary-grid>div{padding:16px;border:1px solid #dde5ef;border-radius:14px;background:#fff;display:flex;flex-direction:column}.study-summary-grid b{font-size:1.7rem;color:#42577e}.study-summary-grid span{font-size:.78rem;color:#718096}.progress-row{display:grid;grid-template-columns:145px 1fr 45px 60px;gap:8px;align-items:center;margin:10px 0}.progress-track{height:9px;border-radius:20px;background:#e7edf4;overflow:hidden}.progress-track i{display:block;height:100%;background:#7189b5;border-radius:20px}.progress-row small{color:#7b8798}.error-list{display:grid;gap:12px}.error-card{border:1px solid #dde5ef;border-radius:14px;padding:14px;background:#fff}.error-card h3{margin:4px 0}.error-explanation{color:#5e6b7b}.error-actions{display:flex;gap:8px}.error-actions a,.error-actions button{padding:6px 9px;border:1px solid #ccd7e5;border-radius:8px;background:#fff;text-decoration:none;color:#40567a}.study-mode-tabs{display:flex;gap:8px;flex-wrap:wrap}.study-mode-tabs button{padding:8px 12px;border:1px solid #cbd6e5;border-radius:20px;background:#fff}.study-mode-tabs button.active{background:#40567a;color:#fff}.conjugator-box{display:grid;gap:10px;padding:14px;border:1px solid #dce4ee;border-radius:14px;background:#fff}.conjugator-box label{display:grid;gap:5px}.conjugator-box input,.conjugator-box select{padding:9px;border:1px solid #cbd7e5;border-radius:9px}.conj-why{padding:10px;background:#f5f8fc;border-radius:9px}.confusable-card{border-left:4px solid #8d7cac;background:#f8f6fb;padding:12px 14px;margin:10px 0;border-radius:0 12px 12px 0}.confusable-card h3{margin:0 0 5px}.example-bank-card{padding:12px;border:1px solid #dfe6ef;border-radius:13px;margin:10px 0;background:#fff}.example-bank-card .jp-big{font-size:1.1rem;font-weight:700}.example-bank-card .jp-reading,.example-bank-card .romaji{color:#6a7789;font-size:.86rem}.example-bank-card button{border:1px solid #ccd7e5;border-radius:8px;background:#fff;padding:5px 8px}.builder-card{position:relative;border:1px solid #dbe4ee;border-radius:15px;padding:16px;margin:14px 0;background:#fff}.builder-answer{min-height:52px;border:2px dashed #cbd7e5;border-radius:12px;padding:8px;display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.builder-tokens{display:flex;gap:7px;flex-wrap:wrap}.builder-token{padding:8px 10px;border:1px solid #bfcde0;border-radius:9px;background:#f7f9fc;cursor:pointer}.builder-actions{display:flex;gap:8px;margin:10px 0}.builder-actions button{padding:6px 9px;border:1px solid #cbd7e5;border-radius:8px;background:#fff}
@media(max-width:900px){.sh-topbar{flex-wrap:wrap}.sh-search-launch{order:1;flex-basis:100%}.sh-level-control{order:2}.sh-progress-link{order:3}.progress-row{grid-template-columns:110px 1fr 40px}.progress-row small{display:none}.study-summary-grid{grid-template-columns:1fr 1fr}}
.sh-today-link,.sh-recap-link,.sh-progress-link{font-size:.86rem;font-weight:700;color:#465a84;text-decoration:none;white-space:nowrap}
.sh-today-link{padding:7px 10px;border-radius:9px;background:#40567a;color:#fff}
.sh-menu-button:focus-visible,.sh-menu-close:focus-visible,.sh-drawer-backdrop:focus-visible{outline:3px solid #4f84e8;outline-offset:2px}
@media(max-width:900px){.sh-menu-button{order:0}.sh-today-link,.sh-recap-link,.sh-progress-link{order:3}}
@media(max-width:480px){.sh-topbar{gap:6px;padding:8px 10px}.sh-level-control{font-size:0}.sh-level-select{font-size:.78rem;padding:5px 6px}.sh-today-link,.sh-recap-link,.sh-progress-link{font-size:.78rem}.sh-today-link{padding:6px 7px}}

/* v1.6.0 · tre percorsi e profilo condiviso */
.sh-brand{text-decoration:none;color:inherit}.sh-section-links{display:flex;align-items:center;gap:4px}.sh-section-links a,.sh-profile-button{display:inline-flex;align-items:center;min-height:38px;padding:8px 10px;border:1px solid #d7e1ee;border-radius:10px;background:#fff;color:#40577f;font:inherit;font-size:.84rem;font-weight:800;text-decoration:none;white-space:nowrap}.sh-section-links a:hover,.sh-profile-button:hover{background:#eef4ff;border-color:#b9ccea}.sh-profile-button{gap:7px;cursor:pointer}.sh-profile-button span{color:#56a06c}.sh-profile-card{position:relative;width:min(460px,100%);padding:24px;text-align:center}.sh-profile-card>img{width:118px;height:105px;object-fit:contain}.sh-profile-card h2{margin:4px 0 8px;color:#234783}.sh-profile-card p{color:#61718f;line-height:1.5}.sh-profile-list{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:14px 0}.sh-profile-list button{padding:7px 10px;border:1px solid #d5e0ef;border-radius:9px;background:#f7faff;color:#365584;cursor:pointer}.sh-profile-list span{font-size:.85rem;color:#78859b}.sh-profile-card form{display:grid;gap:9px;margin-top:12px}.sh-profile-card label{display:grid;gap:5px;text-align:left;font-weight:800;color:#40577d}.sh-profile-card input{min-height:42px;padding:9px 11px;border:1px solid #bdcce0;border-radius:10px;font:inherit}.sh-profile-card form button,.sh-profile-guest{min-height:42px;padding:9px 12px;border:0;border-radius:10px;background:#3e67ad;color:#fff;font:inherit;font-weight:800;cursor:pointer}.sh-profile-guest{margin-top:8px;background:#eef2f8;color:#52637f}.sh-context-links a:focus-visible,.sh-section-links a:focus-visible,.sh-profile-button:focus-visible,.sh-profile-card button:focus-visible,.sh-profile-card input:focus-visible{outline:3px solid #4f84e8;outline-offset:2px}
@media(max-width:1000px){.sh-topbar{flex-wrap:wrap}.sh-search-launch{order:1;flex-basis:100%}.sh-section-links{order:3}.sh-profile-button{order:3;margin-left:auto}}
@media(max-width:520px){.sh-section-links{display:grid;grid-template-columns:repeat(3,1fr);width:100%}.sh-section-links a{justify-content:center;padding:7px 5px;font-size:.78rem}.sh-profile-button{margin-left:0}.sh-profile-button span{display:none}}

.shima-embed{background:#fff!important}.shima-embed .home-bookmark,.shima-embed .binder-tabs,.shima-embed .subchapter-rail{display:none!important}.shima-embed .chapter-view,.shima-embed .open-view,.shima-embed .open-book-wrap,.shima-embed .book-shell{min-height:0!important;height:auto!important;max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;background:#fff!important}.shima-embed .book-shell{display:block!important}.shima-embed .page-spine{display:none!important}.shima-embed .page{width:100%!important;max-width:none!important;min-height:0!important;box-shadow:none!important}.shima-embed .page-inner{padding:18px 24px!important}.shima-embed .page-border{display:none!important}

/* v1.1.1 · kana keyboard + verb-aware global search */
.sh-search-input-row{display:flex;gap:8px;align-items:stretch}.sh-search-input-row .sh-search-input{flex:1}.sh-keyboard-toggle{white-space:nowrap;border:1px solid #cbd7e5;border-radius:12px;background:#f7f9fc;color:#40567a;padding:0 13px;font:inherit;font-size:.86rem;cursor:pointer}.sh-keyboard-toggle:hover{background:#edf3fa}.sh-kana-keyboard{display:none;margin-top:10px;border:1px solid #dde5ef;border-radius:13px;padding:10px;background:#f8fafc}.sh-kana-keyboard.open{display:block}.sh-kana-controls{display:grid;grid-template-columns:auto auto 1fr auto auto;gap:6px;align-items:center;margin-bottom:8px}.sh-kana-controls button{border:1px solid #cbd7e5;border-radius:8px;background:#fff;padding:6px 9px;cursor:pointer;color:#53647b}.sh-kana-controls button.active{background:#40567a;color:#fff;border-color:#40567a}.sh-kana-grid{display:flex;flex-direction:column;gap:5px}.sh-kana-row{display:flex;flex-wrap:wrap;gap:4px}.sh-kana-key{border:1px solid #d7e0eb;border-radius:7px;background:#fff;padding:6px 2px;font-size:1rem;cursor:pointer;line-height:1.15;min-width:34px;flex:0 0 34px}.sh-kana-key:hover{background:#eaf1fa;border-color:#bbcbe0}.sh-kana-help{margin:7px 2px 0;color:#748197;font-size:.75rem}.sh-search-section-title{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#78869a;margin:13px 2px 6px}.sh-verb-card{border:1px solid #cbd9ea;border-radius:13px;background:#f8fbff;padding:11px 12px}.sh-verb-card+.sh-verb-card{margin-top:7px}.sh-verb-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.sh-verb-card-head>div{display:flex;flex-direction:column}.sh-verb-card-head strong{font-size:1.05rem;color:#314a6e}.sh-verb-card-head span{font-size:.76rem;color:#718096;margin-top:2px}.sh-verb-card-head a{font-size:.75rem;text-decoration:none;color:#405f91;white-space:nowrap}.sh-verb-forms{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:9px}.sh-verb-forms>div{display:flex;flex-direction:column;border:1px solid #e1e8f1;border-radius:8px;background:#fff;padding:6px 7px;min-width:0}.sh-verb-forms b{font-size:.65rem;color:#7c8898;font-weight:700}.sh-verb-forms span{font-size:.88rem;color:#2f3e52;overflow-wrap:anywhere}.sh-verb-rule{font-size:.73rem;color:#64748a;margin:7px 2px 0}.sh-site-result{display:flex;flex-direction:column;padding:10px 12px;border:1px solid #e1e7ef;border-radius:10px;text-decoration:none}.sh-site-result:hover{background:#f3f7fc}.sh-site-result span{font-size:.8rem;color:#718096;margin-top:2px}
@media(max-width:700px){.sh-search-input-row{flex-direction:column}.sh-keyboard-toggle{padding:8px}.sh-kana-key{min-width:32px;flex-basis:32px}.sh-verb-forms{grid-template-columns:repeat(2,minmax(0,1fr))}.sh-verb-card-head{flex-direction:column}.sh-search-card{padding:18px 14px}.sh-search-results{max-height:42vh}}

/* v1.1.2 · kana keyboard reordered by vowel sound and voiced pairs */


/* v34: Italian -> Japanese lexical suggestions in global search */
.sh-lex-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.sh-lex-card{border:1px solid #dce5ef;border-radius:11px;background:#fff;padding:9px 11px;min-width:0}
.sh-lex-jp{font-size:1.05rem;font-weight:800;color:#314a6e;overflow-wrap:anywhere}
.sh-lex-it{margin-top:2px;font-size:.84rem;color:#43536a}
.sh-lex-meta{margin-top:4px;font-size:.68rem;color:#8490a1}
@media(max-width:700px){.sh-lex-grid{grid-template-columns:1fr}}

/* v1.4.9 · ricerca globale: ranking leggibile, dialog accessibile, kana mobile */
body.sh-search-open{overflow:hidden}
.sh-search-card{padding:0;overflow:auto;overscroll-behavior:contain;max-height:84dvh}
.sh-search-head{position:sticky;top:0;z-index:8;padding:24px 24px 10px;background:#fff;border-radius:18px 18px 0 0}
.sh-search-head h2{margin:0 42px 12px 0}
.sh-search-head .shima-modal-close{z-index:2}
.sh-search-results{display:grid;gap:7px;margin:0;padding:2px 24px 24px;max-height:none;overflow:visible}
.sh-kana-keyboard{margin:0 24px 12px;max-height:min(46dvh,380px);overflow:hidden}
.sh-kana-keyboard.open{display:flex;flex-direction:column}
.sh-kana-controls{flex:0 0 auto}
.sh-kana-controls .sh-kana-close{grid-column:1/-1;min-height:38px;font-weight:800}
.sh-kana-grid{min-height:0;overflow:auto;padding-right:3px;overscroll-behavior:contain}
.sh-kana-row{padding-bottom:2px;border-bottom:1px solid #edf1f6}
.sh-kana-row-small{margin-top:3px;padding-top:5px;border-top:2px solid #dce4ef}
.sh-kana-controls button,.sh-kana-key{min-height:38px}
.sh-result-badge{align-self:flex-start;display:inline-flex!important;width:max-content;margin:0 0 5px!important;padding:3px 7px;border-radius:999px;background:#eaf0f8;color:#526785!important;font-size:.64rem!important;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.sh-site-result,.sh-search-suggestion{position:relative}
.sh-site-result:focus-visible,.sh-search-suggestion:focus-visible,.sh-verb-card a:focus-visible,.sh-adj-card a:focus-visible{outline:3px solid #4f84e8;outline-offset:2px}
.sh-form-match{margin:8px 0 0;padding:6px 8px;border-radius:8px;background:#eaf3ff;color:#31557f;font-size:.78rem}
.sh-verb-forms>div.is-match,.sh-adj-forms>div.is-match{border-color:#4f84e8;background:#eaf3ff;box-shadow:0 0 0 1px #4f84e8 inset}
.sh-adj-card{border:1px solid #d8d5ec;border-radius:13px;background:#fbfaff;padding:11px 12px}
.sh-adj-card+.sh-adj-card{margin-top:7px}
.sh-adj-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.sh-adj-card-head>div{display:flex;flex-direction:column}
.sh-adj-card-head strong{font-size:1.05rem;color:#514978}
.sh-adj-card-head span{font-size:.76rem;color:#718096;margin-top:2px}
.sh-adj-card-head a{font-size:.75rem;text-decoration:none;color:#5c5291;white-space:nowrap}
.sh-adj-forms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:9px}
.sh-adj-forms>div{display:flex;flex-direction:column;border:1px solid #e3e1ef;border-radius:8px;background:#fff;padding:6px 7px;min-width:0}
.sh-adj-forms b{font-size:.65rem;color:#7c8898}
.sh-adj-forms span{font-size:.88rem;color:#2f3e52;overflow-wrap:anywhere}
.sh-suggestion-list{display:grid;gap:7px}
.sh-search-suggestion{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:10px 12px;border:1px dashed #b9c9de;border-radius:10px;background:#f8fbff;color:#314a6e;text-align:left;cursor:pointer}
.sh-search-suggestion span{font-size:.76rem;color:#718096;margin-top:2px}

@media(max-width:700px){
  .sh-search-modal{padding:16px 12px}
  .sh-search-card{width:100%;max-height:calc(100dvh - 32px)}
  .sh-search-head{padding:18px 14px 10px}
  .sh-search-results{padding:2px 14px 18px}
  .sh-kana-keyboard{margin:0 14px 12px;max-height:min(38dvh,320px)}
  .sh-kana-key{min-width:38px;flex-basis:38px;min-height:40px}
  .sh-kana-row{gap:5px}
  .sh-kana-controls{grid-template-columns:auto auto 1fr auto auto}
  .sh-kana-controls button{min-height:40px}
  .sh-adj-forms{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sh-adj-card-head{flex-direction:column}
}

/* Risorse contestuali e ascolto: risolti dal catalogo per topic. */
.shima-context-resources{margin:16px 18px 4px;padding:14px 16px;border:1px solid #dce5ef;border-radius:14px;background:#f8fbff}
.shima-context-resources h2{margin:0 0 10px;font-size:1rem;color:#3e5678}
.shima-context-resources>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.shima-context-resource{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #dce5ef;border-radius:10px;background:#fff;color:#40567a;text-decoration:none}
.shima-context-resource>span:last-child{display:flex;min-width:0;flex-direction:column}
.shima-context-resource b{font-size:.78rem}
.shima-context-resource small{margin-top:2px;color:#6c7889;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shima-listen-button{align-self:flex-start;border:1px solid #cbd7e5;border-radius:8px;background:#fff;padding:5px 8px;color:#40567a;font:inherit;font-size:.72rem;font-weight:700;cursor:pointer;white-space:nowrap}
.shima-listen-button:disabled{cursor:not-allowed;opacity:.5}
.jp-example .shima-listen-button{display:inline-flex;margin-top:7px}
.shima-review-cta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 14px}
.shima-review-cta>a{border:1px solid #cbd7e5;background:#fff;border-radius:9px;padding:7px 10px;font-size:.82rem;color:#40567a;text-decoration:none}
.shima-review-cta .shima-context-resource small{display:none}
@media(max-width:700px){.shima-context-resources{margin:12px 8px 2px}.shima-context-resources>div{grid-template-columns:1fr}.sh-verb-card-head{flex-wrap:wrap}}
