/* 仕事してる風アプリ（BUSY MODE）。色は KS の内部配色（01_KS_DESIGN_CURRENT.md 4・6章）。 */
:root{
  --bg:#FAFAFA;--panel:#FFFFFF;--soft:#F1F3F5;--line:#DDE2E6;
  --ink:#22272C;--muted:#747C84;--blue:#406F98;--blue-soft:#E8EFF5;--accent:#F04B32;
  --mine:#406F98;--mine-ink:#FFFFFF;--other:#FFFFFF;
  --viewer-bg:#5B6168;--paper:#FFFFFF;
  --safe-t:env(safe-area-inset-top);--safe-b:env(safe-area-inset-bottom);
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#1C1F23;--panel:#292F36;--soft:#23282E;--line:#414850;
    --ink:#F2F4F6;--muted:#ADB8C4;--blue:#88B9DF;--blue-soft:#283747;--accent:#F17B65;
    --mine:#3E6A91;--mine-ink:#FFFFFF;--other:#292F36;
    --viewer-bg:#121417;
  }
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--ink);overscroll-behavior:none}
body{font-family:-apple-system,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic",Meiryo,sans-serif;font-size:16px;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
svg{display:block}
.num{font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-variant-numeric:tabular-nums}

/* ---------- ① チャット ---------- */
.chat{position:fixed;inset:0;display:flex;flex-direction:column;max-width:720px;margin:0 auto}
.bar{display:flex;align-items:center;gap:4px;padding:calc(var(--safe-t) + 6px) 8px 6px;background:var(--bg);border-bottom:1px solid var(--line)}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;color:var(--blue);flex:none}
.icon-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.room{flex:1;min-width:0;text-align:center;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.room-name{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-sub{font-size:12px;color:var(--muted);margin-top:1px}

.log{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 16px 16px;display:flex;flex-direction:column;gap:14px}
.day{align-self:center;font-size:12px;color:var(--muted);background:var(--soft);padding:3px 12px;border-radius:999px;margin:4px 0}
.msg{display:flex;gap:10px;align-items:flex-start;animation:pop .22s ease-out}
.msg.mine{flex-direction:row-reverse}
.avatar{width:36px;height:36px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:14px;font-weight:600;color:#fff}
.msg-body{min-width:0;max-width:78%;display:flex;flex-direction:column;align-items:flex-start}
.mine .msg-body{align-items:flex-end}
.who{font-size:12px;color:var(--muted);margin:0 0 4px 2px}
.who b{color:var(--ink);font-weight:600;margin-right:6px}
.row{display:flex;align-items:flex-end;gap:6px}
.mine .row{flex-direction:row-reverse}
.bubble{background:var(--other);border:1px solid var(--line);border-radius:4px 16px 16px 16px;padding:9px 12px;line-height:1.6;font-size:15px;white-space:pre-wrap;word-break:break-word}
.mine .bubble{background:var(--mine);color:var(--mine-ink);border-color:transparent;border-radius:16px 4px 16px 16px}
.meta{font-size:11px;color:var(--muted);white-space:nowrap;line-height:1.4;padding-bottom:2px;text-align:right}
.mine .meta{text-align:right}
.file{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 14px 10px 10px;min-width:230px;text-align:left;margin-top:6px}
.file:active{background:var(--soft)}
.file-icon{width:40px;height:48px;border-radius:4px;background:var(--accent);color:#fff;display:grid;place-items:end center;font-size:10px;font-weight:700;padding-bottom:6px;flex:none;position:relative;font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;letter-spacing:.04em}
.file-icon::before{content:"";position:absolute;top:0;right:0;border-style:solid;border-width:0 12px 12px 0;border-color:transparent var(--bg) transparent transparent}
.file-name{font-size:14px;font-weight:600;word-break:break-all}
.file-sub{font-size:12px;color:var(--muted);margin-top:2px}
.typing{display:flex;gap:4px;padding:12px 14px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.25}30%{opacity:1}}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.composer{display:flex;align-items:flex-end;gap:4px;padding:8px 8px calc(var(--safe-b) + 8px);background:var(--bg);border-top:1px solid var(--line)}
.composer textarea{flex:1;resize:none;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:20px;padding:10px 14px;font:inherit;font-size:16px;line-height:1.4;max-height:120px;outline:none}
.composer textarea:focus{border-color:var(--blue)}
.send-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--blue);flex:none}
.send-btn svg{width:22px;height:22px;fill:currentColor}

.toast{position:absolute;left:12px;right:12px;top:calc(var(--safe-t) + 8px);background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-size:14px;line-height:1.5;transform:translateY(-140%);transition:transform .3s ease;pointer-events:none;z-index:5;box-shadow:0 6px 20px rgba(0,0,0,.12)}
.toast.show{transform:none}
.toast b{display:block;font-size:13px}
.toast span{color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- ② ニセPDF ---------- */
.viewer{position:fixed;inset:0;z-index:10;background:var(--viewer-bg);display:flex;flex-direction:column;transform:translateY(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);visibility:hidden}
.viewer.open{transform:none;visibility:visible}
.viewer-bar{display:flex;align-items:center;gap:6px;padding:calc(var(--safe-t) + 6px) 8px 6px 4px;background:var(--bg);border-bottom:1px solid var(--line)}
.text-btn{color:var(--blue);font-size:16px;min-width:64px;height:44px;padding:0 10px;text-align:left}
.viewer-title{flex:1;min-width:0;text-align:center}
.viewer-title > div:first-child{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.viewer-pages{font-size:12px;color:var(--muted);font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-variant-numeric:tabular-nums;margin-top:1px}
.pages{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px 12px 24px;display:flex;flex-direction:column;align-items:center;gap:16px}
.viewer-foot{padding:10px 16px calc(var(--safe-b) + 10px);background:var(--bg);border-top:1px solid var(--line)}
.primary,.secondary{min-height:48px;border-radius:12px;font-size:16px;font-weight:600;width:100%}
.primary{background:var(--blue);color:#fff}
@media (prefers-color-scheme:dark){.primary{background:#406F98}}
.secondary{border:1px solid var(--blue);color:var(--blue);background:var(--panel)}
.primary:active,.secondary:active{opacity:.8}

/* 紙（下版データ風）。1mm=4px で組み、JS が zoom で画面幅に縮める。紙面の中は印刷物なので固定の色 */
.pages{touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.pages.zoomed{align-items:flex-start}
.sheet-paper{position:relative;flex:none;width:936px;height:1284px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.3);--theme:#9A4A2C}
.marks{position:absolute;inset:0;width:936px;height:1284px;pointer-events:none}
.bleed{position:absolute;left:36px;top:36px;width:864px;height:1212px;overflow:hidden;background:#fff;color:#1E1E1E;
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic",Meiryo,sans-serif;font-weight:300;font-feature-settings:"palt"}
.bleed img.ph{display:block;object-fit:cover;background:#ccc}
.bleed figure{margin:0}
.bleed figcaption,.p-cap{font-size:10.5px;line-height:1.6;color:#555;margin-top:8px}
.bleed figcaption b{color:var(--theme);margin-right:4px;font-weight:600}
.safe{position:absolute;inset:0;padding:84px 72px 96px;display:flex;flex-direction:column}
.p-label{font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-size:13px;letter-spacing:.32em;color:var(--theme);font-weight:500}
.p-label.light,.p-title.light{color:#fff}
.p-title{font-size:56px;font-weight:600;letter-spacing:.06em;line-height:1.3;margin:10px 0 18px}
.p-title.small{font-size:40px}
.p-lead{font-size:16px;line-height:2;font-weight:400;margin-bottom:24px}
.p-body{font-size:12.4px;line-height:1.95;text-align:justify}
.p-body p{margin:0;text-indent:1em}
.p-body.cols3{column-count:3;column-gap:26px}
.p-body.cols2{column-count:2;column-gap:28px}
.p-h3{font-size:18px;font-weight:600;letter-spacing:.1em;margin-bottom:12px}
.p-quote{font-size:24px;font-weight:600;letter-spacing:.08em;color:var(--theme);border-top:1px solid var(--theme);border-bottom:1px solid var(--theme);padding:26px 0;margin:44px 0;text-align:center}
.p-folio{position:absolute;bottom:42px;left:72px;display:flex;align-items:baseline;gap:14px;font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-size:9.5px;letter-spacing:.2em;color:#888}
.p-folio .n{font-size:14px;color:#222;letter-spacing:.05em}
.p-folio.odd{left:auto;right:72px;flex-direction:row-reverse}
.p-cap.on-photo{position:absolute;top:648px;right:72px;margin:0}
.p-cap.on-photo.f1{top:608px}
.p-cap.on-photo.right{top:auto;bottom:42px;right:24px;width:360px;color:#fff;text-align:right}
.note{font-size:10.5px;color:#666;line-height:1.7;margin-top:10px}
/* 表紙 */
.cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,0) 30%,rgba(0,0,0,0) 62%,rgba(0,0,0,.5))}
.cover-en{position:absolute;left:72px;top:84px;color:#fff;font-family:Futura,"Century Gothic",sans-serif;font-size:15px;letter-spacing:.5em;font-weight:500}
.cover-en span{display:block;font-size:12px;letter-spacing:.3em;margin-top:10px;opacity:.85}
.cover-title{position:absolute;right:96px;top:96px;writing-mode:vertical-rl;color:#fff;font-size:88px;font-weight:600;letter-spacing:.14em;line-height:1.35;text-shadow:0 2px 20px rgba(0,0,0,.25)}
.cover-sub{position:absolute;right:372px;top:104px;writing-mode:vertical-rl;color:#fff;font-size:20px;letter-spacing:.35em;font-weight:400}
.cover-foot{position:absolute;left:72px;right:72px;bottom:72px;display:flex;justify-content:space-between;align-items:flex-end;color:#fff}
.cover-org{font-size:20px;font-weight:600;letter-spacing:.2em}
.cover-issue{font-family:Futura,"Century Gothic",sans-serif;font-size:13px;letter-spacing:.4em;margin-top:10px}
.cover-free{border:1.5px solid #fff;padding:10px 16px;text-align:center;font-family:Futura,"Century Gothic",sans-serif;font-size:18px;letter-spacing:.3em;line-height:1.4}
.cover-free span{font-family:"Hiragino Sans",sans-serif;font-size:9.5px;letter-spacing:.1em}
/* 目次 */
.toc{margin:6px 0 24px;border-top:1px solid #222}
.toc-row{display:flex;align-items:center;gap:20px;padding:11px 0;border-bottom:1px solid #D8D4CC}
.toc-n{font-family:Futura,"Century Gothic",sans-serif;font-size:28px;color:var(--theme);width:56px}
.toc-t{flex:1;display:flex;flex-direction:column;gap:6px}
.toc-t b{font-size:18px;font-weight:600;letter-spacing:.06em}
.toc-t span{font-size:12.5px;color:#666}
.toc-p{font-family:Futura,"Century Gothic",sans-serif;font-size:14px;color:#666;letter-spacing:.1em}
.greet{background:#F4F1EB;padding:30px 34px}
.sign{text-align:right;font-size:12.5px;margin-top:16px;letter-spacing:.1em;font-weight:400}
/* 特集 */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px}
.data,.menu{background:#F4F1EB;padding:22px 26px;margin-top:auto;margin-bottom:24px}
.data-h{font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-size:12px;letter-spacing:.3em;color:var(--theme);font-weight:600;margin-bottom:12px}
.data table{border-collapse:collapse;width:100%;font-size:11.5px;line-height:1.7}
.data th{text-align:left;font-weight:600;width:110px;padding:5px 0;vertical-align:top}
.data td{padding:5px 0;border-bottom:1px solid #E2DDD3}
.menu{margin-top:22px}
.menu-row{display:flex;align-items:baseline;gap:8px;font-size:12.5px;padding:6px 0}
.menu-row i{flex:1;border-bottom:1px dotted #999}
.menu-row b{font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-weight:500}
.f3-head{position:absolute;left:72px;bottom:560px}
.f3-row{display:grid;grid-template-columns:1fr 250px;gap:28px;align-items:start}
.menu.narrow{margin:0}
.bath{padding:8px 0;border-bottom:1px solid #E2DDD3;font-size:11.5px;display:flex;flex-direction:column;gap:3px}
.bath b{font-weight:600;font-size:12.5px}
/* 地図・案内 */
.p-map{width:100%;height:auto;display:block;margin:4px 0 16px}
.guide{width:100%;border-collapse:collapse;font-size:11.5px}
.guide th{background:#F4F1EB;font-weight:600;text-align:left;padding:8px 10px;border-top:1.5px solid #222}
.guide td{padding:8px 10px;border-bottom:1px solid #E2DDD3}
.guide .r{text-align:right;font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif}
.guide .c{text-align:center;font-family:Futura,"Century Gothic",sans-serif;color:var(--theme)}
/* 紙面の明朝体：題名・見出し・リード・本文。ラベル・表・数字はゴシックと Futura のまま */
.bleed{--mincho:"Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho","BIZ UDPMincho","MS PMincho",serif}
.p-title,.cover-title,.cover-sub,.p-lead,.p-body,.p-quote,.toc-t b,.shop-name,.back-blurb,.stop-body b,.tip b,.greet .p-h3,.legend .p-h3,.f3-head .p-title,.sign{font-family:var(--mincho)}
.p-title,.cover-title{font-weight:600;letter-spacing:.08em}
.p-body{font-size:12.6px;line-height:2;letter-spacing:.02em}
.p-lead{font-weight:500;letter-spacing:.04em}
.p-quote{font-weight:500;letter-spacing:.14em}
.shop-catch{font-family:var(--mincho)}

/* 柱・記号 */
.p-run{position:absolute;top:40px;left:72px;right:72px;display:flex;align-items:center;gap:12px;font-size:9.5px;letter-spacing:.18em;color:#888}
.p-run i{flex:1;height:1px;background:#CFCAC0}
.p-run.odd{flex-direction:row-reverse}
.ico{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:3px;background:var(--theme);color:#fff;font-size:10px;font-weight:600;margin-right:7px;flex:none;font-family:"Hiragino Sans",sans-serif}
.dl{display:flex;flex-direction:column;gap:5px;font-size:11px;line-height:1.5}
.dl > div{display:flex;align-items:center}
.cover-list{position:absolute;left:72px;bottom:190px;color:#fff;font-size:14px;line-height:2;letter-spacing:.08em;font-weight:400}
.cover-list b{display:inline-block;font-size:11px;border:1px solid #fff;padding:0 7px;margin-right:10px;line-height:1.7;font-weight:600}
.two{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:auto}
.two .greet{padding:24px 26px}
.legend{border:1px solid #D8D4CC;padding:22px 22px}
/* モデルコース */
.p-prof{width:100%;height:auto;display:block;margin:0 0 18px}
.course-wrap{display:grid;grid-template-columns:1fr 230px;gap:26px}
.stop{display:grid;grid-template-columns:24px 62px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #E2DDD3}
.stop-n{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--theme);color:var(--theme);display:grid;place-items:center;font-family:Futura,"Century Gothic",sans-serif;font-size:12px}
.stop-time{font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-size:15px;line-height:1.3}
.stop-time span{display:block;font-size:10px;color:#888;margin-top:3px}
.stop-body b{font-size:13.5px;font-weight:600}
.stop-body p{margin:4px 0 0;font-size:11.5px;line-height:1.75;color:#333}
.side .menu{margin:0 0 16px;padding:18px 18px}
.chk{font-size:11px;line-height:1.7;padding:3px 0}
.menu.warn{background:#fff;border:1px solid var(--theme)}
/* お店紹介 */
.shops{display:grid;grid-template-columns:1fr 1fr;gap:26px 30px}
.shop-catch{font-size:11px;color:var(--theme);margin-top:10px;letter-spacing:.05em}
.shop-name{font-size:17px;font-weight:600;margin:2px 0 6px}
.shop .p-body{font-size:11.5px;line-height:1.8;margin-bottom:8px}
.memo{margin-top:auto;border-top:1.5px solid #222;padding-top:12px;font-size:11.5px;line-height:1.85}
.memo b{color:var(--theme);margin-right:12px;font-weight:600}
/* 星空コラム */
.stars-row{display:grid;grid-template-columns:330px 1fr;gap:30px;margin-bottom:24px}
.p-stars{width:330px;height:330px;display:block}
.tip{display:flex;gap:12px;padding:9px 0;border-bottom:1px solid #E2DDD3}
.tip > span{font-family:Futura,"Century Gothic",sans-serif;font-size:24px;color:var(--theme);width:22px;line-height:1.1}
.tip b{font-size:13.5px;font-weight:600}
.tip p{margin:3px 0 0;font-size:11.5px;line-height:1.75}
/* 地図 */
.spots{display:grid;grid-template-columns:1fr 1fr;gap:10px 28px;margin:6px 0 8px}
.spots > div{display:flex;gap:10px;font-size:11.5px;line-height:1.5}
.spots b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--theme);color:#fff;font-family:Futura,"Century Gothic",sans-serif;font-size:11px;font-weight:500;flex:none}
.spots strong{display:block;font-weight:600;font-size:12.5px}
.spots span{color:#555}
/* 催し・奥付 */
.ev{margin:22px 0 0}
.ev-row{display:grid;grid-template-columns:200px 170px 1fr;gap:10px;font-size:11.5px;padding:7px 0;border-bottom:1px solid #E2DDD3}
.ev-row b{font-family:Futura,"Century Gothic","Hiragino Sans","Yu Gothic",sans-serif;font-weight:500}
.ev-row strong{font-weight:600}
.okuduke{margin-top:auto;border:1px solid #222;padding:16px 20px;font-size:10.5px}
.ok-title{font-size:13px;font-weight:600;margin-bottom:8px}
.okuduke table{border-collapse:collapse;width:100%}
.okuduke th{text-align:left;font-weight:600;width:80px;padding:2px 0;vertical-align:top}
.okuduke td{padding:2px 0}
.okuduke tr{display:inline-table;width:49%}
/* 裏表紙（表4） */
.back-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,.35))}
.back-bc{position:absolute;right:72px;top:84px;background:#fff;padding:16px 18px 12px}
.bc-box{display:flex;flex-direction:column;gap:10px}
.bc-row{display:flex;align-items:center;gap:14px}
.ean{width:180px;height:102px;display:block}
.bc-txt{font-family:"OCR B",OCRB,Menlo,monospace;font-size:11px;line-height:1.6;color:#111;white-space:nowrap}
.bc-txt b{font-weight:400}
.back-blurb{position:absolute;left:72px;right:72px;bottom:210px;color:#fff;font-size:19px;line-height:2;letter-spacing:.12em;font-weight:400;text-align:center}
.back-pub{position:absolute;left:72px;right:72px;bottom:72px;display:flex;justify-content:space-between;align-items:flex-end;color:#fff;font-size:20px;font-weight:600;letter-spacing:.3em}
.back-pub small{display:block;font-size:11px;letter-spacing:.15em;font-weight:400;margin-top:8px}
.back-pub .p-qr{width:84px;height:84px;margin:0;border:4px solid #fff}
.stamp-on-page{position:absolute;right:20px;top:250px;transform:rotate(-12deg)}

/* 年間 ISBN 管理表（A4・社内書類） */
.sheet-paper.a4{width:840px;height:1188px;color:#1E1E1E;font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","YuGothic",Meiryo,sans-serif;font-weight:300}
.list-page{position:absolute;inset:0;padding:56px 56px 48px;display:flex;flex-direction:column}
.list-top{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #222;padding-bottom:12px;margin-bottom:12px}
.list-pub{font-size:11px;letter-spacing:.2em;color:#555}
.list-title{font-size:20px;font-weight:600;letter-spacing:.06em;margin-top:6px}
.list-meta{font-size:9.5px;line-height:1.6;text-align:right;color:#444}
.list-meta b{display:inline-block;border:1.5px solid #D0342C;color:#D0342C;padding:0 8px;font-size:11px;margin-bottom:4px;font-weight:600}
table.list{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10.5px}
table.list th{background:#EEF0F2;font-weight:600;text-align:left;padding:5px 6px;border:1px solid #BFC5CB;font-size:9.5px}
table.list td{border:1px solid #BFC5CB;padding:3px 6px;vertical-align:middle;line-height:1.45}
table.list th:nth-child(1){width:78px}table.list th:nth-child(2){width:138px}table.list th:nth-child(3){width:150px}
table.list th:nth-child(4){width:228px}table.list th:nth-child(5){width:40px}
table.list td.m span,table.list td.n span{display:block;font-size:9px;color:#666}
table.list td.t{font-weight:600}
table.list td.n{font-family:"OCR B",OCRB,Menlo,monospace;font-size:10px}
table.list td.b{white-space:nowrap;padding:3px 4px}
table.list td.b .ean{display:inline-block;width:104px;height:59px;margin-right:4px}
table.list td.p,table.list td.s{text-align:center}
.mini-stamp{width:48px;height:48px;display:inline-block;mix-blend-mode:multiply;opacity:.92}
table.list tr.cur td{background:#FFF8E1}
table.list tr.hit td{background:#FFE8E3}
table.list tr.hit{outline:5px solid #FF2A1A;outline-offset:-2px}
.list-note{margin-top:14px;font-size:9.5px;line-height:1.8;color:#333}
.list-foot{margin-top:auto;display:flex;justify-content:space-between;font-size:9px;color:#888;border-top:1px solid #ccc;padding-top:8px}
.file + .file{margin-top:8px}
.file-icon.doc{background:#5C6A78}

/* ---------- ③ バーコード確認 ---------- */
.bc-wrap{position:fixed;inset:0;z-index:15;background:rgba(0,0,0,.4);display:flex;align-items:flex-end;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.bc-wrap.open{opacity:1;visibility:visible}
.bc-panel{width:100%;max-width:560px;height:calc(100% - var(--safe-t) - 28px);background:var(--bg);border-radius:16px 16px 0 0;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.bc-wrap.open .bc-panel{transform:none}
.bc-head{display:flex;align-items:center;justify-content:space-between;padding:14px 8px 10px 18px;border-bottom:1px solid var(--line)}
.bc-head b{display:block;font-size:17px}
.bc-head span{font-size:12px;color:var(--muted)}
.text-btn.right{text-align:right}
.bc-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px}
.bc-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:12px;overflow:hidden}
.bc-card .bc-box{gap:14px}
.bc-card .bc-row{flex-direction:column;align-items:flex-start;gap:4px}
.bc-card .ean{width:100%;max-width:300px;height:auto}
.bc-card .bc-txt{font-size:12px;white-space:normal}
.scanline{position:absolute;left:0;right:0;height:2px;background:#FF2A1A;box-shadow:0 0 10px 2px rgba(255,42,26,.5);top:0;opacity:0;pointer-events:none}
.scanline.run{animation:scan 1.6s ease-in-out forwards}
@keyframes scan{0%{top:10%;opacity:1}45%{top:42%;opacity:1}55%{top:55%;opacity:1}100%{top:88%;opacity:0}}
.hanko{position:absolute;right:14px;top:40%;width:96px;height:96px;opacity:0;transform:scale(1.5) rotate(-8deg);pointer-events:none}
.hanko svg,.seal{width:100%;height:100%;display:block}
.hanko.on{animation:hanko .35s cubic-bezier(.3,1.6,.5,1) forwards}
@keyframes hanko{to{opacity:1;transform:scale(1) rotate(-8deg)}}
.bc-result{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-top:12px;font-size:13px;line-height:1.7}
.bc-result .r-h{font-size:12px;color:var(--muted);margin-top:6px}
.bc-result .r-h:first-child{margin-top:0}
.bc-result .code{font-family:Menlo,monospace;font-size:14px;letter-spacing:.04em}
.bc-result .ok{color:#2E8B57;font-weight:600}
@media (prefers-color-scheme:dark){.bc-result .ok{color:#6FCF97}}
.bc-list-h{font-size:13px;color:var(--muted);margin:18px 4px 8px}
.bc-list{display:flex;flex-direction:column;gap:8px}
.bc-item{display:flex;gap:12px;align-items:flex-start;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.55}
.bc-item .box{width:22px;height:22px;border-radius:6px;border:1.5px solid var(--line);flex:none;display:grid;place-items:center;margin-top:1px}
.bc-item[aria-checked="true"]{border-color:var(--blue)}
.bc-item[aria-checked="true"] .box{background:var(--blue);border-color:var(--blue)}
.bc-item[aria-checked="true"] .box::after{content:"";width:10px;height:6px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.bc-item small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.bc-msg{font-size:13px;color:var(--accent);min-height:1.6em;margin:10px 4px 0}
.bc-foot{padding:10px 16px calc(var(--safe-b) + 10px);border-top:1px solid var(--line);display:flex;align-items:center;gap:14px}
.seal-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px}
.seal-info b{font-size:15px}
.seal-info span{color:var(--muted)}
.link-btn{color:var(--blue);font-size:13px;text-align:left;padding:6px 0;min-height:32px}
.seal-edit{display:flex;gap:8px;align-items:center}
.seal-edit[hidden]{display:none}
.seal-edit input{width:7em;font:inherit;font-size:16px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}
.seal-box{position:relative;width:96px;height:96px;flex:none;border:2px dashed var(--line);border-radius:50%;background:var(--panel);display:grid;place-items:center}
.seal-box:active{transform:scale(.96)}
.seal-box.ready{border-color:#D0342C}
.seal-hint{font-size:11px;line-height:1.4;color:var(--muted);text-align:center}
.seal-box.ready .seal-hint{color:#D0342C}
.seal-box .hanko{position:absolute;inset:2px;width:auto;height:auto;right:auto;top:auto}
.seal-box.done{border-color:transparent;background:#fff}
.seal-box.done .seal-hint{visibility:hidden}
.pulse{outline:14px solid #FF2A1A;outline-offset:10px;animation:pulse .9s ease-in-out 2}
@keyframes pulse{50%{outline-color:rgba(255,42,26,.15)}}
.bc-sec-h{font-size:13px;color:var(--muted);margin:18px 4px 8px}
.bc-sheet{background:#8A9097;border-radius:12px;padding:10px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.bc-sheet .sheet-paper{margin:0 auto;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.bc-sheet-hint{font-size:12px;color:var(--muted);margin:6px 4px 0}

/* ---------- ④ 返信・送信 ---------- */
.sheet-wrap{position:fixed;inset:0;z-index:20;background:rgba(0,0,0,.35);display:flex;align-items:flex-end;justify-content:center;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.sheet-wrap.open{opacity:1;visibility:visible}
.sheet{width:100%;max-width:560px;background:var(--bg);border-radius:16px 16px 0 0;padding:18px 16px calc(var(--safe-b) + 16px);transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.sheet-wrap.open .sheet{transform:none}
.sheet-head{font-size:13px;color:var(--muted);margin:0 4px 10px}
.choices{display:flex;flex-direction:column;gap:8px}
.choice{text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:15px;line-height:1.6;display:flex;gap:10px;align-items:flex-start}
.choice .dot{width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line);flex:none;margin-top:2px;display:grid;place-items:center}
.choice[aria-checked="true"]{border-color:var(--blue);background:var(--blue-soft)}
.choice[aria-checked="true"] .dot{border-color:var(--blue)}
.choice[aria-checked="true"] .dot::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--blue)}
.sheet-btns{display:grid;grid-template-columns:1fr 2fr;gap:10px;margin-top:14px}
.sending{display:flex;flex-direction:column;align-items:center;padding:26px 0 18px;gap:12px;min-height:200px;justify-content:center}
.spinner{width:44px;height:44px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--blue);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.check{width:52px;height:52px;display:none;fill:none;stroke:var(--blue);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.check circle{stroke-dasharray:132;stroke-dashoffset:132}
.check path{stroke-dasharray:32;stroke-dashoffset:32}
.check.on{display:block}
.check.on circle{animation:draw .45s ease-out forwards}
.check.on path{animation:draw .3s .3s ease-out forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.sending-text{font-size:17px;font-weight:600}
.sending-sub{font-size:13px;color:var(--muted);min-height:1.4em}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .spinner{animation:spin 1.6s linear infinite!important}
}

/* ---------- 押印モード（電子印鑑） ---------- */
.seal-go{width:auto;flex:none;padding:0 18px;min-height:48px}
.seal-go:not(.ready){opacity:.6}
.stamp-bar{background:var(--bg);border-top:1px solid var(--line);padding:10px 14px calc(var(--safe-b) + 10px);display:flex;flex-direction:column;gap:8px}
.stamp-bar[hidden]{display:none}
.stamp-head{display:flex;gap:10px;align-items:baseline;font-size:12.5px;color:var(--muted);line-height:1.5}
.stamp-head b{color:var(--ink);font-size:15px;flex:none}
.stamp-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stamp-choice{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:left;font-size:14px;min-width:0}
.stamp-choice .seal{width:44px;height:44px;flex:none;background:#fff;border-radius:50%}
.stamp-choice small{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stamp-choice > span{min-width:0}
.stamp-choice[aria-checked="true"]{border-color:var(--blue);background:var(--blue-soft)}
.stamp-msg{font-size:12.5px;color:var(--accent);min-height:1.2em}
.stamp-btns{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:8px}
.stamp-btns button{min-height:44px;font-size:15px}
table.list td.target{outline:3px dashed #2F80ED;outline-offset:-4px;background:rgba(47,128,237,.08)}
.seal-preview{display:inline-block;width:48px;height:48px;opacity:.5}
.seal-preview .seal{width:100%;height:100%;display:block}
.pin-wrap{position:fixed;inset:0;z-index:30;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.pin-wrap.open{opacity:1;visibility:visible}
.pin{width:100%;max-width:340px;background:var(--bg);border-radius:16px;padding:20px}
.pin-title{font-size:17px;font-weight:600;text-align:center}
.pin-text{font-size:13px;color:var(--muted);line-height:1.6;text-align:center;margin:8px 0 14px}
#pin-input{width:100%;font-size:24px;letter-spacing:.6em;text-align:center;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-family:inherit}
.pin-msg{font-size:12.5px;color:var(--accent);min-height:1.4em;margin-top:6px;text-align:center}
.pin-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.pin .sending{min-height:150px;padding:10px 0}
.pin-log{font-size:12.5px;display:flex;flex-direction:column;gap:4px;border-top:1px solid var(--line);padding-top:10px;line-height:1.5}
.pin-log div{display:flex;gap:10px}
.pin-log b{width:4em;flex:none;color:var(--muted);font-weight:400}
.pin-log span{min-width:0;word-break:break-all}

/* ---------- Inkline：起動画面（社内チャットらしく長めに） ---------- */
.boot{position:fixed;inset:0;z-index:100;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity .45s ease}
.boot.gone{opacity:0;pointer-events:none}
.boot-center{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:-8vh}
.boot-mark{width:92px;height:92px;margin-bottom:8px}
.boot-name{font-family:"Avenir Next","Helvetica Neue",Futura,sans-serif;font-size:30px;font-weight:600;letter-spacing:.02em;color:var(--ink)}
.boot-sub{font-size:13px;color:var(--muted);letter-spacing:.1em}
.boot-bar{width:180px;height:3px;border-radius:3px;background:var(--line);overflow:hidden;margin-top:26px}
.boot-bar i{display:block;height:100%;width:0;background:#2F6E93}
.boot-status{font-size:12px;color:var(--muted);min-height:1.4em}
.boot-foot{position:absolute;left:0;right:0;bottom:calc(var(--safe-b) + 28px);text-align:center;font-size:11px;line-height:1.8;color:var(--muted)}

/* 添付・既読 */
.read{min-height:1em}
.attach{display:flex;align-items:center;gap:10px;margin:0 12px;padding:8px 6px 8px 10px;border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;background:var(--panel)}
.attach[hidden]{display:none}
.attach-name{flex:1;min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-icon.small{width:28px;height:34px;font-size:8px;padding-bottom:4px}
.file-icon.small::before{border-width:0 8px 8px 0}
.icon-btn.small{width:36px;height:36px}
.icon-btn.small svg{width:18px;height:18px}

/* 共有メニュー */
.act-wrap{position:fixed;inset:0;z-index:25;background:rgba(0,0,0,.35);display:flex;align-items:flex-end;justify-content:center;padding:0 10px calc(var(--safe-b) + 10px);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.act-wrap.open{opacity:1;visibility:visible}
.act{width:100%;max-width:520px;display:flex;flex-direction:column;gap:8px;transform:translateY(30px);transition:transform .25s ease}
.act-wrap.open .act{transform:none}
.act-group{background:var(--panel);border-radius:14px;overflow:hidden}
.act-file{font-size:12px;color:var(--muted);text-align:center;padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.act-btn{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:0 18px;font-size:17px;color:var(--blue);background:var(--panel);border-bottom:1px solid var(--line);text-align:left}
.act-group .act-btn:last-child{border-bottom:0}
.act-cancel{justify-content:center;border-radius:14px;font-weight:600;border:0}
.act-ico{width:30px;height:30px;border-radius:8px;background:var(--soft);display:grid;place-items:center;font-size:15px;color:var(--ink)}
.seal-ico{background:#B8292F;color:#fff;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:700}

/* ---------- 押印アプリ（電子印鑑）：チャットとは別のアプリに見える配色 ---------- */
.seal-app{position:fixed;inset:0;z-index:30;background:#3A3D42;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);visibility:hidden;color:#fff}
.seal-app.open{transform:none;visibility:visible}
.seal-boot{position:absolute;inset:0;z-index:5;background:#B8292F;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-size:16px;letter-spacing:.3em;transition:opacity .35s}
.seal-boot.gone{opacity:0;pointer-events:none}
.seal-boot-mark{width:72px;height:72px;border:4px solid #fff;border-radius:50%;display:grid;place-items:center;font-size:34px;font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:700;letter-spacing:0}
.seal-bar{display:flex;align-items:center;gap:6px;padding:calc(var(--safe-t) + 6px) 6px 6px;background:#24262A}
.text-btn.light{color:#FFB4B4}
.text-btn.right{text-align:right}
.seal-title{flex:1;min-width:0;text-align:center;font-size:15px;font-weight:600}
.seal-title small{display:block;font-size:11px;font-weight:400;color:#B9BEC6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seal-stage{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;padding:12px;display:flex;flex-direction:column;align-items:flex-start;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none}
.seal-stage .sheet-paper{margin:0 auto}
.seal-tools{background:#24262A;padding:8px 12px calc(var(--safe-b) + 10px);display:flex;flex-direction:column;gap:8px}
.seal-hint{font-size:12.5px;color:#D7DBE0;min-height:1.3em}
.seal-row{display:flex;gap:10px;align-items:stretch}
.seal-picks{display:flex;gap:8px;flex:1;min-width:0}
.seal-pick{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 8px;border-radius:10px;border:1.5px solid transparent;color:#fff;font-size:11px;flex:1;min-width:0}
.seal-pick .seal{width:48px;height:48px;background:#fff;border-radius:50%}
.seal-pick[aria-checked="true"]{border-color:#FF8A8A;background:rgba(255,255,255,.08)}
.seal-side{display:flex;flex-direction:column;gap:6px}
.tool-btn{min-height:30px;padding:0 12px;border-radius:8px;background:#3A3D42;color:#fff;font-size:12.5px}
.stamp-abs{position:absolute;z-index:3;mix-blend-mode:multiply;touch-action:none}
.stamp-abs .seal{width:100%;height:100%;display:block}
.seal-stage .stamp-abs{cursor:grab}
.stamp-abs.just{animation:press .28s cubic-bezier(.3,1.6,.5,1)}
.stamp-abs.drag{outline:2px dashed #2F80ED;outline-offset:4px;cursor:grabbing}
@keyframes press{from{transform:scale(1.35);opacity:.3}to{transform:none;opacity:1}}
.seal-setup,.seal-saving{position:absolute;inset:0;z-index:6;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:20px}
.seal-setup[hidden],.seal-saving[hidden]{display:none}
.seal-setup-box,.seal-saving-box{width:100%;max-width:340px;background:#fff;color:#22272C;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}
.seal-setup-title{font-size:17px;font-weight:600;text-align:center}
.seal-setup-box p{margin:0;font-size:12.5px;color:#5A6168;line-height:1.6}
.seal-setup-box label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#5A6168}
.seal-setup-box input{font:inherit;font-size:16px;padding:8px 10px;border:1px solid #DDE2E6;border-radius:8px;color:#22272C;background:#fff}
.seal-setup-box input[readonly]{background:#F1F3F5}
.seal-setup-preview{display:flex;justify-content:center;gap:16px}
.seal-setup-preview .seal{width:64px;height:64px}
.seal-setup-msg{font-size:12.5px;color:#D2232A;min-height:1.2em;text-align:center}
.seal-saving-box{align-items:center;text-align:center}
.seal-saving-box .sending-text{color:#22272C}
.seal-saving-file{font-size:12px;color:#5A6168;word-break:break-all}
.seal-saving-box .primary{margin-top:6px}

/* ---------- ログイン ---------- */
.login{position:fixed;inset:0;z-index:90;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:24px 24px calc(var(--safe-b) + 24px);opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s}
.login.open{opacity:1;visibility:visible}
.login-box{width:100%;max-width:360px;display:flex;flex-direction:column;gap:12px}
.login-mark{width:56px;height:56px;align-self:center}
.login-title{text-align:center;font-size:18px;font-weight:600;margin-bottom:8px}
.login-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.login-field input{font:inherit;font-size:17px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);outline:none}
.login-field input:focus{border-color:#2F6E93}
.pw-wrap{position:relative;display:block}
.login-field .pw{width:100%;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent}
.login-field .pw::selection{background:transparent}
.pw-dots{position:absolute;left:15px;right:15px;top:0;bottom:0;display:flex;align-items:center;overflow:hidden;pointer-events:none;color:var(--ink);font-size:15px;letter-spacing:.14em}
.pw:focus + .pw-dots::after{content:"";width:2px;height:22px;margin-left:1px;background:#2F6E93;animation:caret 1.1s steps(1) infinite;flex:none}
@keyframes caret{50%{opacity:0}}
.login-keep{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.login-keep input{width:18px;height:18px;accent-color:#2F6E93}
.login-err{font-size:13px;color:#D2232A;min-height:1.3em;line-height:1.5}
.login-box .primary{background:#2F6E93;margin-top:4px}
.login-box .primary:disabled{opacity:.7}
.login-forgot{align-self:center}
.login-foot{font-size:11px;color:var(--muted);text-align:center;line-height:1.6;margin-top:6px}
.shake{animation:shake .4s}
@keyframes shake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}

/* ---------- 業務チャットらしい、うっすら色の付いた背景 ---------- */
:root{--chat-bg:#E8EDF2}
@media (prefers-color-scheme:dark){:root{--chat-bg:#1F252C}}
.log{background:var(--chat-bg)}
.day{background:rgba(255,255,255,.75)}
@media (prefers-color-scheme:dark){.day{background:rgba(255,255,255,.08)}}
.bubble{border-color:transparent;box-shadow:0 1px 1px rgba(0,0,0,.06)}

/* ---------- チャットに貼った紙面のスクショ ---------- */
.shot{position:relative;display:block;overflow:hidden;border-radius:10px;margin-top:6px;background:#fff;border:1px solid var(--line);padding:0;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.shot-inner{position:absolute;left:0;top:0}
.shot-inner .sheet-paper{box-shadow:none}
.note-layer{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.shot-view{position:fixed;inset:0;z-index:35;background:rgba(0,0,0,.88);display:flex;flex-direction:column}
.shot-view-bar{display:flex;justify-content:space-between;align-items:center;padding:calc(var(--safe-t) + 6px) 8px 6px;color:#fff;font-size:13px}
.shot-view-bar .text-btn{color:#fff}
.shot-view-body{flex:1;overflow:auto;display:flex;align-items:center;justify-content:center;padding:12px}
.shot-view-body .shot{margin:0}

/* ---------- 紙の拡大（外枠＋transform） ---------- */
.sheet-frame{flex:none;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.sheet-frame > .sheet-paper{box-shadow:none}
.sheet-paper{transform-origin:0 0}
.seal-stage .sheet-frame{margin:0 auto}
.seal-stage .sheet-paper{margin:0}
/* ---------- キーボードが出ている間 ---------- */
.kb .chat{top:var(--vvt);bottom:auto;height:var(--vvh)}
.kb .composer{padding-bottom:8px}
.kb .login,.kb .dlg,.kb .seal-setup{top:var(--vvt);bottom:auto;height:var(--vvh)}
.kb .login{align-items:flex-start;overflow:auto}
.kb .login-mark,.kb .login-foot{display:none}
.boot-bar i{transition:width .9s ease}
/* ---------- 小さな確認の窓 ---------- */
.dlg{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.dlg.open{opacity:1;visibility:visible}
.dlg-box{width:100%;max-width:340px;max-height:100%;overflow:auto;background:var(--bg);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}
.dlg-title{font-size:16px;font-weight:600;text-align:center}
.dlg-text{margin:0;font-size:13px;color:var(--muted);text-align:center;line-height:1.6}
.dlg-note{font-size:12px;color:var(--muted)}
.dlg-msg{font-size:12.5px;color:var(--blue);min-height:1.3em}
.dlg-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.member{display:flex;align-items:center;gap:12px;padding:6px 0;font-size:14px}
.member small{display:block;font-size:11.5px;color:var(--muted)}

/* 隠れている通知の影が上に漏れないように */
.toast{visibility:hidden;transition:transform .3s ease,visibility .3s}
.toast.show{visibility:visible}

.kb .seal-setup,.kb .dlg{align-items:flex-start;overflow:auto}

/* 指が触れただけで文字が選ばれないように（入力欄と吹き出しの文は除く） */
.boot,.bar,.composer,.viewer,.act-wrap,.seal-app,.login,.dlg,.toast,.day,.who,.meta{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea{-webkit-user-select:text;user-select:text}

/* 画面ごとの拡大を止める（指での移動だけ許す） */
*{touch-action:pan-x pan-y}
.stamp-abs,.stamp-abs *{touch-action:none}
