.gallery-result-tools{margin-top:10px;min-width:0}.gallery-result-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gallery-result-buttons :is(button,a){min-width:0;min-height:44px;padding:9px 10px;display:flex;align-items:center;justify-content:center;text-align:center;font:700 14px/1.35 "Noto Sans JP",sans-serif;text-decoration:none;border-radius:8px}.gallery-result-buttons button:disabled{opacity:.6}.gallery-status,.gallery-inline-status{font:500 12px/1.6 "Noto Sans JP",sans-serif;overflow-wrap:anywhere;margin:5px 0 0;color:#132f29}.gallery-status:empty,.gallery-inline-status:empty{display:none}.gallery-x{background:#e9ead1;color:#132f29;border:1px solid #132f2955}.sentence-gallery-dialog{box-sizing:border-box;width:min(850px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);height:min(780px,calc(100dvh - 24px));padding:0;border:2px solid #132f29;border-radius:14px;color:#132f29;background:#fff8e6;font-family:"Noto Sans JP",sans-serif;overflow:hidden}.sentence-gallery-dialog[open]{display:flex;flex-direction:column}.sentence-gallery-dialog::backdrop{background:#132f29b3}.gallery-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 20px;border-bottom:1px solid #132f2933;flex:none}.gallery-header h2{font:900 clamp(19px,3vw,25px)/1.4 "Noto Sans JP",sans-serif;margin:0}.gallery-close{min-height:44px;white-space:nowrap;font:700 14px "Noto Sans JP",sans-serif}.gallery-body{padding:16px 20px;overflow:auto;min-height:0;overscroll-behavior:contain}.gallery-tabs{display:flex;gap:8px;margin-bottom:12px}.gallery-tabs button{flex:1;min-height:44px;font:700 14px "Noto Sans JP",sans-serif;border:1px solid #132f29}.gallery-tabs button[aria-pressed=true]{background:#132f29;color:#fff8e6}.gallery-list{display:grid;gap:13px;margin-top:12px}.gallery-entry{padding:16px;background:#fffdf5;border:1px solid #132f2944;border-radius:9px;min-width:0}.gallery-entry-header{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:12px;line-height:1.5}.gallery-entry-header strong{font-weight:900;font-size:20px}.gallery-entry-header .is-failed{color:#b63822}.gallery-date{margin-left:auto;color:#52685b;font-size:11px}.gallery-lines{font-size:16px;line-height:1.8;overflow-wrap:anywhere;margin:13px 0}.gallery-lines p{display:flex;gap:10px;align-items:baseline;margin:6px 0}.gallery-lines p>span:last-child{min-width:0;flex:1}.gallery-line-number{font-weight:700;font-size:11px;opacity:.58;font-variant-numeric:tabular-nums;flex:none}.gallery-entry-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.gallery-entry-actions button{font:700 13px "Noto Sans JP",sans-serif;min-height:44px}.gallery-like{min-width:90px}.gallery-like[aria-pressed=true]{background:#b63822;color:#fff8e6}.gallery-delete{background:transparent}.gallery-name-label{font-size:14px;font-weight:700;display:grid;gap:7px}.gallery-name{font:500 16px "Noto Sans JP",sans-serif;padding:11px 12px;border:1px solid #132f2966;border-radius:7px;background:#fffdf5;color:#132f29;min-width:0;max-width:350px}.gallery-consent{font-size:13px;line-height:1.7;margin:14px 0}.gallery-registration>.primary{min-width:170px;min-height:46px;margin-top:10px}.gallery-body>button{margin-top:16px;min-height:44px}.gallery-registration .gallery-lines{padding:14px;border:1px solid #132f2933;border-radius:7px;background:#fffdf5}.sentence-gallery-dialog :focus-visible,.gallery-result-tools :focus-visible{outline:3px solid #b63822;outline-offset:3px}
@media(max-width:600px){.gallery-header{padding:12px}.gallery-body{padding:12px}.gallery-entry{padding:12px}.gallery-entry-header{gap:6px}.gallery-date{width:100%;margin-left:0}.gallery-lines{font-size:15px}.gallery-result-buttons{gap:6px}.gallery-result-buttons :is(button,a){font-size:12px;padding:8px 6px}.gallery-result-tools{margin-top:8px}.gallery-entry-actions{flex-wrap:wrap}}
.gallery-image-label{display:flex;align-items:center;gap:14px;font-size:14px;font-weight:700;margin:0 0 14px}
.gallery-image-kind{min-height:44px;min-width:0;max-width:100%;flex:1;padding:8px 12px;background:var(--paper);color:var(--ink);border:1px solid var(--ink);border-radius:6px;font:700 16px/1.4 var(--body)}
.gallery-image-preview{display:block;width:100%;height:auto;max-height:51dvh;object-fit:contain;border:1px solid #132f2944;background:var(--paper)}
.gallery-image-note{font-size:12px;line-height:1.7;margin:12px 0}
