@charset "UTF-8";
:root{font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;color:#263c32;background:#edf0eb;font-synthesis:none;--green:#244b3f;--muted:#788179}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input[type=checkbox],input[type=color],summary{cursor:pointer}button{transition:background .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d9a64a;outline-offset:3px}
.app-header{height:90px;background:#fffefa;border-bottom:1px solid #dfe4dc;display:flex;align-items:center;justify-content:space-between;padding:0 44px}.brand{display:flex;gap:16px;align-items:center;text-decoration:none;color:var(--green);font-size:23px;font-weight:700;letter-spacing:.03em}.brand-sub{display:block;font-size:11px;font-weight:500;letter-spacing:.13em;margin-top:3px}.brand-mark{display:block;width:40px;font-size:37px;line-height:1;position:relative}.brand-mark span{position:absolute;left:15px;top:13px;font-size:29px;background:#fffefa;border-radius:100%;line-height:.8}.header-note{font-size:12px;color:#758177;display:flex;align-items:center;gap:24px}.tag{font-size:10px;letter-spacing:.15em;border:1px solid #d8dfd5;border-radius:4px;padding:7px 10px}
.workspace{display:grid;grid-template-columns:330px minmax(0,1fr);max-width:1700px;margin:auto}.settings{background:#fffefa;border-right:1px solid #dfe4dc;padding:32px 28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.18em;color:#748a7b}.intro h1{font-size:25px;letter-spacing:.03em;margin:12px 0}.intro p{font-size:12px;line-height:1.9;color:#778077;margin:0 0 30px}.settings section{border-top:1px solid #e5e8e0;padding:23px 0}.settings h2{font-size:13px;margin:0 0 20px}.section-number{font-family:Georgia,serif;font-size:14px;color:#8a9f8b;margin-right:8px}.upload{border:1px dashed #a7b9a9;border-radius:8px;background:#f5f7f1;display:flex;flex-direction:column;align-items:center;padding:20px 8px;position:relative;cursor:pointer;gap:8px}.upload:hover,.upload.drag{background:#e9f0e5;border-color:var(--green)}.upload:focus-within{outline:3px solid #d9a64a}.upload-icon{font-size:26px;color:#64816c;line-height:1}.upload strong{font-size:12px}.upload>span:last-of-type{font-size:10px;color:#7b867b}.upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-name{font-size:11px;color:#7c877a;overflow-wrap:anywhere;margin:10px 0}.sample-picker{font-size:11px;margin:12px 0;color:#47654f}.sample-picker button{display:block;background:none;border:0;border-bottom:1px solid #e1e6de;padding:8px 0;text-align:left;color:inherit;font-size:11px;width:100%}.privacy{font-size:10px;line-height:1.7;color:#899084;margin:16px 0 0}.field-label,legend{font-size:12px;font-weight:700;display:block;margin-bottom:10px}select{width:100%;border:1px solid #d3dccf;border-radius:5px;padding:10px;background:#fffefa;color:#344b3b;font-size:12px}.hint{font-size:10px;color:#879080;line-height:1.8;margin:8px 0 0}fieldset{border:0;padding:0;margin:24px 0 0;min-width:0}legend{padding:0}.check-row{display:flex;align-items:center;gap:9px;font-size:12px;min-height:33px}.check-row input[type=checkbox]{accent-color:var(--green);width:15px;height:15px;margin:0}.color-row{display:flex;align-items:center;justify-content:space-between}.color-row input[type=color]{border:0;width:27px;height:27px;background:transparent;padding:1px;border-radius:5px}.omit{font-size:11px;margin-top:22px}.reset{background:none;color:#73806d;font-size:11px;border:0;padding:16px 0 0;text-decoration:underline;text-underline-offset:4px}.sidebar-foot{font-size:9px;letter-spacing:.03em;color:#a1a89b;border-top:1px solid #e5e8e0;padding-top:20px}
.preview-area{padding:32px 42px 60px;min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px}.preview-toolbar h2{font-size:17px;margin:8px 0 0;font-weight:600}#page-count{font-size:11px;font-weight:400;color:#788779;margin-left:8px}.primary{border:0;border-radius:6px;background:var(--green);color:white;padding:13px 21px;font-size:12px;box-shadow:0 3px 8px #244b3f15}.primary span{margin-right:8px}.primary:hover{background:#32614e}.primary:disabled{background:#a4b3a5;cursor:default;box-shadow:none}.preview-meta{display:flex;justify-content:space-between;border-top:1px solid #dce2d7;margin:23px 0 24px;padding-top:12px;font-size:10px;color:#83917f}.empty{min-height:660px;border:1px solid #dde2d7;background:#f7f8f2;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:4px;text-align:center;padding:35px}.empty-board{width:126px;height:126px;margin-bottom:38px;background:repeating-linear-gradient(0deg,transparent 0 20px,#b8c4ae 20px 21px),repeating-linear-gradient(90deg,transparent 0 20px,#b8c4ae 20px 21px);position:relative;opacity:.9}.empty-board i{position:absolute;border-radius:50%;width:29px;height:29px;left:48px;top:48px;background:#34523e;box-shadow:1px 3px 4px #0002}.empty-board i:nth-child(2){left:69px;top:69px;background:#fffefa;border:1px solid #a4b099}.empty-board i:nth-child(3){left:27px;top:90px;background:#34523e}.empty h2{font-size:21px;font-weight:500;margin:15px 0}.empty p{font-size:12px;color:#89917f;line-height:2}.empty-chips{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:28px}.empty-chips span{font-size:10px;background:#eef1e8;border-radius:4px;padding:9px}.empty[hidden]{display:none}#status{font-size:12px;color:#3c6550;line-height:1.8}#status.error{color:#a3322c;background:#fff0eb;padding:12px;margin-bottom:15px}#warnings{font-size:11px;line-height:1.8;color:#86692f}#warnings details{background:#fff9e9;padding:12px;margin:10px 0 20px}#warnings ul{padding-left:18px;margin-bottom:0}#print-tip{font-size:11px;line-height:1.8;color:#788779;max-width:560px;margin:25px auto}
#report{display:flex;flex-direction:column;align-items:center;gap:28px}.sheet{width:148mm;height:210mm;background:white;color:#26382d;padding:9mm 10mm 9mm;box-shadow:0 5px 24px #263c3212;position:relative;flex:none;overflow:hidden;font-size:10px}.sheet-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #b5c2b2;padding-bottom:3mm;font-size:8px;color:#6d7e6c;letter-spacing:.06em}.sheet h2{font-size:19px;margin:5mm 0 2mm;font-weight:600}.game-subtitle{font-size:9px;color:#6e7d69;margin:0 0 4mm}.players{display:grid;grid-template-columns:1fr 1fr;gap:5mm;margin:4mm 0}.player{border-left:2px solid #c1ccb9;padding-left:3mm;min-width:0}.player span{font-size:8px;color:#76846f}.player strong{display:block;font-size:13px;margin:1mm 0;overflow-wrap:anywhere}.game-info{display:grid;grid-template-columns:1fr 1fr;gap:1.5mm 4mm;font-size:8px;border-top:1px solid #e0e5db;border-bottom:1px solid #e0e5db;padding:3mm 0;line-height:1.6;overflow-wrap:anywhere}.cover-board{width:119mm;margin:4mm auto 0}.board svg{display:block;width:100%;height:auto}.caption{font-size:10px;font-weight:700;margin:2mm 0}.legend{display:flex;gap:3mm;flex-wrap:wrap;font-size:7px;color:#6c7867;margin-top:3mm}.legend span{display:inline-flex;align-items:center;gap:1mm}.legend i{width:7px;height:7px;border-radius:50%;border:2px solid;display:inline-block}.page-footer{position:absolute;bottom:5mm;left:10mm;right:10mm;display:flex;justify-content:space-between;border-top:1px solid #e1e6dc;padding-top:2mm;font-size:7px;color:#87927d}.figure-title{display:flex;gap:3mm;align-items:center;margin:5mm 0 1mm}.figure-title h2{font-size:15px;margin:0}.figure-kind{font-size:8px;letter-spacing:.08em;color:#61816c;border:1px solid #c9d7c9;padding:1mm 2mm}.figure-subtitle{font-size:9px;color:#6a7d68;margin:2mm 0 3mm}.figure-board{width:126mm;margin:4mm auto 0}.notes{font-size:8px;line-height:1.8;overflow-wrap:anywhere;color:#5f6e5b;margin:3mm 0}.sequence{font-size:8px;line-height:1.9;color:#677462;padding:3mm;background:#f5f7f0;margin-top:3mm;overflow-wrap:anywhere}.notes-page h2{font-size:16px}.notes-page p{font-size:10px;line-height:2}.report-intro{font-size:8px;line-height:1.7;color:#7c8774;margin-top:2mm}
.cover h2{margin:3mm 0 1mm;font-size:17px}.cover .game-subtitle{margin:0 0 2mm;font-size:8px}.cover .players{margin:2mm 0;gap:3mm}.cover .player strong{font-size:12px;margin:.5mm 0}.cover .game-info{padding:2mm 0;gap:1mm 3mm;font-size:7px;line-height:1.5}.cover .cover-board{width:112mm;margin:3mm auto 0}.cover .caption{margin:1mm 0}.cover .legend{margin-top:1.5mm}.cover .report-intro{margin-top:1.5mm}
/* Report typography is sized for reading on A5 paper. */
.sheet{font-size:12px;color:#222}
.sheet-header{font-size:10px;color:#555}
.cover .players{margin:4mm 0}
.player span{font-size:11px;color:#444}
.cover .player strong{font-size:17px}
.cover .game-info{font-size:11px;line-height:1.6}
.caption{font-size:14px}
.legend{font-size:10px;color:#444}
.legend i{width:10px;height:10px}
.page-footer{font-size:9px;color:#555}
.figure-title h2{font-size:18px}
.figure-kind{font-size:13px;font-weight:700;color:#111;background:#fff;border:1.5px solid #111;padding:1.5mm 3mm}
.variation .figure-kind{color:#fff;background:#111}
.figure-subtitle{font-size:12px;color:#333}
.notes,.sequence,.report-intro{font-size:11px;color:#444}
.notes-page p{font-size:12px}
@media(min-width:1450px){.preview-area{padding-left:70px;padding-right:70px}.settings{padding-left:32px;padding-right:32px}}
@media(max-width:1000px){.workspace{grid-template-columns:290px minmax(0,1fr)}.settings{padding:25px 20px}.preview-area{padding:25px 20px}.sheet{zoom:.8}.header-note{font-size:10px}.app-header{padding:0 25px}}
@media(max-width:800px){.workspace{display:block}.settings{border-right:0;padding:24px}.intro{margin-bottom:22px}.intro p{margin-bottom:0}.settings section{padding:20px 0}.settings section:last-of-type{display:none}.settings.show-options section:last-of-type{display:block}.settings.show-options .sidebar-foot{display:block}.sidebar-foot{display:none}.header-note{display:none}.app-header{height:76px}.preview-area{padding:24px 12px}.sheet{zoom:.9}.empty{min-height:440px}.preview-toolbar h2{font-size:14px}.primary{padding:12px}.preview-meta{font-size:9px}.settings section:last-of-type{display:block}}
@media(max-width:570px){.sheet{zoom:.63}.preview-meta{gap:8px}.brand{font-size:20px}.empty-chips{gap:5px}.empty h2{font-size:18px}}
@media(max-width:380px){.sheet{zoom:.56}}
@page{size:A5 portrait;margin:0}
@media print{
  html,body{margin:0!important;padding:0!important;background:white!important}
  .app-header,.settings,.preview-toolbar,.preview-meta,#status,#warnings,#empty,#print-tip{display:none!important}
  .workspace,.preview-area,#report{display:block!important;margin:0!important;padding:0!important;max-width:none!important}
  .sheet{zoom:1!important;width:148mm!important;height:210mm!important;margin:0!important;box-shadow:none!important;break-after:page;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .sheet:last-child{break-after:auto;page-break-after:auto}
}
/* Independent navigation and report scrolling. */
@media screen {
  html,body{height:100%;overflow:hidden}
  .workspace{height:100dvh;overflow:hidden}
  .settings,.preview-area{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .sidebar-brand{padding:0 0 28px}
  .upload-help{font-size:12px;line-height:1.85;color:#596c5d;margin:-7px 0 18px}
}
.cover .players{margin:3mm 0;gap:3mm}
.cover .player{display:flex;align-items:baseline;gap:2mm;flex-wrap:wrap;border:0;padding:0}
.cover .player strong{font-size:15px;margin:0}
.cover .player span{font-size:10px}
.cover .game-info{padding:1.5mm 0;font-size:10px;gap:.5mm 3mm}
.cover .cover-notes{font-size:11px;line-height:1.6;margin:2mm 0 0}
@media screen and (max-width:800px){
  .workspace{display:grid;grid-template-columns:240px minmax(380px,1fr);overflow-x:auto}
  .settings{padding:20px 16px}
  .preview-area{padding:20px 12px}
  .sheet{zoom:.63}
}
@media print{
  html,body{height:auto!important;overflow:visible!important}
  .workspace,.preview-area{height:auto!important;overflow:visible!important;scrollbar-gutter:auto!important}
}
.preview-page{flex:none;max-width:100%}
.page-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px;color:#536653;padding:10px 0}
.page-controls label{display:flex;align-items:center;gap:7px;cursor:pointer}
.page-controls input{accent-color:#244b3f;width:16px;height:16px}
.preview-page.excluded .sheet{opacity:.4}
.preview-page.excluded .page-controls{color:#a13f30}
@media print{
  .page-controls,.preview-page.excluded{display:none!important}
  .preview-page{display:block!important;max-width:none!important;margin:0!important;padding:0!important;break-after:page;page-break-after:always}
  .preview-page.last-included{break-after:auto;page-break-after:auto}
  .preview-page .sheet{break-after:auto;page-break-after:auto}
}
.pdf-export-stage{position:fixed;left:-10000px;top:0;width:148mm;background:#fff;pointer-events:none}
.pdf-export-stage .sheet{zoom:1!important;opacity:1!important;box-shadow:none!important;margin:0!important;flex:none}
@media print{.pdf-export-stage{display:none!important}}
@font-face{font-family:ReportJapanese;src:url('vendor/TenkizuReportSans-Regular.ttf') format('truetype');font-weight:100 900;font-display:swap}
.sheet{font-family:ReportJapanese,sans-serif}
.legend-symbol{display:block;width:12px;height:12px;flex:none}
#game-info-fields{display:grid;gap:12px;margin-top:16px}#game-info-fields label{font-size:12px;font-weight:600}#game-info-fields input{display:block;width:100%;box-sizing:border-box;padding:9px;border:1px solid #d3dccf;border-radius:5px;background:#fff;margin-top:5px;color:#263c32}.settings section[hidden]{display:none!important}
.sidebar-brand .brand{display:flex;gap:9px;align-items:center;width:100%}
.tenkizu-icon{width:23%;height:auto;flex:none}.tenkizu-logo{width:calc(77% - 9px);height:auto;min-width:0}
.brand-description{font-family:Georgia,'Yu Mincho',serif;font-size:15px;line-height:1.8;color:var(--green);margin:16px 0 0}
.language-picker{display:flex;align-items:center;gap:12px;margin:0 0 24px;font-size:12px}.language-picker select{flex:1;min-width:0}
.language-picker label{display:flex;align-items:center;flex:none;cursor:pointer}
.language-icon{display:block;width:24px;height:24px;object-fit:contain}
.donation-button{margin-top:24px;padding-top:20px;border-top:1px solid #e5e8e0;min-width:0}
.support-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:12px 16px;border:1px solid var(--green);border-radius:6px;background:var(--green);color:#fff;text-align:center;text-decoration:none;font-size:12px;font-weight:600;line-height:1.6;transition:background .15s}
.support-button:hover{background:#32614e}
.guide-button{gap:8px;margin-bottom:10px;background:#fff;color:var(--green)}
.guide-button:hover{background:#eef7f3}
.guide-button img{flex-shrink:0}
.page-text-fields{display:grid;gap:12px;margin-top:16px}
.page-text-fields label{font-size:12px;font-weight:600}
.page-text-fields input{display:block;width:100%;box-sizing:border-box;padding:9px;border:1px solid #d3dccf;border-radius:5px;background:#fff;margin-top:5px;color:#263c32}
.sheet-header,.page-footer{gap:3mm}
.sheet-header>span:first-child,.page-footer>span:first-child{min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.sheet-header>span:last-child,.page-footer>span:last-child{flex-shrink:0}
.developer-credit{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:24px;padding-bottom:4px}
.developer-credit a{display:block;line-height:0;opacity:.65;transition:opacity .15s}
.developer-credit a:hover{opacity:1}
.developer-credit img{display:block;width:116px;max-width:100%;height:auto}
.app-version{font-size:10px;line-height:1.5;color:var(--muted);letter-spacing:.04em}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.sheet .figure-title h2{line-height:1.4}.sheet .figure-kind{white-space:nowrap}.sheet .legend{flex-wrap:wrap}
html:not([lang="ja"]) .empty p{max-width:560px;margin-left:auto;margin-right:auto}

@media screen{.preview-area.drag{outline:3px dashed var(--green);outline-offset:-6px}}
.trend-section h3{font-size:11px;margin:2mm 0 1mm}.trend-label{font-size:9px;line-height:1.3;color:#444}.trend-section svg{display:block;width:100%;height:auto}.trend-section{margin-bottom:2mm}.trend-bottom{position:absolute;bottom:15mm;left:10mm;right:10mm;font-size:8px;line-height:1.6;color:#555}.trend-bottom p{margin:1mm 0}.trend-legend{border-left:3mm solid #f4e5c9;padding-left:2mm}.sheet.performance h2{font-size:17px;line-height:1.5}.sheet.performance .sheet-header>span:last-child{max-width:55%;white-space:normal}
.performance-title{font-size:20px;margin:4mm 0 1mm}.performance-summary{font-size:10px;color:#555;margin:0 0 2mm}.performance-grid{display:grid;grid-template-columns:1fr 1fr;gap:3mm 4mm}.performance-panel{border:1px solid #cbd3ce;padding:2mm;min-width:0;background:#fff}.performance-panel h3{font-size:14px;margin:0 0 2mm;display:flex;justify-content:space-between;align-items:baseline}.performance-panel h3 span{font-size:10px;font-weight:400;color:#555}.perf-sides{display:flex;justify-content:space-between;font-size:10px;padding-bottom:2mm}.perf-row{display:grid;grid-template-columns:1fr 21mm 1fr;min-height:4mm;align-items:stretch;font-size:9px}.perf-value{position:relative;display:flex;align-items:center;padding:0 1mm;min-width:0}.perf-value.left{justify-content:flex-end}.perf-bar{position:absolute;left:0;top:1px;bottom:1px}.perf-value.left .perf-bar{right:0;left:auto}.perf-value span{position:relative;color:#111;padding:0 1px}.perf-label{display:flex;align-items:center;justify-content:center;text-align:center;font-size:9px;line-height:1.2;padding:0 1px}.perf-hist-title{font-size:9px;text-align:center;margin:2mm 0 1mm;padding-top:2mm;border-top:1px solid #ddd}.perf-empty{font-size:9px;margin:1mm 0 0;height:3mm;text-align:center}.performance-note{font-size:9px;line-height:1.7;margin:4mm 0 0;color:#555}
.trend-overview{border-bottom:1px solid #aaa;padding-bottom:2mm;margin-bottom:3mm}.trend-overview h3 span{display:inline-block;background:#000;color:#fff;padding:1mm 3mm;line-height:1.3}
