/* 想像のタネ Phase 12.93 — shared inside-pages navigation.
   Only destination screens are affected. Top desktop and editing engines remain intact. */
.tane-route-shell,.tane-route-shell *{box-sizing:border-box}
.tane-route-shell{position:relative;z-index:55;width:100%;color:#415940;background:#f7f8f1;border-top:4px solid #9cb18c;border-bottom:1px solid #cbd7c4;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;box-shadow:0 1px 0 #fff inset}
.tane-route-inner{max-width:1084px;margin:0 auto;padding:9px 14px 8px;display:flex;flex-direction:column;gap:7px}
.tane-route-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.tane-route-brand{display:inline-flex;gap:7px;align-items:center;color:#415940!important;text-decoration:none!important;font-weight:850;font-size:15px;letter-spacing:.015em;white-space:nowrap;min-height:28px}
.tane-route-brand svg{display:block;width:21px;height:21px;flex:none}
.tane-route-where{display:flex;align-items:center;min-width:0;color:#6d8265;font-size:11px;letter-spacing:.03em;gap:7px}
.tane-route-where:before{content:'／';opacity:.55}
.tane-route-where strong{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tane-route-tabs{display:flex;align-items:stretch;gap:5px;min-width:0}
.tane-route-tabs > a,.tane-route-more>summary{appearance:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid #c9d5c2;border-radius:5px;padding:7px 12px;background:#fcfdf9;color:#536b4c!important;min-height:33px;text-decoration:none!important;font-size:12px;line-height:1.25;font-weight:750;cursor:pointer;box-shadow:inset 0 1px 0 #fff}
.tane-route-tabs > a:is(:hover,:focus-visible),.tane-route-more>summary:is(:hover,:focus-visible){background:#edf3e8;border-color:#94ac88;outline-offset:2px}
.tane-route-tabs > a[aria-current="page"],.tane-route-more.is-current>summary{background:#e3eddc;color:#355c36!important;border-color:#8eab7e;box-shadow:inset 0 -2px 0 #9cb58c;font-weight:900}
.tane-route-more{position:relative;margin-left:auto;flex:none}
.tane-route-more>summary{list-style:none;min-width:92px}
.tane-route-more>summary::-webkit-details-marker{display:none}
.tane-route-more>summary::after{content:'⌄';font-size:13px;margin-left:7px;color:#779074}
.tane-route-more[open]>summary{background:#e8f0e2;border-color:#91ac84}
.tane-route-menu{position:absolute;right:0;top:calc(100% + 5px);min-width:216px;max-width:min(300px,92vw);padding:7px;background:#fffefa;border:1px solid #afc19f;border-radius:9px;box-shadow:0 9px 24px rgba(48,65,43,.16);display:grid;gap:3px;z-index:1000}
.tane-route-menu a{color:#435c40!important;text-decoration:none!important;font-size:12px;line-height:1.4;font-weight:700;padding:11px 12px;border-radius:5px;display:flex;justify-content:space-between;gap:10px;min-height:40px;align-items:center}
.tane-route-menu a:is(:hover,:focus-visible),.tane-route-menu a[aria-current="page"]{background:#eaf2e4}
.tane-route-menu .tane-route-menu-note{font-size:10px;color:#73856e;font-weight:500}
/* The old, differently structured page-level toolbars are replaced only
   for the destinations; their original DOM nodes are kept for old bindings. */
#mySpacesView > .service-bar, #exploreView > .site-view-bar{display:none!important}
#mySpacesView,#exploreView{background:#f5f5ef;color:#40543d;min-height:100svh}
#mySpacesView .my-wrap,#exploreView .explore-wrap{width:min(1060px,calc(100% - 28px));max-width:none;margin-inline:auto;padding-top:clamp(18px,3vw,28px)}
#mySpacesView .my-head,#exploreView .explore-hero{background:#fcfdf9;border:1px solid #cbd9c4;box-shadow:inset 0 1px #fff,0 2px 10px rgba(48,68,42,.045);border-radius:10px}
#mySpacesView .my-head{padding:18px}
#exploreView .explore-hero{padding:20px}
#mySpacesView .my-head h1,#exploreView .explore-hero h1{color:#39583b}
#mySpacesView .my-head .my-actions #myBackHome{display:none}
@media(max-width:610px){
 .tane-route-inner{padding:7px 10px 8px;gap:7px}
 .tane-route-brand{font-size:13px;min-height:25px}.tane-route-brand svg{width:18px;height:18px}
 .tane-route-where{font-size:10px}
 .tane-route-tabs{gap:4px}
 .tane-route-tabs > a,.tane-route-more>summary{font-size:10px;padding:7px 7px;min-height:34px;flex:1 1 auto}
 .tane-route-more{flex:1 0 auto}
 .tane-route-more>summary{min-width:0;width:100%;padding-inline:7px}
 .tane-route-more>summary::after{margin-left:3px}
 #mySpacesView .my-wrap,#exploreView .explore-wrap{width:calc(100% - 22px);padding-top:13px}
 #mySpacesView .my-head,#exploreView .explore-hero{padding:15px;border-radius:8px}
}
@media(max-width:350px){.tane-route-tabs>a,.tane-route-more>summary{font-size:9px;padding-inline:5px}}

/* Phase 12.93 — existing module-specific headers now follow shared navigation. */
.tane-path-novel .masthead{top:0;position:relative;border-top:0;min-height:0;gap:8px;padding:8px max(12px,calc((100vw - 1056px)/2));background:#fbfcf8;border-bottom:1px solid #d8e2d0}
.tane-path-novel .masthead .home-link,.tane-path-novel .masthead .novel-return-link{display:none!important}
.tane-path-materials > .topbar,.tane-path-story > .topbar{display:none!important}
.tane-path-materials .intro,.tane-path-story .layout{margin-top:12px}
.tane-path-materials .intro{border:1px solid #d4decf;border-radius:9px;background:#fcfdf9;padding:14px}
.tane-path-novel .library-lead{border-color:#d4decf}
@media(max-width:610px){
 .tane-path-novel .masthead{padding:7px 10px;flex-wrap:wrap}
 .tane-path-novel .masthead .save-label{margin-right:auto}
 .tane-path-materials .intro{margin:10px 10px 0;padding:13px}
}


/* Phase 13.32 — narrow iPhone navigation safety.
   The independent tools previously retained a single 349px-wide row on 320px
   screens. Keep the five destinations as a balanced two-row grid instead. */
@media(max-width:360px){
  body.tane-path-novel .tane-route-tabs,
  body.tane-path-materials .tane-route-tabs,
  body.tane-path-story .tane-route-tabs{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;width:100%;max-width:100%;min-width:0;
  }
  body.tane-path-novel .tane-route-tabs>a,
  body.tane-path-materials .tane-route-tabs>a,
  body.tane-path-story .tane-route-tabs>a{
    width:100%;min-width:0;max-width:100%;min-height:37px;
    padding:8px 3px;font-size:10px;white-space:nowrap;
  }
  body.tane-path-novel .tane-route-more,
  body.tane-path-materials .tane-route-more,
  body.tane-path-story .tane-route-more{
    grid-column:span 2;width:100%;max-width:100%;min-width:0;margin:0;
  }
  body.tane-path-novel .tane-route-more>summary,
  body.tane-path-materials .tane-route-more>summary,
  body.tane-path-story .tane-route-more>summary{
    width:100%;min-width:0;max-width:100%;min-height:37px;padding:8px 4px;
  }
}
@media(max-width:430px){
  body.tane-path-novel .tane-route-menu,
  body.tane-path-materials .tane-route-menu,
  body.tane-path-story .tane-route-menu{
    left:auto;right:0;width:min(270px,calc(100vw - 24px));
    min-width:0;max-width:calc(100vw - 24px);
    max-height:min(65svh,520px);overflow-y:auto;overflow-x:hidden;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  }
  body.tane-path-novel .tane-route-menu a,
  body.tane-path-materials .tane-route-menu a,
  body.tane-path-story .tane-route-menu a{white-space:normal;overflow-wrap:anywhere;}
}
