:root{--yellow:#FFD60A;--ink:#181b20;--muted:#565c64;--line:#d9ddd9;--panel:#fffffff2;--soft:#fff7c7;font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif;color:var(--ink);background:#eeefe9}*{box-sizing:border-box}body{margin:0}button,a,input,textarea{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:10px 16px;font-weight:650}button:hover{background:var(--soft)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #967c00;outline-offset:3px}button.primary{background:var(--yellow);border-color:var(--yellow)}button[disabled]{opacity:.45;cursor:default}a{color:inherit}button[aria-pressed=true]{background:var(--soft);border-color:#a48b00}[hidden]{display:none!important}.brand{font-size:18px;font-weight:750;display:flex;align-items:center;gap:12px}.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--yellow);position:relative}.brand-mark:before,.brand-mark:after{content:'';position:absolute;border:2px solid var(--ink);width:16px;height:11px;top:7px;left:6px}.brand-mark:after{top:12px;left:11px;background:var(--yellow)}.app-header{height:68px;padding:12px 22px;background:var(--panel);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}.header-actions{display:flex;gap:8px;align-items:center}.presentation{height:100dvh;display:grid;grid-template-rows:68px minmax(0,1fr) 54px}.viewport{position:relative;min-width:0;min-height:0;overflow:hidden;touch-action:none;background:#eeefe9;isolation:isolate}.stage{position:absolute;width:1920px;height:1080px;left:50%;top:50%;transform-origin:center center;container-type:inline-size}.slide{position:relative;width:1920px;height:1080px;background:#fff;overflow:hidden;color:var(--ink);isolation:isolate}.slide .obj{position:absolute;min-width:0;min-height:0}.slide .text{margin:0}.slide [data-focus]{cursor:zoom-in}.slide h1,.slide h2,.slide h3,.slide p{margin:0}.slide .headline{font-size:100px;font-weight:780;line-height:1.25;letter-spacing:-.045em}.slide .panel{background:#ffffffed;border:2px solid #e2e3dc;border-radius:36px;box-shadow:0 18px 40px #1c1d2010}.slide .has-focus{}.slide.has-focus>:not(.focus-shade):not(.focused):not(style){filter:blur(10px);opacity:.55}.focus-shade{position:absolute;inset:0;z-index:90;background:#ffffffad;backdrop-filter:blur(12px);overflow:hidden}.focus-rays{position:absolute;inset:0;background:repeating-conic-gradient(from 10deg at 50% 50%,#FFD60A70 0deg 1deg,transparent 1deg 15deg);mask-image:radial-gradient(transparent 12%,#000 40%,transparent 74%);animation:focus-spin 10s linear infinite}.focus-shade i{position:absolute;left:960px;top:540px;width:15px;height:15px;background:var(--yellow);border-radius:50%;transform:rotate(var(--angle)) translateX(var(--distance));box-shadow:0 0 20px #FFD60A;animation:focus-particle 1.7s ease-in-out infinite alternate}.focused{position:absolute!important;z-index:100!important;box-shadow:0 30px 80px #0003!important;filter:none!important;opacity:1!important;cursor:zoom-out!important}.presentation-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 20px;background:var(--panel);border-top:1px solid var(--line)}.nav-controls,.pen-colors{display:flex;align-items:center;gap:8px}.nav-controls button{padding:6px 14px}.counter{font-variant-numeric:tabular-nums;min-width:70px;text-align:center;color:var(--muted)}.pen-colors button{width:27px;height:27px;border-radius:50%;padding:0;background:var(--color);border:2px solid #fff;box-shadow:0 0 0 1px #aaa}.pen-colors button[aria-pressed=true]{box-shadow:0 0 0 3px #181b20;background:var(--color)}.hint{font-size:13px;color:var(--muted)}#pen{position:absolute;inset:0;width:100%;height:100%;z-index:200;pointer-events:none}.edge-hint{position:absolute;top:50%;padding:12px;border-radius:50%;background:#ffffffe0;color:#333;pointer-events:none;opacity:0;z-index:210;transition:opacity .2s}.edge-hint.left{left:12px}.edge-hint.right{right:12px}.edge-hint.show{opacity:1}.jump-indicator{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);font-size:72px;font-weight:800;background:var(--yellow);padding:10px 36px;border-radius:30px;z-index:500;pointer-events:none}.fullscreen .app-header,.fullscreen .presentation-footer{display:none}.fullscreen.presentation{grid-template-rows:minmax(0,1fr)}.fullscreen .viewport{background:#17191e}.modal{border:1px solid var(--line);border-radius:24px;background:#fffffff7;color:var(--ink);width:min(960px,92vw);max-height:85dvh;padding:24px;box-shadow:0 20px 90px #0003}.modal::backdrop{background:#181b2080;backdrop-filter:blur(8px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.modal-head h2{margin:0}.slide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.slide-list button{text-align:left;display:flex;align-items:center;gap:12px;white-space:normal}.slide-list button b{background:var(--soft);padding:7px 10px;border-radius:9px}.slide-list button.current{border:2px solid #ac8b00;background:var(--soft)}.error-page{max-width:700px;margin:15vh auto;padding:36px;border-radius:28px;background:var(--panel);border:1px solid var(--line)}.error-page h1{font-size:30px;line-height:1.4}.error-page p{line-height:1.8;color:var(--muted)}.presenter{height:100dvh;display:grid;grid-template-rows:68px minmax(0,1fr) 64px}.presenter-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;padding:20px;overflow:auto;min-height:0}.preview-stack{display:flex;flex-direction:column;gap:16px;min-width:0}.preview-panel,.notes-panel,.metrics-panel{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:18px;min-width:0;box-shadow:0 8px 32px #1c1d2006}.preview-label{display:flex;justify-content:space-between;gap:12px;font-size:15px;color:var(--muted);margin-bottom:10px}.preview-label strong{color:var(--ink)}.preview-viewport{aspect-ratio:16/9;width:100%;background:#fff;border-radius:12px;border:1px solid var(--line);min-height:0}.next-panel{width:68%;align-self:flex-end}.speaker-stack{display:flex;flex-direction:column;gap:16px;min-width:0;min-height:0}.notes-panel{display:flex;flex-direction:column;flex:1;min-height:280px}.notes-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:10px}.notes-head h2{font-size:19px;margin:0}#notes{width:100%;min-height:240px;flex:1;resize:vertical;border:1px solid var(--line);border-radius:15px;padding:18px;background:#fffef7;color:var(--ink);font-size:26px;line-height:1.65}#notes-status{font-size:14px;color:var(--muted)}.metrics-panel{display:flex;gap:20px;justify-content:space-between;align-items:center}.metric{display:flex;flex-direction:column;gap:5px}.metric small{color:var(--muted)}.metric strong{font-size:32px;font-variant-numeric:tabular-nums}.presenter-footer{background:var(--panel);border-top:1px solid var(--line);padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.connection{font-size:14px;color:#7e3027;display:flex;align-items:center;gap:8px}.connection:before{content:'';width:9px;height:9px;background:#c64739;border-radius:50%}.connection.ok{color:#286a37}.connection.ok:before{background:#31a347;box-shadow:0 0 9px #31a34780}.settings-list{display:grid;gap:18px}.settings-list label{display:flex;gap:12px;align-items:center;font-size:18px}.settings-list input{width:20px;height:20px;accent-color:var(--yellow)}.loading{display:grid;place-items:center;height:100dvh;color:var(--muted)}@keyframes focus-spin{to{transform:rotate(360deg)}}@keyframes focus-particle{to{opacity:.3;transform:rotate(var(--angle)) translateX(calc(var(--distance) + 70px)) scale(.6)}}@media(max-width:800px){.app-header{height:60px;padding:10px 12px}.presentation{grid-template-rows:60px minmax(0,1fr) 54px}.brand{font-size:14px;gap:8px}.brand-mark{width:28px;height:28px;flex-shrink:0}.header-actions button{padding:8px 10px;font-size:12px}.presentation-footer .hint{display:none}.presentation-footer{padding:8px 10px}.nav-controls{gap:4px}.nav-controls button{padding:6px 10px}.counter{min-width:53px;font-size:12px}.pen-colors{gap:7px}.pen-colors button{width:23px;height:23px}.presenter{grid-template-rows:60px minmax(0,1fr) auto}.presenter-layout{grid-template-columns:1fr;padding:12px;gap:12px}.presenter-footer{flex-wrap:wrap;padding:10px 12px}.next-panel{width:65%}.slide-list{grid-template-columns:1fr}#notes{font-size:23px;min-height:300px}.presenter .header-actions{gap:5px}.presenter .brand{max-width:100px}.presenter .header-actions .primary{max-width:180px;white-space:normal}.metrics-panel{gap:10px}.metric strong{font-size:27px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media print{.app-header,.presentation-footer,#pen,.edge-hint{display:none}.presentation{display:block;width:1920px;height:1080px}.viewport{width:1920px;height:1080px}.stage{transform:translate(-50%,-50%)!important}.slide *{animation:none!important}}

@media(max-width:500px){.presentation .header-actions button{white-space:nowrap;padding:8px 9px}.presentation .brand{min-width:0}.presentation .brand>span:last-child{font-size:12px;line-height:1.4}.presentation .app-header{gap:8px}.presenter .app-header{height:auto;min-height:60px}.presenter .header-actions{flex-wrap:wrap;justify-content:flex-end}.presenter .brand{max-width:none;font-size:12px}.presenter{grid-template-rows:auto minmax(0,1fr) auto}}
@media(min-width:801px){.preview-stack{display:grid;grid-template-rows:minmax(0,1.45fr) minmax(0,1fr);min-height:0}.preview-stack .preview-panel{display:flex;flex-direction:column;min-height:0}.preview-stack .preview-viewport{aspect-ratio:auto;flex:1;min-height:0}.preview-stack .next-panel{height:100%;align-self:stretch;justify-self:end}.preview-stack:has(.current-panel[hidden]),.preview-stack:has(.next-panel[hidden]){grid-template-rows:minmax(0,1fr)}}
/* 直下部品は必ず舞台座標。部品内のrelative配置とは分ける。 */
.slide>.obj{position:absolute!important}
@media(max-width:500px){.presenter .brand>span:last-child{white-space:nowrap}}

/* 5段目：発表者ビューの録音（相手に見せる画面には出さない） */
#rec-start{border-color:#e5322d55;color:#a3261c;font-weight:700}#rec-start:hover{background:#fff1ef}
.rec-bar{display:flex;align-items:center;gap:10px;padding:5px 6px 5px 14px;border:1px solid #e5322d66;border-radius:14px;background:#fff6f4}
.rec-dot{width:12px;height:12px;border-radius:50%;background:#e5322d;box-shadow:0 0 0 0 #e5322d80;animation:rec-pulse 1.4s infinite}
.rec-bar.paused .rec-dot{background:#9a9e96;animation:none}.rec-bar.saving .rec-dot{background:#c9a400;animation:none}
@keyframes rec-pulse{0%{box-shadow:0 0 0 0 #e5322d80}70%{box-shadow:0 0 0 9px #e5322d00}100%{box-shadow:0 0 0 0 #e5322d00}}
.rec-bar strong{font-variant-numeric:tabular-nums;font-size:18px;min-width:3.2em}
.rec-bar #rec-state{font-size:13px;color:var(--muted);white-space:nowrap}.rec-bar #rec-state.warn{color:#a3261c;font-weight:700}
.rec-bar button{padding:7px 12px;font-size:13px;white-space:nowrap}.rec-bar .rec-stop{background:#e5322d;border-color:#e5322d;color:#fff;font-weight:700}.rec-bar .rec-stop:disabled,.rec-bar button:disabled{opacity:.5;cursor:default}
.rec-msg{margin:0;font-size:14px;font-weight:700;color:#286a37;white-space:nowrap}.rec-msg[data-kind=error]{color:#a3261c;white-space:normal;max-width:380px;line-height:1.4}
.rec-dialog{width:min(520px,92vw)}.rec-lead{margin:0 0 6px;font-size:20px;font-weight:700;line-height:1.5}.rec-sub{margin:0 0 16px;font-size:14px;color:var(--muted);line-height:1.6}
.rec-meter{height:22px;border-radius:11px;background:#eeefe9;border:1px solid var(--line);overflow:hidden;margin-bottom:18px}.rec-meter i{display:block;height:100%;width:0;background:var(--yellow);transition:width .08s linear}
.rec-actions{display:flex;justify-content:flex-end;gap:10px}
@media(max-width:500px){.rec-bar{flex-wrap:wrap;padding:6px 8px}.rec-msg{white-space:normal}}
