.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:12px}.settings-grid label{min-width:0}.settings-grid input[type=checkbox]{display:block;width:24px;min-height:44px;accent-color:#57406b}.settings-grid input[type=color]{padding:4px}.secondary-links{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.secondary-links a{display:inline-flex;align-items:center;min-height:44px}.studio-preview svg{width:100%;height:auto;max-height:280px;display:block}.studio-preview{background:repeating-conic-gradient(#f1edf3 0% 25%,#fff 0% 50%) 0/18px 18px;border-radius:12px;overflow:hidden;padding:8px}.signature-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.signature-card{min-width:0;border:1px solid #c5bac8;border-radius:14px;padding:16px}.signature-card h2{font-size:16px}.signature-card .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.signature-card .actions button{font-size:13px}.sheet-viewport{width:100%;overflow:hidden;margin-bottom:24px;background:#ded6e1}.sheet-page{width:210mm;height:297mm;padding:14mm;background:white;color:#111;overflow:hidden;transform-origin:top left;break-after:page;box-shadow:0 4px 12px #0002}.sheet-page.landscape{width:297mm;height:210mm}.sheet-page h2{font-size:18px;margin:0 0 3mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-meta{display:flex;justify-content:space-between;font-size:12px;height:10mm}.sheet-row{height:23mm;position:relative;break-inside:avoid;page-break-inside:avoid;overflow:hidden}.sheet-row.guides{background:linear-gradient(to bottom,transparent calc(25% - .2mm),#b5adb7 25%,transparent calc(25% + .2mm),transparent calc(50% - .2mm),#b5adb7 50%,transparent calc(50% + .2mm),transparent calc(75% - .2mm),#817686 75%,transparent calc(75% + .2mm),transparent calc(95% - .2mm),#b5adb7 95%,transparent calc(95% + .2mm))}.sheet-row svg{width:100%;height:100%;display:block}.sheet-row[data-kind=free]::after{content:' ';display:block}.sheet-pages{max-width:100%;min-width:0}.studio-note{border-left:4px solid #755295;padding-left:16px}.font-cards button[aria-pressed=true]::before{content:'✓ 選択中 ';}.sheet-page svg{overflow:hidden}#preview.custom-output svg{width:100%;height:auto;max-height:380px;flex:0 1 auto}#preview.custom-output{background:repeating-conic-gradient(#f1edf3 0% 25%,#fff 0% 50%) 0/18px 18px}
@media(max-width:700px){.signature-cards,.settings-grid{grid-template-columns:1fr}.signature-card{padding:12px}}
@media print{
@page{size:A4 portrait;margin:0}
body[data-studio=practice-sheet]{margin:0!important;padding:0!important;background:#fff!important}
body[data-studio=practice-sheet]>*{display:none!important}
body[data-studio=practice-sheet]>main{display:block!important;width:auto!important;margin:0!important}
body[data-studio=practice-sheet] main>*{display:none!important}
body[data-studio=practice-sheet] main>.sheet-pages{display:block!important}
body[data-studio=practice-sheet] .sheet-viewport{width:auto!important;height:auto!important;overflow:visible!important;margin:0!important;background:white!important;break-after:page}
body[data-studio=practice-sheet] .sheet-viewport:last-child{break-after:auto}
body[data-studio=practice-sheet] .sheet-page{transform:none!important;box-shadow:none!important;margin:0!important;break-after:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}
/* Leave 1mm for Chromium/WebKit print-unit rounding; the PDF paper remains A4. */
body[data-studio=practice-sheet] .sheet-page{height:296mm}
body[data-studio=practice-sheet] .sheet-page.landscape{height:209mm}
body[data-studio=practice-sheet] .sheet-row{break-inside:avoid!important}
.ad-region,ins.adsbygoogle{display:none!important}
}
