/* /var/www/drive/assets/viewer.css — 中身を見るところ(閲覧の覆い・PDF・docx・xlsx の表・グラフ)。
   画面の土台(一覧・左の並び・小窓)は app.css にある。 */

/* --- 中身を見る覆い ------------------------------------------------------ */
.viewer {
  position: fixed; inset: 0; z-index: 50; background: rgba(20,23,26,.62);
  display: flex; flex-direction: column; padding: 24px;
  width: 100vw; max-width: 100vw; overflow: hidden;
}
/* display を指定した要素は hidden 属性が効かなくなる(こちらが後で勝つため)。
   これが無いと、開いた瞬間から覆いが出たまま閉じられなくなる。 */
.viewer[hidden], .vtabs[hidden] { display: none !important; }
.vbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-radius: 10px 10px 0 0; padding: 10px 14px;
  border-bottom: 1px solid #e6e9ed;
}
.vtitle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vops { display: flex; gap: 8px; flex: none; }
.vbtn {
  font: inherit; padding: 5px 12px; border: 1px solid #d0d5db; border-radius: 6px;
  background: #fff; color: #1f2328; cursor: pointer; text-decoration: none;
}
.vbtn:hover { background: #f0f2f5; text-decoration: none; }
.vtabs {
  display: flex; gap: 4px; background: #fff; padding: 6px 10px; overflow-x: auto;
  border-bottom: 1px solid #eceff2;
}
.vtab {
  font: inherit; font-size: 12px; padding: 4px 12px; border: 1px solid #dde1e6;
  border-radius: 6px; background: #fff; cursor: pointer; white-space: nowrap;
}
.vtab.on { background: #1a56b8; border-color: #1a56b8; color: #fff; }
.vbody {
  flex: 1; min-height: 0; background: #fff; border-radius: 0 0 10px 10px;
  overflow: auto; position: relative;
}
.vframe { width: 100%; max-width: 100%; height: 100%; border: 0; display: block; }
.vbody { max-width: 100%; }
.vcenter {
  height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #202428;
}
.vcenter img, .vcenter video { max-width: 100%; max-height: 100%; object-fit: contain; }
/* PDF を自分で描くところ。幅は枠に合わせるので、スマホでも横に溢れない。 */
.vpdf { padding: 12px; background: #40454a; min-height: 100%; }
.vpage {
  margin: 0 auto 12px; background: #fff; max-width: 100%;
  box-shadow: 0 1px 6px rgba(0,0,0,.35); display: flex; justify-content: center;
}
.vpage canvas { display: block; max-width: 100%; height: auto; }
/* 絵と文字の層を、同じ大きさで重ねるための枠 */
.vpsheet { position: relative; max-width: 100%; }

/* 絵の上に重ねる、見えない文字の層。
   これが無いと PDF もスライドも「絵」でしかなく、文字を選ぶことも
   ブラウザの検索(Ctrl+F)で探すこともできない。
   字そのものは透明にして、選んだところだけ色が付くようにする。 */
.vpsheet .textLayer {
  position: absolute; left: 0; top: 0; overflow: hidden; line-height: 1;
  text-align: initial; opacity: 1; z-index: 2; pointer-events: auto;
  transform-origin: 0 0;
}
/* 4 系は、印の付いた文字を入れ子の span で出すことがある。
   直下(>)だけを見ていると、その中の文字に位置が当たらない。 */
.vpsheet .textLayer span, .vpsheet .textLayer br {
  position: absolute; white-space: pre; cursor: text;
  color: transparent; transform-origin: 0% 0%;
}
/* 入れ子の内側は、親が置いた場所に流す(二重に位置を付けない) */
.vpsheet .textLayer span span { position: static; }
.vpsheet .textLayer ::selection { background: rgba(26,86,184,.35); }
.vpsheet .textLayer ::-moz-selection { background: rgba(26,86,184,.35); }
.vpsheet .textLayer .endOfContent { display: none; }

/* **PDF.js が body の末尾に置く「隆れた canvas」を隠す。**
   PDF.js は字の幅を測るためにこういうことをする:
     const c = document.createElement('canvas');
     c.className = 'hiddenCanvasElement';
     document.body.append(c);
     c.getContext('2d', { alpha: false, willReadFrequently: true });
   大きさを決めていないので canvas の既定(300x150)のままで、
   **alpha: false は「透けない」という意味なので真っ黒に塗られる**。
   本家の pdf_viewer.css にはこれを隠す規則が入っているが、
   drive は見た目を自分で書いていてその CSS を読んでいない。
   そのため **画面の左下に黒い四角が出る**(2026-10-31 に指摘)。
   大きさを 0 にするだけでは、PDF.js が測るたびに戻すので足りない。
   display: none までやる。 */
.hiddenCanvasElement {
  position: absolute; top: 0; left: 0; width: 0; height: 0; display: none !important;
}

/* 発表モード。全画面で 1 枚ずつ。 */
.vpresent {
  position: fixed; inset: 0; z-index: 100; background: #000; outline: none;
  display: flex; align-items: center; justify-content: center; cursor: none;
}
.vpresent:hover { cursor: default; }
.vpresent .pcv { display: block; max-width: 100vw; max-height: 100vh; }
.vpresent .pblank { position: absolute; inset: 0; background: #000; }
.vpresent .pblank[hidden] { display: none !important; }
.vpresent .pnum {
  position: absolute; right: 14px; bottom: 10px; color: #8b9199;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.vpresent .phelp {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  color: #8b9199; font-size: 12px; white-space: nowrap;
}
.vpresent .phelp[hidden] { display: none !important; }
/* 発表をやめる × 。キーの無い画面(iPad など)では、これが唯一の出口になる。
   真っ黒(B)にしていても押せるよう、いちばん上に置く。 */
.vpresent .pclose {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #e7e9ec;
  font: 22px/1 system-ui, sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.vpresent .pclose:hover, .vpresent .pclose:focus-visible {
  background: rgba(255, 255, 255, .3); color: #fff; outline: none;
}

.vmsg { padding: 32px; text-align: center; color: #6b727a; }

/* 読み込み中の板。何をしているかと、どこまで届いたかを出す。
   紙と同じ暗い地にしてあるので、消えたときに画面が明滅しない。 */
.vload {
  position: absolute; inset: 0; z-index: 3; background: #40454a; color: #e8ebee;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center;
}
.vload-what { font-size: 14px; }
.vload-sub { font-size: 12px; color: #aeb5bc; min-height: 1em; }
.vload-bar {
  width: min(320px, 70%); height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, .18); overflow: hidden;
}
.vload-bar i { display: block; height: 100%; width: 0; background: #7fb0ff; transition: width .15s linear; }
/* 上の帯に出す小さな知らせ(文字の読み取りの進み具合など) */
.vhint { align-self: center; font-size: 12px; color: #6b727a; white-space: nowrap; }

/* 紙 1 枚ごとの「読み込み中」。写真を貼っただけの資料は 1 枚 300KB あるので、
   細い回線では 1 枚ずつ待つことになる。白いままにせず、そうと伝える。 */
.vpwait {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; padding: 24px; font-size: 13px; color: #cfd5db;
}
/* **紙の頭に出す。** A4 は縦に長いので、真ん中に置くと画面の下に隠れて
   「何も出ていない」ように見える(2026-10-16 に実物を撮って気づいた)。 */
.vpwait.over {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; min-height: 0;
  padding: 12px; color: #fff; pointer-events: none;
  background: linear-gradient(rgba(32, 36, 40, .72), rgba(32, 36, 40, 0));
}
.vtext {
  margin: 0; padding: 18px; font: 12.5px/1.7 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  white-space: pre-wrap; word-break: break-word;
}
/* docx を読むところ。
   幅と余白は文書側(w:pgSz / w:pgMar)から来た実寸を .dpage に入れてある。
   決め打ちの幅で流すと、1 行の長さが原本と変わって別の文書に見えるため。 */
.vdoc { padding: 24px 12px 64px; background: #eceff2; }
.vdoc .dpage {
  background: #fff; margin: 0 auto; box-shadow: 0 1px 8px rgba(0,0,0,.18);
  max-width: 100%; box-sizing: border-box; line-height: 1.8;
  /* 切れ目の無い長い文字(コメントに貼られた URL など)で紙が広がらないようにする。
     広がると紙より外へ横スクロールでき、指で触るとズレたまま戻れなくなる。
     break-word なので、ふつうに収まる行の折り返しは変わらない。 */
  overflow-wrap: break-word;
}
.vdoc img { max-width: 100%; height: auto; }
/* 段組み(論文の 2 段)。節(w:sectPr)ごとに段数が変わるので、
   節を包んだ入れ物に column-count が入る(表題の節は 1 段のまま包まれない)。
   図・表・テキストボックスだけは段の途中で割らない。本文は割れてよい。 */
/* 段より広い表は段からはみ出して隣の段に重なる。段の幅に収める */
.vdoc .dsect table.dtbl { max-width: 100%; }
.vdoc .dsect .dwide { max-width: 100%; overflow-x: auto; }
/* 紙の切れ目(二段組みを 1 枚ずつに区切ったところ) */
.vdoc .dsect.dnext { margin-top: 15pt; border-top: 1px dashed #e0e5ea; }
.vdoc .dsect img, .vdoc .dsect table, .vdoc .dsect .dbox,
.vdoc .dsect .dwide { break-inside: avoid; }
.vdoc table.dtbl { border-collapse: collapse; margin: 1em 0; max-width: 100%; }
.vdoc table.dtbl td { padding: 4px 8px; vertical-align: top; }
.vdoc table.dtbl td > div { margin: 0; }
/* 升目の表(w:insideH/insideV あり、Word の「表(格子)」など) */
.vdoc table.dtbl-grid { width: 100%; }
.vdoc table.dtbl-grid td { border: 1px solid #b6bbc2; }
/* 線が 1 本も指定されていない表は、体裁を作るための入れ物。
   論文テンプレートの 2 段組みがこれなので、枠を描くと原本と違って見える。 */
.vdoc table.dtbl-plain { width: 100%; }
.vdoc table.dtbl-plain > tbody > tr > td { border: 0; }
/* テキストボックス。論文では図と表がここに入っている(キャプションごと) */
.vdoc .dbox { margin: 1em auto; max-width: 100%; overflow-x: auto; }
.vdoc .dbox table.dtbl { margin: .3em auto; }
.vdoc h1, .vdoc h2, .vdoc h3, .vdoc h4, .vdoc h5, .vdoc h6 { line-height: 1.4; margin: 1.4em 0 .5em; }
.vdoc p { margin: .5em 0; }
.vdoc p.dempty { margin: .5em 0; min-height: 1em; }   /* 空行も元のとおり空ける */
.vdoc ul, .vdoc ol { margin: .5em 0; padding-left: 1.8em; }
.vdoc li { margin: .2em 0; }
.vdoc .dtab { display: inline-block; width: 2.5em; }  /* タブ */
.vdoc a { color: #1a56b8; }
/* docx を直すところ。本文は下でめくり、上の帯は動かない */
.dscroll { flex: 1; min-height: 0; overflow: auto; }
.dops { display: flex; gap: 6px; flex: none; }
.dops .vbtn.on { background: #eaf2ff; border-color: #1a56b8; color: #1a56b8; }
.dops .vbtn.primary { background: #1a56b8; border-color: #1a56b8; color: #fff; }
.dops .vbtn.primary:disabled { opacity: .45; }
.dops [hidden] { display: none !important; }
/* 直せる段落は、押せることが分かるように薄く囲う */
.vdoc.dediting [data-edit] { cursor: text; border-radius: 3px; outline: 1px dashed transparent; outline-offset: 2px; }
.vdoc.dediting [data-edit]:hover { outline-color: #9dbbe8; background-color: rgba(26,86,184,.04); }
.vdoc.dediting p.dempty[data-edit] { min-height: 1.4em; }
/* 直している最中の段落。文字の大きさや色は段落のものをそのまま使う */
.vdoc .dopen { outline: 2px solid #1a56b8 !important; background: #fff !important; }
.vdoc textarea.dpara-ta {
  display: block; width: 100%; resize: none; overflow: hidden; border: 0; outline: none; padding: 0;
  margin: 0; background: transparent; font: inherit; color: inherit; line-height: inherit;
  letter-spacing: inherit; text-align: inherit;
}
/* 直したがまだ保存していない段落 */
.vdoc .dpending { background: #fff8d6 !important; box-shadow: inset 3px 0 0 #e8a317; }
.vdoc .dclash { background: #fdeaea !important; box-shadow: inset 3px 0 0 #c0392b; }
.vdoc .dgone { color: #a11; font-size: .9em; }
/* 段落そのものを増やす・減らす道具 */
.vdoc .dptools { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.vdoc .dptools button {
  font: inherit; font-size: 11.5px; padding: 2px 8px; border: 1px solid #d0d5db;
  border-radius: 5px; background: #fff; color: #5a6169; cursor: pointer;
}
.vdoc .dptools button:hover { background: #f0f2f5; }
.vdoc .dhint { font-size: 11px; color: #9aa1a9; }
/* 消す指定の段落。中身はそのまま見せて、消えることが分かる形にする */
.vdoc .ddelp { background: #fdeaea !important; box-shadow: inset 3px 0 0 #c0392b; }
.vdoc .ddelp > *:not(.dptools) { text-decoration: line-through; opacity: .6; }
/* これから足す段落(緑はこの意味だけ: まだ保存していない、新しい段落の場所) */
.vdoc .dnewp { background: #eef7ee !important; box-shadow: inset 3px 0 0 #3a8f3a; min-height: 1.4em; }

/* 段落をつまんで動かす取っ手。編集モードで、指している段落にだけ出る */
.vdoc.dediting [data-edit] { position: relative; }
.dgrip {
  position: absolute; left: -20px; top: .1em; width: 16px; text-align: center;
  cursor: grab; color: #c2c8cf; font-size: 13px; line-height: 1.3; user-select: none;
}
.dgrip:hover { color: #1a56b8; }
.dgrip:active { cursor: grabbing; }
.vdoc .ddragging { opacity: .45; }
/* 落とす場所の線 */
.vdoc .ddrop-before { box-shadow: 0 -3px 0 -1px #1a56b8; }
.vdoc .ddrop-after  { box-shadow: 0 3px 0 -1px #1a56b8; }
/* 動かす指定をした段落(保存するまでは、ここに置くという目印) */
.vdoc .dmovedp { background: #eaf2ff !important; box-shadow: inset 3px 0 0 #1a56b8; }

/* 脚注。本文には番号だけ置いて、中身は最後にまとめる */
.vdoc sup.dfnref a { color: #1a56b8; text-decoration: none; font-size: .75em; }
.vdoc .dnotes { margin: 2em 0 0; padding-top: .8em; border-top: 1px solid #dfe3e8; font-size: .88em; }
.vdoc .dnotes-t { color: #8b9199; font-size: .85em; margin-bottom: .3em; }
.vdoc .dnotes ol { margin: 0; padding-left: 1.6em; }
.vdoc .dnotes li { margin: .25em 0; }
.vdoc .dnotes li p { margin: 0; }
/* ヘッダ・フッタ。紙をまたぐ繰り返しは作れないので、上と下に 1 回ずつ置く */
.vdoc .dhf { color: #8b9199; font-size: .82em; }
.vdoc .dhf p { margin: .1em 0; }
.vdoc .dhf-top { border-bottom: 1px solid #eceff2; padding-bottom: .5em; margin-bottom: 1.2em; }
.vdoc .dhf-bottom { border-top: 1px solid #eceff2; padding-top: .5em; margin-top: 1.6em; }

/* 変更履歴。Word の「すべての変更を表示」と同じ見せ方(足した分は下線、消した分は取り消し線) */
.vdoc ins.dins { color: #1a56b8; text-decoration: underline; text-decoration-thickness: 1px; }
.vdoc del.ddel { color: #c0392b; text-decoration: line-through; opacity: .75; }
/* 校閲の札から押された段落を、少しの間だけ光らせる */
.vdoc .drevhit { background: #fff3c4 !important; transition: background .4s; }

/* 文字数。帯の右、押せるものの手前に小さく出す */
.dcount {
  font-size: 12px; color: #5a6169; background: #fff; border: 1px solid #e3e7ec;
  border-radius: 999px; padding: 2px 9px; white-space: nowrap; cursor: default;
}
.dcount[hidden] { display: none !important; }

/* 校閲の札。本文の右に寄せる(本文の幅は狭くなるだけで、組み方は変えない) */
.dwrap { flex: 1; min-height: 0; display: flex; }
.drev {
  flex: none; width: 330px; max-width: 46%; border-left: 1px solid #eceff2;
  background: #fafbfc; display: flex; flex-direction: column; overflow: hidden;
}
.drev[hidden] { display: none !important; }
.drev-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid #eceff2; flex: none;
}
.drev-sum { font-size: 12px; color: #6b727a; flex: 1; }
.drev-x {
  font: inherit; font-size: 16px; line-height: 1; border: 0; background: transparent;
  color: #8b9199; cursor: pointer; padding: 2px 6px; border-radius: 5px;
}
.drev-x:hover { background: #eceff2; }
.drev-bulk {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none;
  padding: 7px 10px; border-bottom: 1px solid #eceff2; font-size: 12px; color: #6b727a;
}
.drev-bulk select { font: inherit; font-size: 12px; max-width: 170px; }
.drev-bulk[hidden] { display: none !important; }
.drev-bulkb { display: flex; gap: 6px; margin-left: auto; }
.drev-bulk .vbtn { font-size: 12px; padding: 2px 10px; }
.drev-list { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; min-height: 0; }
.drev-list > li {
  border: 1px solid #e7ebf0; border-radius: 7px; background: #fff;
  padding: 7px 9px; margin: 0 0 6px; cursor: pointer;
}
.drev-list > li:hover { border-color: #c3d4ee; }
.drev-list > li.drev-note {
  cursor: default; background: transparent; border: 0; color: #8b9199; font-size: 12px; line-height: 1.6;
}
.drev-who { font-size: 11.5px; color: #5a6169; display: flex; gap: 6px; flex-wrap: wrap; }
.drev-who span { color: #9aa1a9; }
.drev-what { font-size: 12.5px; line-height: 1.6; margin: 3px 0 5px; word-break: break-word; }
.drev-what ins { color: #1a56b8; text-decoration: underline; }
.drev-what del { color: #c0392b; }
.drev-around { color: #6b727a; }
.drev-tag {
  display: inline-block; font-size: 11px; color: #4a5560; background: #eef1f5;
  border-radius: 4px; padding: 1px 6px; margin-right: 5px; white-space: nowrap;
}
.drev-ops { display: flex; gap: 6px; }
.drev-ops button {
  font: inherit; font-size: 11.5px; padding: 2px 9px; border: 1px solid #d0d5db;
  border-radius: 5px; background: #fff; color: #5a6169; cursor: pointer;
}
.drev-ops button:hover { background: #f0f2f5; }
/* 狭い画面では、札を下に重ねずに広く取る */
@media (max-width: 760px) {
  .drev { width: 100%; max-width: none; border-left: 0; border-top: 1px solid #eceff2; }
  .dwrap { flex-direction: column; }
  .drev-list { max-height: 45vh; }
}
/* テキストを直すところ */
.vedit { display: flex; flex-direction: column; height: 100%; }
.ebar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-bottom: 1px solid #eceff2; background: #fafbfc; flex: none;
}
.estat { font-size: 12px; color: #6b727a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.earea {
  flex: 1; min-height: 0; width: 100%; border: 0; outline: none; resize: none;
  padding: 16px 18px; font: 13px/1.75 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  color: #1f2328; background: #fff; tab-size: 2;
}
/* 読むだけのときと、書き換えられるときを見分けられるように、うっすら色を変える */
.earea:not([readonly]) { background: #fffef7; }
/* 読んでいる間の表示(色つき)。書き換えるときは上の textarea に替わる */
.eview { flex: 1; min-height: 0; overflow: auto; }

/* TeX と BibTeX の色分け。
   本文は黒のまま、目印になるものだけ色を変える(全部に色が付くと、かえって読みにくい)。 */
.vtex .tc { color: #6a8759; font-style: italic; }   /* 覚え書き(%から行末) */
.vtex .tk { color: #0b62c4; }                        /* 命令(\section など) */
.vtex .te { color: #8250df; font-weight: 600; }      /* 環境名・引用のキー */
.vtex .tf { color: #953800; }                        /* BibTeX の項目名 */
.vtex .tm { color: #b3541e; }                        /* 数式・値 */
.vtex .tv { color: #57606a; background: #f6f8fa; }   /* そのまま出すところ(verbatim) */

/* ソースコードの色分け(assets/codehi.js)。
   TeX と同じ考えで、本文は黒のまま、目印になるものだけ色を変える。 */
.vcode .cc { color: #6a8759; font-style: italic; }   /* 覚え書き */
.vcode .cs { color: #b3541e; }                       /* 文字列 */
.vcode .ck { color: #0b62c4; font-weight: 600; }     /* 決まった言葉 */
.vcode .cn { color: #8250df; }                       /* 数 */
.vcode .cv { color: #953800; }                       /* 変数($name など) */
.vcode .ct { color: #0b62c4; }                       /* タグの名前 */
.vcode .ca { color: #6f42c1; }                       /* 属性・鍵の名前 */
.vcode .cp { color: #868e96; }                       /* 区切りの印(<?php ``` など) */
.vnote {
  padding: 10px 14px; background: #fff8e6; border-bottom: 1px solid #f0e2bd;
  font-size: 12.5px; color: #6b5a28;
}

/* CSV を直すところ。1行目も普通の行として扱う(CSV に見出しの概念は無いので) */
table.sheet { border-collapse: collapse; font-size: 12.5px; }
table.sheet th {
  background: #f3f5f7; border: 1px solid #dfe3e8; padding: 3px 8px;
  font-weight: 600; color: #6b727a; position: sticky; top: 0; z-index: 2;
}
table.sheet th.rn {
  position: sticky; left: 0; z-index: 3; min-width: 40px;
  text-align: right; font-weight: 400;
}
table.sheet td { border: 1px solid #dfe3e8; padding: 0; }
/* 幅は列(th)が決める。入力欄に下限を持たせると、Excel 側で細くした列が太って見える。 */
table.sheet input {
  border: 0; outline: none; padding: 3px 7px; font: inherit; background: transparent;
  min-width: 0; width: 100%; color: inherit; font: inherit;
}
table.sheet input:focus { background: #eaf2ff; box-shadow: inset 0 0 0 2px #1a56b8; }
/* 数式の入ったセル。触らせない(計算結果を手で潰さないため)。式は hover で見える。 */
table.sheet td.fx {
  background: #f4f6f8; color: #5a6169; padding: 3px 7px; cursor: help;
}

/* Excel 側で固定されている見出し。めくっても貼り付いたままにする。
   top / left の値は、実際の行の高さと列の幅を積み上げて JS が入れる。 */
table.sheet td.stkT { position: sticky; z-index: 2; }
table.sheet td.stkL { position: sticky; z-index: 2; }
table.sheet td.stkT.stkL { z-index: 3; }
/* 貼り付く側は下が透けると読めなくなるので、色が指定されていなければ白で塞ぐ */
table.sheet td.stkT:not([style*="background"]),
table.sheet td.stkL:not([style*="background"]) { background: #fff; }

/* グラフ。表の上に横に並べ、多いときは横スクロールで見る。
   **帯の高さは必ず抑えること。** ここが伸びると、その下にある表が
   画面の外へ押し出されて「グラフは見えるのにセルが見えない」になる。 */
.vcharts {
  display: flex; gap: 14px; overflow-x: auto; padding: 12px;
  border-bottom: 1px solid #eceff2; background: #fafbfc; flex: none;
  /* 伸ばさない。伸ばすと、いちばん高いものに合わせて全部が伸びる */
  align-items: flex-start;
  max-height: 46vh;
}
.vcharts[hidden] { display: none !important; }
.cwrap { margin: 0; flex: none; width: 420px; }
.cwrap figcaption { font-size: 11px; color: #8b9199; text-align: right; margin-top: 2px; }
/* 「出していないものがある」ことの知らせ。黙って切ると誰も気づけない。 */
.cmore {
  margin: 0; flex: none; align-self: center; max-width: 230px;
  font-size: 12px; line-height: 1.6; color: #6b7280;
  border-left: 3px solid #e2e6ea; padding: 2px 0 2px 10px; white-space: normal;
}
/* 表に貼られている画像。**縦も横も上限を決める。**
   Excel 側に大きさの指定が無い絵は原寸で入ってくる(実データに 1975x914 があった)。 */
.pwrap { width: auto; }
.pwrap a { display: block; }
.pwrap img {
  display: block; width: auto; height: auto;
  max-width: 560px; max-height: 280px;
  border: 1px solid #eceff2; border-radius: 6px; background: #fff;
}
svg.chart { width: 100%; height: auto; background: #fff; border: 1px solid #eceff2; border-radius: 6px; }
svg.chart .ct { font: 600 12.5px system-ui, sans-serif; fill: #1f2328; }
svg.chart .cl { font: 10.5px system-ui, sans-serif; fill: #6b727a; }
svg.chart .cg { stroke: #eceff2; stroke-width: 1; }
svg.chart .ca { stroke: #c3c8ce; stroke-width: 1; }
/* 誤差範囲(棒の上下に出るひげ)。Excel と同じで、系列の色ではなく黒に近い灰色 */
svg.chart .ce { stroke: #52585e; stroke-width: 1; }

/* 表計算の表 */
.vsheet { overflow: auto; padding: 12px; }
.vsheet table { border-collapse: collapse; font-size: 12.5px; }
.vsheet td, .vsheet th {
  border: 1px solid #dfe3e8; padding: 3px 8px; white-space: nowrap;
  max-width: 32rem; overflow: hidden; text-overflow: ellipsis;
}
.vsheet th { background: #f3f5f7; position: sticky; top: 0; }

/* xlsx の表。セルを選んで打つ(表計算ソフトと同じ)。数式バーに選んだセルの中身を出す。 */
.fbar {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; flex: none;
  border-bottom: 1px solid #eceff2; background: #fff;
}
.fbar .fname {
  min-width: 5.5rem; padding: 3px 6px; border: 1px solid #e3e6ea; border-radius: 4px; background: #fafbfc;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #3d434a; text-align: center; white-space: nowrap;
}
.fbar .ffx { font: italic 600 13px Georgia, serif; color: #8b9199; }
.fbar input {
  flex: 1; min-width: 0; padding: 4px 8px; border: 1px solid #e3e6ea; border-radius: 4px; outline: none;
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: #1f2328; background: #fff;
}
.fbar input:focus { border-color: #1a56b8; box-shadow: 0 0 0 2px #dbe7fb; }
.fbar input[readonly] { background: #fafbfc; color: #5a6169; }
.vsheet.xs { position: relative; padding: 0; flex: 1; min-height: 0; }
/* 列の幅は colgroup で決める(中身の長さで列が伸びないように)。枠線は右と下だけ引いて重ならないようにする */
table.sheet.xs { table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.sheet.xs td {
  border: 0; border-right: 1px solid #e6e9ed; border-bottom: 1px solid #e6e9ed;
  padding: 2px 5px; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: clip;
  line-height: 1.35; vertical-align: bottom; cursor: cell; user-select: none; -webkit-user-select: none;
}
table.sheet.xs td.cnum { text-align: right; }
table.sheet.xs td.cmid { text-align: center; }
/* 選んでいる範囲は薄い青を重ねる(セルの塗りは残す) */
table.sheet.xs td.insel { background-image: linear-gradient(rgba(26, 86, 184, .14), rgba(26, 86, 184, .14)); }
/* 選んだ範囲の行番号・列名。遠目にも「どこからどこまで」が分かるように */
table.sheet.xs th.hsel { background: #ccd9ef; color: #16305e; }
table.sheet.xs td.cur { box-shadow: inset 0 0 0 2px #1a56b8; }
/* drive では計算できなかった数式(控えの値のまま)。Excel で開くと計算される */
table.sheet.xs td.stale { text-decoration: underline dotted #c79200; text-underline-offset: 2px; }

/* セルに付いている仕掛け(リンク・コメント・選ぶだけ・絞り込み) */
table.sheet.xs td a.clink { color: #1a56b8; text-decoration: underline; cursor: pointer; }
table.sheet.xs td.cnote { position: relative; }
/* コメントのある印。Excel と同じで右上に小さな三角 */
table.sheet.xs td.cnote::after {
  content: ''; position: absolute; top: 0; right: 0;
  border-top: 6px solid #d64545; border-left: 6px solid transparent;
}
table.sheet.xs td.cdv { position: relative; padding-right: 16px; }
/* 「選ぶセル」だと見ただけで分かるように、右下にうっすら三角を出す。
   押せる ▾ は選んでいるセルにだけ出すが、それだと一覧しているときに
   ただの文字に見えてしまう(◯△× を選ぶ表がそう見えた)。 */
table.sheet.xs td.cdv::after {
  content: ''; position: absolute; right: 2px; bottom: 2px;
  border: 4px solid transparent; border-right-color: #b6bcc4; border-bottom-color: #b6bcc4;
  pointer-events: none;
}
table.sheet.xs td.cdv.cur::after { display: none; }   /* 選んだセルは押せる ▾ が出る */
.dvmark, .cfil {
  position: absolute; right: 1px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 15px; line-height: 15px; text-align: center;
  font-size: 9px; color: #6b727a; background: #eef1f4; border: 1px solid #d7dce1;
  border-radius: 3px; cursor: pointer; user-select: none;
}
.dvmark:hover, .cfil:hover { background: #dde3ea; color: #1a2026; }
.cfil.on { background: #1a56b8; border-color: #1a56b8; color: #fff; }
table.sheet.xs td.cfilh { position: relative; padding-right: 17px; }

/* セルの上に出す小窓 */
.cpop {
  position: absolute; z-index: 20; background: #fff; border: 1px solid #c9ced4;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 6px;
  max-width: 280px; font-size: 12.5px;
}
.cpop .cpopq { width: 100%; box-sizing: border-box; margin-bottom: 6px; padding: 5px 7px;
  border: 1px solid #d7dce1; border-radius: 6px; font: inherit; }
.cpoplist { max-height: 40vh; overflow: auto; display: flex; flex-direction: column; gap: 1px; }
.cpopit {
  flex: none; text-align: left; border: none; background: none; font: inherit;
  padding: 6px 8px; border-radius: 5px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cpopit:hover { background: #eef2f7; }
.cpopck {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 6px;
  border-radius: 5px; cursor: pointer;
}
.cpopck:hover { background: #f2f5f8; }
.cpopck span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpopck i { color: #9aa1a9; font-style: normal; font-size: 11px; }
.cpopfoot { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cpopfoot button { font-size: 12px; padding: 4px 9px; }
table.sheet.xs th {
  position: sticky; top: 0; z-index: 4; height: 24px; box-sizing: border-box;
  border: 0; border-right: 1px solid #dfe3e8; border-bottom: 1px solid #dfe3e8;
  padding: 2px 4px; background: #f3f5f7; color: #6b727a; font-size: 11.5px; font-weight: 500;
  user-select: none; -webkit-user-select: none; cursor: default;
}
table.sheet.xs th.rn { left: 0; z-index: 5; text-align: right; padding-right: 7px; min-width: 0; }
table.sheet.xs thead th.rn { z-index: 6; }
table.sheet.xs td.stkT, table.sheet.xs td.stkL { z-index: 3; }
/* 幅・高さをつまむところ。境目の上に細い帯を置く */
/* 見出しの内側に置く(外へはみ出すと、隣の見出しの下に隠れて押せない) */
.cres { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.rres { position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; cursor: row-resize; z-index: 2; touch-action: none; }
.cres:hover, .rres:hover { background: rgba(26, 86, 184, .35); }
/* セルの上に重ねる入力欄。選んでいるだけのときは見えないまま置いておく(そのまま打てるように) */
.cedit {
  position: absolute; z-index: 8; box-sizing: border-box; margin: 0;
  border: 2px solid #1a56b8; padding: 1px 4px; outline: none; background: #fff;
  font: 12.5px system-ui, -apple-system, "Segoe UI", "Hiragino Sans", Meiryo, sans-serif; color: #1f2328;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.cedit.idle { opacity: 0; pointer-events: none; box-shadow: none; }

/* 指で範囲を選ぶための「つまんで広げる」印(選んだところの右下)。
   押したまま引くと画面送りに取られてしまうので、掴む場所を分けている。
   見た目は小さい丸だが、指で掴めるよう当たり判定は広くとる。 */
/* 選んだ範囲を囲む枠。薄い色だけだと広がったことに気づけない */
.vsheet .selbox {
  position: absolute; z-index: 3; pointer-events: none;
  border: 2px solid #1a56b8; box-sizing: border-box; border-radius: 1px;
}
.vsheet .selbox[hidden] { display: none; }

.vsheet .selgrip {
  position: absolute; z-index: 6; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  display: flex; align-items: center; justify-content: center;
  touch-action: none; cursor: nwse-resize; -webkit-tap-highlight-color: transparent;
}
.vsheet .selgrip::after {
  content: ''; width: 13px; height: 13px; border-radius: 50%;
  background: #1a56b8; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.vsheet .selgrip[hidden] { display: none; }

@media (max-width: 760px) {
  .viewer { padding: 0; }
  .vbar { border-radius: 0; }
  .vbody { border-radius: 0; }
  .vdoc { padding: 0; background: #fff; }
  /* 紙の幅(A4 なら 595pt)のままだとスマホで横にはみ出る。
     幅は画面に合わせ、余白だけ原本の比率を残す程度に詰める。 */
  .vdoc .dpage { width: 100% !important; padding: 16px 14px 40px !important; box-shadow: none; }
}

/* --- docx の数式と校閲コメント ---
   どちらも以前は画面に出ていなかった(実測で数式は 14%・コメントは 7% の docx が持つ)。 */
.vdoc math.dmath { font-size: 1.05em; }
.vdoc math.dmath[display="block"] { display: block; margin: .6em 0; text-align: center; }
.vdoc span.dmath { font-family: "Cambria Math", "STIX Two Math", serif; background: #f5f6f8; padding: 0 .2em; border-radius: 3px; }
.vdoc .dcmref {
  display: inline-block; min-width: 1.15em; height: 1.15em; line-height: 1.15em;
  margin: 0 .15em; text-align: center; font-size: .72em; vertical-align: super;
  background: #f0b429; color: #3a2b00; border-radius: 3px; text-decoration: none; font-weight: 700;
}
.vdoc .dcmref:hover { background: #d99a10; }
.vdoc .dnotes.dcm { border-left: 3px solid #f0b429; }
.vdoc .dcmwho { display: block; font-size: .8em; color: #7b828b; }


@media (max-width: 760px) {
  /* スマホ: 閲覧の覆い */
  .vbar, .vbody { border-radius: 0; }
  .vdoc { padding: 20px 14px 48px; max-width: 100%; }
  .vtitle { font-size: 13px; }
  .vbtn { padding: 5px 9px; font-size: 13px; }
  /* 幅が足りないので、文字の読み取りの知らせは出さない(ボタンを押し出してしまう) */
  .vhint { display: none; }
}

/* 講義中にペンで書いたもの(インク)。
   pptx の中では「書き込み」と「同じ見た目の絵」が 2 通りで入っていて、
   こちらは絵のほうを描いている。上の帯のボタンで出し入れする。
   **印は body に付ける**(発表モードは別の入れ物にスライドを写すため)。 */
body.nohand .phand { display: none !important; }

/* --- PowerPoint のスライド(中身から組み立てたもの) --------------------------- */
.pptwrap { display: flex; flex-direction: column; height: 100%; }
.pbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none;
  padding: 8px 12px; border-bottom: 1px solid #eceff2; background: #fafbfc;
}
.pbar .pinfo { font-size: 12px; color: #6b727a; }
.pbar .pgrow { display: flex; gap: 8px; }
.pslides { flex: 1; min-height: 0; overflow: auto; padding: 12px; background: #eef0f3; }
.pslidewrap { margin: 0 auto 18px; position: relative; }
/* 紙そのものの入れ物。高さはここだけが持つ(下に置くノートを押し出さないため) */
.pshell { position: relative; }
/* スライドは実寸(px)で組んである。画面の幅に合わせてまとめて縮める。 */
.pslide {
  position: relative; transform: scale(var(--ps, 1)); transform-origin: top left;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); overflow: hidden;
}
.pcap { font-size: 11px; color: #8b9199; text-align: right; margin-top: 2px; }
/* 「発表では飛ばす」スライド(p:sld の show="0")。見えるが、そうと分かるようにする */
.pcap .phide {
  background: #ece7f7; color: #543a8c; border-radius: 999px; padding: 1px 8px; font-size: 10.5px;
}
.pnotes {
  white-space: pre-wrap; font-size: 12.5px; color: #4b5560; background: #fffdf3;
  border: 1px solid #f0e2bd; border-radius: 6px; padding: 8px 10px; margin-top: 4px;
}
.pnotes[hidden] { display: none !important; }
/* スライドの中の図形。位置と大きさは中身(XML)のとおり。 */
.psh { position: absolute; }
.pgeo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pimgfill { border-radius: inherit; }
/* 切り抜き(a:srcRect)のある絵は、枠より大きく拡げて位置をずらすことで見せている。
   **枠で切らないと、その拡げた分がそのまま外へはみ出して隣の文字を覆う。**
   (実データ: 画面録画の絵が枠の 175% の高さで出て、本文を隠していた) */
.ppic { overflow: hidden; }
.ppic img { width: 100%; height: 100%; object-fit: fill; display: block; }

/* スライドに貼った動画。ふだんは PowerPoint と同じでポスター画像だけを出し、
   ▶ を押したときに初めて中身を取りに行く(開いただけで何百 MB も読まない)。 */
.pvplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
}
.pvplay:hover { background: rgba(0, 0, 0, .78); }
.pvout .pvplay { background: rgba(90, 90, 90, .55); }
.pvid video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
/* 外のファイルにつながっている動画の言いわけ。紙の中に収まるよう小さく出す。 */
.pvnote {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px;
  background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; line-height: 1.4;
}
/* 枠に入りきらない文字は、PowerPoint と同じように**外へはみ出して見せる**(切らない)。
   枠で切ると行がまるごと消えて読めなくなる(実データ 20 本で 110 か所あった)。
   小さくして収める指定(normAutofit = .pfit)の枠も同じ。**どれだけ縮めるかは原本に書いてあり、
   書いていなければ PowerPoint も縮めていない**ので、こちらで切る理由がない。 */
.ptx {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  /* どこにも大きさが書いていない文字の既定。
     PowerPoint の文字箱の既定は 18pt(=24px)だが、24px にすると小さな注記の箱
     (「[8] Oreg et al.…」など)が軒並みはみ出した(19 枚中 4 枚 → 8 枚)。
     そういう箱は元々小さい字なので、**18px のままにしておく方が実データに合う**。 */
  font-size: 18px; line-height: 1.2; color: #000; overflow: visible;
}
/* **文字の空きは、書いてあるとおりに出す。**PowerPoint は空白を詰めない。
   作った人は行頭の空白で字下げをしていることが多く(実データでもよく出てくる)、
   HTML の既定(空白をまとめる)だと、その行だけ左に戻って見える。 */
.ptx .pp, table.ptbl .pp { white-space: pre-wrap; }
.ptx .pp { margin: 0; }
.ptx .pp.pempty { flex: none; padding: 0; }   /* 空の行。高さは中身(XML)の文字の大きさから決める */
/* 箇条書きの記号。幅(min-width)は本文が始まる位置まで。記号が太いときのために
   少しだけ余白を内側に持つ(空白の文字は入れない。入れると幅を決めた意味がなくなる) */
/* 箇条書きの印。幅を持たせるため inline-block にしてある。
   **text-indent を 0 に戻すこと。** inline-block はそれ自体が block container なので、
   段落のぶら下げ(負の text-indent)を受け継ぎ、箱の中で字をもう一度左へずらす。
   箱の位置は正しいのに印だけが 36px 左に出る、という形になる(2026-10-09 に実測)。 */
.ptx .pbu { display: inline-block; box-sizing: border-box; padding-right: .2em; text-indent: 0; }
/* 全角スペース。**プログラム用の書体は、ここに点線の四角を描く**(Ricty Diminished など)。
   PowerPoint は何も描かないので、和文の書体に替えて空白のまま出す。幅はどれも 1 文字ぶん。 */
.ptx .pfw { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, "MS Gothic", sans-serif; }
/* 段落の終わりの改行のぶん。HTML は行末の <br> を 1 行と数えないので、
   幅ゼロの文字を CSS で足して行を作る。**CSS で足した文字は textContent に入らない**ので、
   英語チェックや検索が拾う文字は変わらない。 */
.ptx .pbz::after { content: "\200B"; }
/* 表は、中身が多ければ下へ伸びる(PowerPoint と同じ。枠で切ると行が消えてしまう) */
.ptblwrap { overflow: visible; }
/* 行間は 1.2(PowerPoint の 1 行ぶん)。drive の画面全体の 1.6 が入っていたため、
   2 行になるセルが 1 行あたり 42px にふくらみ、**見出しの行だけ 17px 背が高くなって
   表の下にいくほどズレ、上に重ねた赤い枠が 1 行ぶん手前を囲んでいた**。 */
table.ptbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.2; }
table.ptbl td { border: 1px solid #c9ced4; padding: 3px 6px; overflow: hidden; }
table.ptbl td .pp { margin: 0; }
.pchart { background: #fff; }
.pchart svg.chart { width: 100%; height: 100%; border: 0; }
/* 発表モード(スライドをそのまま全画面に) */
.vpresent .pstage { position: relative; }

/* グラフのデータラベル(棒の上・点の横に出る数字)。
   小さく薄めにして、線や棒より前に出過ぎないようにする。 */
.cv { font-size: 9px; fill: #444; pointer-events: none; }

/* Scrapbox との結びつき */
/* ページ名を出すので長くなる。帯を押し広げないように幅を抑えて、あふれは … にする
   (ぜんぶはマウスを乗せると出る)。 */
.vbtn.sb {
  background: #eef4ff; border-color: #cfe0fb; color: #21457e;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 760px) { .vbtn.sb { max-width: 110px; } }
.sbwrap {
  position: fixed; inset: 0; z-index: 130; background: rgba(20, 23, 26, .55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.sbbox {
  background: #fff; border-radius: 13px; box-shadow: 0 16px 44px rgba(0, 0, 0, .3);
  width: min(560px, 100%); max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
}
.sbhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e6e9ed; }
.sbsp { flex: 1; }
.sbx { border: 0; background: #eef1f4; color: #3b4148; width: 28px; height: 28px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.sbnote { margin: 10px 14px 0; padding: 8px 11px; border-radius: 8px; background: #fdf6e7; border: 1px solid #f0e2c0; color: #6b5420; font-size: 12.5px; line-height: 1.7; }
.sblist { list-style: none; margin: 10px 0 14px; padding: 0 14px; overflow: auto; }
.sblist li { padding: 6px 0; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.sblist a { color: #1a56b8; text-decoration: none; }
.sblist a:hover { text-decoration: underline; }
.sbweak { margin-left: auto; background: #fdeaea; color: #8a1c1c; border-radius: 999px; padding: 2px 9px; font-size: 11px; white-space: nowrap; }
/* 手で結んだものにだけ出る。これが出ていること自体が「自分で付けた」の印 */
.sbdel { margin-left: auto; border: 1px solid #d0d5db; background: #fff; color: #6b727a; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; cursor: pointer; }
.sbdel:hover { background: #f6f7f9; color: #8a1c1c; }
/* ページの URL を貼って結ぶ欄 */
.sbadd { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid #e6e9ed; background: #fafbfc; }
.sburl { flex: 1; min-width: 200px; font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid #d0d5db; border-radius: 6px; }
.sbgo { font: inherit; font-size: 13px; padding: 6px 14px; border: 1px solid #1a56b8; background: #1a56b8; color: #fff; border-radius: 6px; cursor: pointer; }
.sbgo:hover { background: #164a9e; }
.sbmsg { flex: 1 0 100%; font-size: 12px; color: #8a1c1c; min-height: 1em; }

/* 列見出しの「⋯」(並べ替えなど)と、小窓の並べ替えの段 */
table.sheet.xs th.ch { position: relative; }
table.sheet.xs th .chm {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  color: #98a1aa; cursor: pointer; font-size: 12px; line-height: 1; padding: 0 2px;
  opacity: 0; transition: opacity .12s;
}
table.sheet.xs th:hover .chm { opacity: 1; }
table.sheet.xs th .chm:hover { color: #1a56b8; }
@media (pointer: coarse) { table.sheet.xs th .chm { opacity: .7; } }

.cpopsort { display: flex; flex-direction: column; border-bottom: 1px solid #eceff2; }
.cpopsort button {
  border: 0; background: none; text-align: left; padding: 8px 12px; font-size: 13px;
  cursor: pointer; color: #26313b;
}
.cpopsort button:hover { background: #f2f6fb; }
.cpophint { padding: 9px 12px; font-size: 11.5px; line-height: 1.7; color: #6b727a; }

/* 行番号の「⋯」(行の出し入れ) */
table.sheet.xs th.rn { position: relative; }
table.sheet.xs th.rn .rowm {
  right: 3px; font-size: 11px;
}
.cpopsort button.danger { color: #8a1c1c; }
.cpopsort button.danger:hover { background: #fdeaea; }

/* ZIP の中を、フォルダのように見せる(assets/zipview.js) */
.zipv { padding: 12px 16px; max-width: 900px; margin: 0 auto; }
.zipcrumb { font-size: 13px; color: #555; margin-bottom: 8px; }
.zipcrumb a { color: #1a56b8; text-decoration: none; }
.zipcrumb .sep { color: #aab; margin: 0 4px; }
.zipcrumb .zipcount { float: right; color: #8b929a; font-size: 12px; }
.ziptbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.ziptbl td { padding: 6px 8px; border-bottom: 1px solid #eef0f3; }
.ziptbl td.zn a { color: #222; text-decoration: none; }
.ziptbl td.zn a:hover { text-decoration: underline; }
.ziptbl td.zs { text-align: right; color: #8b929a; white-space: nowrap; width: 7em; }
.zipback { padding: 8px 16px; border-bottom: 1px solid #eef0f3; }
.zipback a { color: #1a56b8; text-decoration: none; font-size: 13px; }
