/* 既存の紙・インク・手書き文字を共有する見開き。 */
.schedule-image-dialog {box-sizing:border-box;width:min(680px,94vw);max-height:92dvh;overflow:auto;padding:20px;background:#fff8ec;color:#38382b;border:1px solid #b5a381;border-radius:12px;font:14px/1.65 var(--body)}
.schedule-image-dialog header h2 {font:600 21px/1.5 var(--body);margin:0 0 12px}
.schedule-image-dialog>img {display:block;width:100%;max-height:36dvh;object-fit:contain;background:#efe6d4}
.schedule-image-dialog label {display:block;margin-top:12px}
.schedule-image-dialog textarea {box-sizing:border-box;width:100%;min-height:70px;font:inherit}
.schedule-image-dialog p {font:13px/1.65 var(--body);overflow-wrap:anywhere}
.schedule-image-dialog footer {display:flex;gap:10px;flex-wrap:wrap}
.schedule-image-dialog footer button {flex:1;min-height:44px;padding:10px;border:1px solid #b5a381;border-radius:5px;background:#fff8ec;color:#38382b;font:inherit}
.schedule-image-dialog #sendScheduleImage {background:#d8dcb9}
.schedule-image-dialog button:focus-visible {outline:2px solid #517b88;outline-offset:2px}
.schedule-image-dialog button:disabled,.candidate-actions button:disabled,.ref-inline-actions button:disabled {opacity:.5;cursor:not-allowed}
.candidate-evidence {white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.candidate-evidence:empty {display:none}
.folio-reference {--book-gap:52px;--book-paper:#fff8ec;--book-ink:#38382b;--book-seam:#b5a381;--book-tape:#eccb96}
.ref-weather-block {margin-inline:-2.4%}
.ref-weather>img.ref-weather-art,.ref-weather[data-weather-background*="-"]>img.ref-weather-art {object-fit:cover;object-position:center bottom}
.ref-weather .weather-copy {position:absolute;top:5%;left:4%;right:4%;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:2px;pointer-events:none}
.ref-weather .weather-copy .ref-weather-main {position:static;max-width:100%}
.ref-weather .weather-details {display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.ref-weather .weather-outlook,.ref-weather .ref-weather-stats,.ref-weather[data-weather-background*="-"] .ref-weather-stats {position:static;max-width:100%;margin:0}
.ref-weather .weather-outlook {font-size:.65em;line-height:1.5}
.ref-weather .ref-weather-stats {font-size:.7em;flex-wrap:wrap;gap:.9em}
.ref-left {grid-template-rows:minmax(120px,27%) minmax(145px,29%) minmax(90px,18%) minmax(96px,1fr)}
.ref-dock {display:none}
.ref-right {grid-template-rows:minmax(210px,39%) minmax(140px,25%) minmax(100px,1fr)}
.folio-reference .ref-home .ref-weather-block > .home-update-button {position:absolute;left:auto;top:auto;right:8px;bottom:8px}
.folio-reference .folio-left-tabs {left:3px!important;right:auto!important;width:30px}
.folio-reference .folio-left-tabs button {width:30px!important;border-radius:3px 5px 5px 3px!important;font-size:11px!important;height:110px}
.folio-reference .folio-left-tabs button:nth-child(1) {background-color:#d8dcb9!important}
.folio-reference .folio-left-tabs button:nth-child(2) {background-color:#efc9b8!important}
.folio-reference .folio-left-tabs button:nth-child(3) {background-color:#cbb9d8!important}
.folio-reference .folio-edge-tabs [data-return-home] {background-color:#eccb96!important;height:64px}
.folio-reference .folio-edge-tabs [hidden] {display:none!important}
.folio-reference .folio-edge-tabs button:focus-visible {outline:2px solid #517b88;outline-offset:1px}
.folio-reference .folio-edge-tabs button.is-active {box-shadow:inset 0 0 0 2px #9e825477,1px 2px 4px #785b3426}
.folio-reference .ref-book-view.is-active {display:flex!important;height:100dvh;padding:5px 36px 5px 36px!important;overflow:hidden!important}
.folio-reference .ref-book-view>.ref-spread-paper {
 position:relative;display:flex!important;flex-direction:column;isolation:isolate;
 width:100%;max-width:none!important;height:100%;min-height:0!important;margin:0;
 padding:18px 22px 12px!important;border:4px solid #34332c!important;border-radius:18px!important;
 background:linear-gradient(#fff8ecd9,#fff8ecb8),var(--ref-texture) center/540px!important;
 box-shadow:inset 0 0 0 2px #bcb19866,0 3px 6px #69583644;
 color:var(--ref-ink);font:14px/1.7 var(--body);
}
.folio-reference .ref-book-view>.ref-spread-paper::before {
 content:"";display:block;position:absolute;top:0;bottom:0;left:calc(50% - 8px);width:16px;
 background:linear-gradient(90deg,transparent,#c5b29066 42%,#95816388 49%,#fffbec 52%,#d5c29b55 61%,transparent);
 pointer-events:none;z-index:-1;border:0;transform:none;
}
.ref-spread-paper .detail-header {flex:none!important;min-width:0}
.ref-spread-paper .detail-header h1 {white-space:nowrap}
.ref-spread-paper .book-pager {display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:36px;flex:none;font:12px/1.4 var(--body)}
.ref-spread-paper .book-pager button {background:#fff8ee;border:1px solid #c3a77f66;border-radius:4px;min-height:34px;min-width:66px;padding:4px 9px;color:var(--ref-ink);font:12px/1.4 var(--body)}
.ref-spread-paper .book-pager button:disabled {opacity:.35;cursor:default}
.ref-spread-paper .book-pager output {min-width:65px;text-align:center}
.ref-spread-paper .book-flow {
 display:block!important;columns:2;column-gap:var(--book-gap);column-fill:auto;
 min-height:0!important;max-height:none;overflow-x:auto!important;overflow-y:hidden!important;
 scrollbar-width:thin;overscroll-behavior:contain;scroll-behavior:auto!important;padding:0!important;
}
.ref-spread-paper .book-flow:focus-visible {outline:1px dashed #937344;outline-offset:2px}
.ref-spread-paper .book-flow.has-last-blank::after {content:"";display:block;break-before:column;height:1px}
.ref-spread-paper .book-flow>.ai-message,.ref-spread-paper .book-flow>.schedule-candidate {break-inside:avoid-column}
.ref-ai-paper .folio-ai-layout {flex:1;min-height:0}
.ref-ai-paper .ai-chat-sheet {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;column-gap:var(--book-gap);row-gap:8px}
.ref-ai-paper #aiMessages {grid-column:1/-1;grid-row:1;height:100%}
.ref-ai-paper .ai-message {max-width:92%;width:92%;transform:none;margin-bottom:16px}
.ref-ai-paper .ai-message p {font-size:14px!important}
.ref-ai-paper .book-flow .ai-message[data-role="user"] {transform:none}
.ref-ai-paper .ai-suggestions {grid-row:2;grid-column:1;padding:0}
.ref-ai-paper .ai-suggestions button {white-space:normal}
.ref-ai-paper .ai-composer {grid-row:2/4;grid-column:2;align-self:end;padding:0}
.ref-ai-paper .ai-composer textarea {height:70px;max-height:160px;font-size:14px}
.ref-ai-paper .ai-composer>div {border-radius:6px;padding:8px}
.ref-ai-paper .book-pager {grid-row:3;grid-column:1}
.ref-candidate-paper #candidateBoxList {flex:1;min-height:0}
.ref-candidate-paper .schedule-candidate {margin:0 2px 14px;box-sizing:border-box}
.ref-candidate-paper .ref-candidate-filters {width:calc((100% - var(--book-gap))/2)}
.ref-candidate-paper .ref-candidate-footer {justify-content:flex-end;align-items:center;gap:10px;padding:10px 0 0}
.ref-candidate-paper .ref-candidate-footer .book-pager {margin-right:auto}
.ref-candidate-paper .ref-candidate-footer>button {min-width:84px}
.ref-candidate-paper .ref-candidate-footer>[data-register-visible-candidates] {background:#61a456;color:white;border:0}
.folio-reference .ref-book-view .settings-list {
 flex:1;min-width:0;width:100%;max-width:none;margin:0 0 10px;padding:0!important;
 background:none;box-shadow:none;border:0;border-radius:0;
}
.ref-book-view .settings-list>section {display:block;margin:0 0 16px;padding:0;border:0;background:none;break-inside:auto}
.ref-book-view .settings-list>button,.ref-book-view .settings-list>label,
.ref-book-view .ai-setting-row,.ref-book-view .page-settings>label,
.ref-book-view .home-switch-panel,.ref-book-view .external-pair-card,
.ref-book-view .external-sync-button,.ref-book-view .ai-billing-note,
.ref-book-view .external-privacy-note {break-inside:avoid-column}
.ref-book-view .settings-list .ai-settings-title,.ref-book-view .settings-list .page-settings-title,
.ref-book-view .settings-list .external-integration-title {break-after:avoid-column;padding:8px 0 4px;margin:0}
.ref-book-view .settings-list .eyebrow {display:none}
.ref-book-view .settings-list>button,.ref-book-view .settings-list>label,.ref-book-view .ai-setting-row,.ref-book-view .page-settings>label {
 min-height:60px;padding:10px 8px;margin:0;width:100%;box-sizing:border-box;gap:10px;
}
.ref-book-view .settings-list b {font:600 14px/1.5 var(--body)}
.ref-book-view .settings-list small,.ref-book-view .settings-list p {font:12px/1.65 var(--body)}
.ref-book-view .settings-list input:not([type=checkbox]),.ref-book-view .settings-list select {max-width:52%;min-width:0;font:13px/1.5 var(--body)}
.ref-book-view .settings-list .portal-url-setting input {max-width:100%;width:100%}
.ref-book-view .settings-list .home-switch-actions {display:flex;gap:8px}
.ref-book-view .home-switch-actions button {min-width:0;min-height:56px;padding:8px;flex:1}
.ref-book-view .home-switch-actions svg {width:22px;height:22px}
.ref-book-view .external-integration-settings {display:block;margin:0;padding:0;border:0;background:none;break-inside:auto}
.ref-book-view .version-note {display:none}
.dark .ref-book-view>.ref-spread-paper {background:linear-gradient(#292c25eb,#292c25eb),var(--ref-texture)!important}
.dark .ref-spread-paper .book-pager button {background:#484536}
@media(min-width:700px) and (min-aspect-ratio:4/5) {
 .ref-left {padding-left:5%;padding-right:2%}
 .ref-weather-block {margin-left:-4.2%;margin-right:-1.5%}
}
@media(width < 700px), (aspect-ratio < 4/5) {
 .ref-left {grid-template-rows:minmax(120px,26%) minmax(150px,29%) minmax(80px,17%) minmax(100px,1fr) 42px}
 .folio-reference .folio-left-tabs {display:none!important}
 .folio-reference:has(.portal-view.is-active) .folio-left-tabs {display:flex!important}
 .folio-reference:has(.portal-view.is-active) .folio-right-tabs {display:none!important}
 .folio-reference .ref-book-view.is-active {padding:4px 31px 4px 4px!important}
 .folio-reference .ref-book-view>.ref-spread-paper {padding:10px!important;border-width:2px!important;border-radius:12px!important}
 .folio-reference .ref-book-view>.ref-spread-paper::before {display:none}
 .ref-spread-paper .book-flow {columns:auto;overflow-y:auto!important;overflow-x:hidden!important}
 .ref-spread-paper .book-flow.has-last-blank::after {display:none}
 .ref-spread-paper .book-pager {display:none}
 .ref-ai-paper .ai-chat-sheet {grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:8px}
 .ref-ai-paper #aiMessages {grid-column:1;grid-row:1}
 .ref-ai-paper .ai-suggestions {grid-column:1;grid-row:2}
 .ref-ai-paper .ai-composer {grid-column:1;grid-row:3}
 .ref-ai-paper .ai-composer textarea {height:54px}
 .ref-candidate-paper .ref-candidate-filters {width:100%}
 .ref-candidate-paper .ref-candidate-footer {justify-content:center}
 .ref-book-view .settings-list input:not([type=checkbox]),.ref-book-view .settings-list select {max-width:48%}
 .ref-book-view .settings-list .portal-url-setting input {max-width:100%}
}
