.hsk-photo-message { display: block !important; width: min(320px, 82%); max-width: min(340px, 82%) !important; padding: 8px !important; }
.hsk-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; border-radius: 16px; overflow: hidden; }
.hsk-photo-grid[data-count="1"] { grid-template-columns: 1fr; }
.hsk-photo-grid button { position: relative; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; min-width: 0; min-height: 96px; aspect-ratio: 1; background: #dce6df !important; color: #143f33 !important; }
.hsk-photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsk-photo-grid em { position: absolute; inset: 0; display: grid; place-items: center; background: #0008; color: #fff; font-size: 28px; font-style: normal; }
.hsk-photo-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; }
.hsk-photo-caption button { min-height: 48px; }
.hsk-photo-message .hsk-photo-caption > span { font-size: 16px; }
.hsk-photo-manage summary { min-height: 36px; cursor: pointer; }
.hsk-photo-manage > div { padding: 8px 0; border-top: 1px solid #cbdace; overflow-wrap: anywhere; }
.hsk-photo-viewer { box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: 100vw; max-width: 1100px; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border: 0; border-radius: 0; padding: max(12px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom)); background: #101b19; color: #f6faf8; font-family: inherit; overflow: hidden; }
.hsk-photo-viewer[open] { display: flex; flex-direction: column; gap: 8px; }
.hsk-photo-viewer::backdrop { background: #07100de8; }
.hsk-photo-viewer header { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hsk-photo-viewer header b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
.hsk-photo-viewer button { min-height: 48px; min-width: 48px; padding: 10px 14px; background: #25483e; color: white; border: 1px solid #5c7f70; border-radius: 12px; font: inherit; font-size: 16px; cursor: pointer; }
.hsk-photo-viewer button:disabled { opacity: .5; cursor: default; }
.hsk-photo-viewer button:focus-visible, .hsk-photo-grid button:focus-visible { outline: 3px solid #73dfab; outline-offset: -3px; }
.hsk-photo-stage { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hsk-photo-stage > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hsk-photo-thumbs { display: flex; flex-shrink: 0; gap: 8px; overflow-x: auto; padding: 3px; }
.hsk-photo-thumbs button { flex: 0 0 56px; height: 56px; padding: 0; overflow: hidden; }
.hsk-photo-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hsk-photo-thumbs [aria-current="true"] { outline: 3px solid #73dfab; outline-offset: -3px; }
.hsk-photo-viewer > p { margin: 0; font-size: 16px; line-height: 1.4; flex-shrink: 0; }
.hsk-photo-viewer > [role="status"] { max-height: 72px; overflow: auto; color: #d0e7da; }
.hsk-photo-viewer footer { display: flex; gap: 12px; flex-shrink: 0; }
.hsk-photo-viewer footer button { flex: 1; }
.hsk-photo-save-sheet:not([hidden]) { position: absolute; bottom: max(12px,env(safe-area-inset-bottom)); left: 12px; right: 12px; padding: 12px; border: 1px solid #6d9180; border-radius: 20px; background: #e8f1ec; display: grid; gap: 8px; max-height: 72%; overflow: auto; box-shadow: 0 -10px 70px #000a; }
.hsk-photo-save-sheet button { background: white; color: #133f31; border-color: #a9c2b3; }
.hsk-photo-save-sheet button:first-of-type { background: #145a43; color: white; }
.hsk-photo-save-sheet p { color: #183f31; font-size: 16px; line-height: 1.4; margin: 0; }
@media (max-height: 480px) { .hsk-photo-viewer { gap: 3px; padding-top: 4px; padding-bottom: 4px; } .hsk-photo-thumbs button { height: 48px; } }
