.note-controls { margin-top: 16px; }
.note-controls button, .note-actions button, .note-dialog button { min-height: 44px; padding: 8px 14px; cursor: pointer; }
.note-actions { display: flex; gap: 8px; margin-top: 10px; }
.note-dialog { width: min(440px, calc(100% - 32px)); box-sizing: border-box; border: 1px solid #d9e2ea; border-radius: 12px; padding: 20px; }
.note-dialog::backdrop { background: rgb(0 0 0 / 40%); }
.note-dialog label { display: grid; gap: 6px; margin: 12px 0; }
.note-dialog input, .note-dialog select, .note-dialog textarea { width: 100%; box-sizing: border-box; font: inherit; min-height: 44px; padding: 8px; }
.note-dialog textarea { min-height: 140px; resize: vertical; }
.note-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
.note-dialog [role="status"] { overflow-wrap: anywhere; }

.note-mold-label { position: relative; }
.note-mold-options { max-height: 220px; overflow-y: auto; border: 1px solid #b9c5d1; border-radius: 6px; background: white; }
.note-mold-options button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eef0f2; background: white; color: #262626; overflow-wrap: anywhere; }
.note-mold-options button:hover, .note-mold-options [aria-selected="true"] { background: #e6f4ff; }
.note-mold-results { margin: 4px 0; font-size: 13px; }
.offline-status { margin: 8px 12px; font-size: 14px; overflow-wrap: anywhere; }
.offline-status ul { max-height: 180px; overflow: auto; padding-left: 20px; }
.note-image-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.note-image-gallery img { max-width: min(100%,320px); max-height: 320px; object-fit: contain; border-radius: 8px; }
.note-images-button { min-height: 44px; margin: 6px 0; }

.note-photo-list {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.note-photo-list [aria-pressed="true"] {text-decoration:line-through;opacity:.65;}

.note-photo-list img {display:block;object-fit:cover;border-radius:6px;}
.paired-mold-lines {white-space:pre-line;overflow-wrap:anywhere;line-height:1.7;}
.cross-machine-prompt {padding:10px;border:1px solid #91caff;border-radius:8px;background:#f0f7ff;margin:12px 0;}
.cross-machine-prompt p {margin:4px 0 8px;}
.cross-machine-prompt button {margin:4px 4px 0 0;}
.cross-machine-notice {margin:12px;padding:12px;border:1px solid #91caff;border-radius:8px;background:white;overflow-wrap:anywhere;}
.cross-machine-notice button {min-height:44px;padding:8px 14px;}

.current-mold-edit,.current-mold-camera,.note-scan-mold {min-height:44px;padding:8px 12px;margin:8px 8px 0 0;max-width:100%;white-space:normal;}

.mold-pair-incoming {padding:10px;margin:12px 0;border:1px solid #d9d9d9;border-radius:8px;overflow-wrap:anywhere;}
.mold-pair-incoming h3 {font-size:15px;margin:0 0 8px;}
.mold-pair-incoming p {margin:4px 0;font-size:14px;}
.mold-pair-incoming ul {margin:8px 0 0;padding-left:22px;}
.mold-pair-incoming li {margin:5px 0;}
