.modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 90vw;
  width: 360px;
  background: var(--surface);
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.modal form {
  padding: 20px;
}

.modal h3 {
  margin: 0 0 12px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.modal-header h3 {
  margin: 0;
  flex: 1;
}

.modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--bg);
  color: var(--text);
}

.profile-icon-modal {
  padding: 20px;
}

.profile-icon-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.profile-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.profile-icon-option:hover,
.profile-icon-option:focus-visible {
  border-color: var(--accent);
}

.profile-icon-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(77, 163, 255, 0.35);
}

.profile-icon-option img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: block;
}

.profile-icon-option-label {
  text-align: center;
  line-height: 1.2;
  color: var(--text-dim);
}

.profile-icon-option.selected .profile-icon-option-label {
  color: var(--text);
}

.modal-range {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 12px;
}

/* Standard text fields — see .cursor/skills/mino-ui-design/SKILL.md */
.mino-field-input,
.custom-widget-title,
.custom-note-body,
.editable-list-input,
.main-daily-log-editor,
.notes-editor,
.form-row input,
.form-row select,
.form-row textarea,
.modal textarea,
.feedback-compose textarea,
.feedback-selected-panel textarea {
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.mino-field-input,
.custom-note-body,
.editable-list-input,
.main-daily-log-editor,
.notes-editor,
.form-row input,
.form-row select,
.form-row textarea,
.modal textarea,
.feedback-compose textarea,
.feedback-selected-panel textarea {
  padding: 10px 12px;
}

.mino-field-label,
.form-row label,
.feedback-compose label,
.feedback-selected-panel label,
.modal form > label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row input,
.form-row select,
.form-row textarea,
.modal textarea {
  width: 100%;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.hidden {
  display: none;
}

